WO2024022307A1 - 一种投屏方法及电子设备 - Google Patents

一种投屏方法及电子设备 Download PDF

Info

Publication number
WO2024022307A1
WO2024022307A1 PCT/CN2023/109007 CN2023109007W WO2024022307A1 WO 2024022307 A1 WO2024022307 A1 WO 2024022307A1 CN 2023109007 W CN2023109007 W CN 2023109007W WO 2024022307 A1 WO2024022307 A1 WO 2024022307A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
interface
electronic device
application
display
Prior art date
Application number
PCT/CN2023/109007
Other languages
English (en)
French (fr)
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 WO2024022307A1 publication Critical patent/WO2024022307A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • 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
    • 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/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
    • 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 present application relates to the field of screen projection technology, and in particular to a screen projection method and electronic equipment.
  • Wireless screen projection allows electronic devices such as mobile phones and tablets to project local or network multimedia content onto large screens with audio, video and other playback capabilities such as PCs and smart screens, and play the above multimedia data on the large screen.
  • Typical wireless screencasting includes mirroring screencasting (such as miracast), online screencasting (such as digital living network alliance (DLNA)), etc.
  • This application provides a screen casting method and an electronic device, which enables the electronic device to control the screen casting behavior of the application based on the priority of the application's screen casting permissions to avoid confusing screen casting.
  • this application provides a screen projection system.
  • the system includes an electronic device and a large screen device.
  • the electronic device is used to establish a screen projection connection with the large screen device; the electronic device is also used to display the first application.
  • the first interface; the electronic device is also configured to receive a first operation for the first interface, and the first operation is used to select the first screen projection content; the electronic device is also configured to respond to the first operation, and convert the first screen projection data to Send to the large-screen device through the screen projection connection;
  • the large-screen device is used to display the second interface after receiving the first screen projection data, and the second interface includes the first screen projection content; the electronic device is also used to receive the second screen projection data.
  • the electronic device is also used to display the third interface of the second application in response to the second operation;
  • the large-screen device is also used to perform screencasting permissions of the second application that are lower than or equal to the screencasting permissions of the first application. In this case, continue to display the second interface.
  • the first interface may be a video interface or a picture interface
  • the second interface may be a video interface or a picture interface
  • the first application When the first interface of the first application supports drawing of the virtual screen and then projection and display on the large-screen device, the first application draws the first interface based on the virtual screen and then projection and display on the large-screen device.
  • the interface layout of the first screen projection content displayed on the large-screen device may be different from the interface layout of the first interface.
  • the display content of the first screen projection content displayed on the large-screen device may also be different from the display content of the first interface.
  • the electronic device can control the screen casting behavior of the application based on the screen casting permission priority of the application. Avoid screencasting confusion.
  • the electronic device 100 can display the multimedia content in the application with the highest priority for screen casting permission on the large screen device. No matter how the electronic device switches to display content in other applications, the screen casting permission priority will still be displayed on the large screen. The highest level of in-app multimedia content.
  • the electronic device is also used to obtain the second screen casting content when the screen casting permission of the second application is higher than the screen casting permission of the first application, and
  • the second screen projection data is sent to the large-screen device through the screen projection connection;
  • the large-screen device is also configured to display a fourth interface after receiving the second screen projection data, and the fourth interface includes the second screen projection content.
  • the electronic The device can draw the multimedia content in the application with high priority of screen projection permission on the virtual screen and then project it to the large screen device.
  • the electronic device is also used to obtain the second screen casting content when the screen casting permission of the second application is higher than the screen casting permission of the first application, and Send the second screen projection data to the large-screen device through the screen projection connection; the large-screen device is also used to display the third interface after receiving the second screen projection data.
  • the electronic The device can obtain the second screen projection number by recording and/or recording the screen. data, so that the large-screen device displays the third interface.
  • the electronic device is also configured to receive a third operation after the large-screen device continues to display the second interface, and the third operation is used for the electronic device to stop displaying the first interface; the electronic device The device is also used to display the fourth interface in response to the third operation; the electronic device is also used to display the fifth interface of the second application in response to the fourth operation; the electronic device is also used to pass the third screen projection data through The projection connection is sent to the large-screen device; the large-screen device is also used to display the fifth interface after receiving the third projection data;
  • the electronic device is also used to project the third screen content and send the third screen projection data to the large-screen device through the screen projection connection; the large-screen device is also used to display the sixth screen after receiving the third screen projection data.
  • the sixth interface includes the third screen projection content.
  • the fourth interface may be a user interface within the first application, or may be a user interface within other applications (such as a desktop application), such as the main interface of the electronic device.
  • the fifth interface may be the same as the third interface, or may be different from the third interface.
  • the electronic device can project the fourth interface to the screen based on the "mirror projection" method. Display on large screen devices.
  • the electronic device After the electronic device displays the fifth interface of the second application, if the fifth interface does not support drawing on the virtual screen and then casting the screen to display on the large-screen device, then the electronic device can display the fifth interface based on the "mirror screen projection" method.
  • the screen projection is displayed on the large-screen device, and the large-screen device displays the fifth interface.
  • the electronic device displays the fifth interface of the second application, if the fifth interface supports drawing on the virtual screen and then projection and display on the large-screen device, then the electronic device can draw the fifth interface on the virtual screen and then projection and display on the screen. On large screen devices.
  • the electronic device 100 can then switch the screen to display the multimedia content in the application with a lower priority of screen casting permission.
  • the large-screen device is specifically used to: display the second interface in full screen.
  • the large-screen device is specifically used to: display the fourth interface in full screen.
  • the size of the projected content can be adapted to the screen size of the large-screen device, thereby improving the screen utilization of the large-screen device.
  • a large-screen device is specifically used to: display a third interface in a non-full-screen manner.
  • the user interface does not support drawing on the virtual screen and then projection and display on a large-screen device.
  • the electronic device can only capture the projection content through screen recording and/or audio recording, and cannot make the size of the projection content match the large screen. to match the screen size of the device.
  • the electronic device is also used to: obtain device information of the large-screen device, where the device information of the large-screen device includes one or more of the following: wherein, the device information of the large-screen device The screen size, the color format of the screen of the large-screen device, and the pixel density of the screen of the large-screen device; the electronic device is also used to obtain the first application through the first application before sending the first screen projection content to the large screen device through the screen projection connection. to the first screen projection content; the electronic device generates the first screen projection data based on the first screen projection content and the device information of the large screen device through the first application.
  • the first screen projection content includes all or part of the display content in the first interface.
  • the first interface includes multiple layers; the first screen projection content includes display content of one or more layers in the first interface.
  • the first screen projection content includes display content of a sub-interface of the first interface.
  • the electronic device is also used to obtain the screen casting permission of the first application based on the application type of the first application; the electronic device is also used to obtain the screencasting permission of the first application based on the application type of the second application. Type to obtain the screencasting permission of the second application. In this way, the electronic device can obtain the screen casting permission priority of the application based on the type of the application, thereby controlling the screen casting behavior of the application.
  • the electronic device is also used to send the third screen projection data to the large screen device through the screen projection connection when the first interface is displayed; the large screen device is also used to After receiving the third screen projection data, the first interface is displayed.
  • this application provides a screen projection method.
  • the method includes: establishing a screen projection connection between an electronic device and a large-screen device;
  • the electronic device displays the first interface; the electronic device receives a first operation for the first interface, the first operation is used to select the first screen projection content; in response to the first operation, the electronic device sends the first screen projection data through the screen projection connection To the large-screen device, the first screen projection data is used for the large-screen device to display a second interface, and the second interface includes the first screen projection content; the electronic device receives the second operation; in response to the second operation, the electronic device displays the second application Third interface; when the screen casting authority of the second application is lower than or equal to the screen casting authority of the first application, the electronic device instructs the large-screen device to continue to display the second interface.
  • the method further includes: when the screen casting permission of the second application is higher than the screen casting permission of the first application, the electronic device obtains the second screen casting content, and The second screen projection data is sent to the large screen device through the screen projection connection, and the second screen projection data is used by the large screen device to display a fourth interface, and the fourth interface includes the second screen projection content.
  • the method further includes: when the screen casting permission of the second application is higher than the screen casting permission of the first application, the electronic device obtains the second screen casting content, and The second screen projection data is sent to the large screen device through the screen projection connection, and the second screen projection data is used for the large screen device to display the third interface.
  • the method further includes: the electronic device receives a third operation, and the third operation is used for the electronic device to stop displaying the first interface. ; In response to the third operation, the electronic device displays the fourth interface; the electronic device receives the fourth operation; in response to the fourth operation, the electronic device displays the fifth interface of the second application; the electronic device transmits the third screen projection data through the screen projection The connection is sent to the large screen device, and the third screen projection data is used for the large screen device to display the fifth interface; or, the electronic device obtains the third screen projection content and sends the third screen projection data to the large screen device through the screen projection connection. , the third screen projection data is used for the large screen device to display the sixth interface, and the sixth interface includes the third screen projection content.
  • the first screen projection data is used to display the second interface in full screen on a large-screen device.
  • the second screen projection data is used to display the fourth interface in full screen on a large-screen device.
  • the second screen projection data is used for non-full-screen display of the third interface on a large-screen device.
  • the method further includes: the electronic device obtains device information of the large-screen device, and the device information of the large-screen device includes the following One or more items: Among them, the screen size of the large-screen device, the color format of the screen of the large-screen device, and the pixel density of the screen of the large-screen device; the electronic device sends the first screen projection data to the large screen through the screen projection connection.
  • the method also includes: the electronic device obtains the first screen projection content through the first application; and the electronic device generates the first screen projection data based on the first screen projection content and the device information of the large screen device through the first application.
  • the first screen projection content includes all or part of the display content in the first interface.
  • the first interface includes multiple layers; the first screen projection content includes display content of one or more layers in the first interface.
  • the first screen projection content includes display content of a sub-interface of the first interface.
  • the method further includes: the first electronic device obtains the screen casting permission of the first application based on the application type of the first application; the first electronic device obtains the screen casting permission of the first application based on the application type of the second application. Type to obtain the screencasting permission of the second application.
  • the method further includes: the electronic device sends the third screen projection data to the large screen device through the screen projection connection, and the third screen projection data Used to display the first interface on large-screen devices.
  • this application provides a screen projection method.
  • the method includes: establishing a screen projection connection between a large-screen device and an electronic device, wherein the electronic device displays a first interface of the first application; After the first operation of an interface, the first screen projection data sent by the electronic device is received through the screen projection connection. The first operation is used to select the first screen projection content; after receiving the first screen projection data, the large-screen device displays the first screen projection data.
  • the second interface includes the first screencasting content; after the electronic device displays the third interface of the second application, in the case where the screencasting authority of the second application is lower than or equal to the screencasting authority of the first application, most of the The screen device continues to display the second interface.
  • the method includes: when the screen casting permission of the second application is higher than the screen casting permission of the first application, the large-screen device receives the screen transmission sent by the electronic device through the screen casting connection. second screen projection data; after receiving the second screen projection data, the large-screen device displays a fourth interface, and the fourth interface includes the second screen projection content.
  • the method includes: when the screen casting permission of the second application is higher than the screen casting permission of the first application, the large-screen device receives the screen transmission sent by the electronic device through the screen casting connection. Second projection data; after receiving the second projection data, the large-screen device displays the third interface.
  • the method further includes: after the large-screen device stops displaying the first interface on the electronic device and displays the fifth interface of the second application , receiving the third screen projection data sent by the electronic device; large After receiving the third screen projection data, the screen device displays the fifth interface; or, after receiving the third screen projection data, the large screen device displays the sixth interface, and the sixth interface includes the third screen projection content.
  • the large-screen device displays the second interface, which specifically includes: the large-screen device displays the second interface in full screen.
  • the large-screen device displays the fourth interface, which specifically includes: the large-screen device displays the fourth interface in full screen.
  • the large-screen device displays the third interface, specifically including the large-screen device displaying the third interface in a non-full-screen manner.
  • the first screen projection content includes all or part of the display content in the first interface.
  • the first interface includes multiple layers; the first screen projection content includes display content of one or more layers in the first interface.
  • the first screen projection content includes display content of a sub-interface of the first interface.
  • the method further includes : The large-screen device receives the third screen projection data sent by the electronic device through the screen projection connection; after receiving the third screen projection data, the large-screen device displays the first interface.
  • this application provides a screen projection system, which includes electronic devices and large-screen devices, wherein,
  • the electronic device is used to establish a screen projection connection with the large-screen device; the electronic device is also used to display the first interface of the first application.
  • the first application is a shopping application, and the first interface is the main interface or the first interface of the first application.
  • the product list interface of the application; the electronic device is also configured to receive a first operation on the first interface, where the first operation is an operation of clicking a link of the first product; the electronic device is also configured to obtain in response to the first operation to the first screen projection content, and send the first screen projection data to the large-screen device through the screen projection connection;
  • the large-screen device is configured to display a second interface after receiving the first screen projection data, and the second interface includes the 1. Projection content; wherein, the second interface is a picture of the first product or a details page of the first product.
  • the large-screen device is specifically used to: display the second interface in full screen.
  • the electronic device is also used to: obtain device information of the large-screen device.
  • the device information of the large-screen device includes one or more of the following: wherein, the device information of the large-screen device The screen size, the color format of the screen of the large-screen device, and the pixel density of the screen of the large-screen device; the electronic device is also used to send the first screen projection content to the large screen device through the first screen projection connection.
  • the application obtains the first screen projection content; the electronic device generates the first screen projection data based on the first screen projection content and the device information of the large screen device through the first application.
  • the electronic device is further configured to obtain the second screen projection content and pass the second screen projection data before receiving the first operation on the first interface.
  • the screen projection connection is sent to the large-screen device; the large-screen device is also used to display the first interface after receiving the second screen projection data.
  • the electronic device can send the first screen projection content to the large screen device.
  • the large screen device can send the first screen projection content to the large screen device based on the first screen projection content and the large screen device.
  • the device information generates the first screen projection data and displays the first screen projection content.
  • the electronic device sends the address of the first screen-casting content to the large-screen device, and the large-screen device can obtain the address based on the address of the first screen-casting content. Go to the first screencast content. Then, the first screen projection data is generated based on the first screen projection content and the device information of the large-screen device, and the first screen projection content is displayed.
  • the present application provides an electronic device.
  • the electronic device includes: one or more processors, and one or more memories; the one or more memories are coupled to the one or more processors, and the One or more memories are used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform any of the above aspects in any possible implementation manner.
  • a screencasting method provided.
  • the present application provides a large-screen device.
  • the large-screen device includes: one or more processors, and one or more memories; the one or more memories are coupled to the one or more processors, The one or more memories are used to store computer program codes.
  • the computer program codes include computer instructions.
  • the one or more processors call the computer instructions to cause the large-screen device to perform any possible aspect of any of the above.
  • a screencasting method provided in the implementation.
  • the present application provides a computer-readable storage medium for storing computer instructions.
  • the computer instructions When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute any possible implementation of any of the above aspects.
  • a screencasting method provided in .
  • the present application provides a computer-readable storage medium for storing computer instructions.
  • the large-screen device causes the large-screen device to perform any possible method of any of the above aspects.
  • a screencasting method provided in the implementation.
  • the present application provides a computer program product.
  • the computer program product When the computer program product is run on an electronic device, it causes the electronic device to execute a screen projection method provided in any possible implementation of any of the above aspects.
  • the present application provides a computer program product.
  • the large-screen device causes the large-screen device to perform a screen projection provided in any possible implementation of any of the above aspects. method.
  • Figure 1A is a scene in which an electronic device and a large screen share online video based on mirroring screen projection provided by an embodiment of the present application;
  • Figure 1B is a schematic diagram in which the size of the screen projection content does not match the size of the large screen provided by the embodiment of the present application;
  • Figure 1C is an example provided by the embodiment of the present application, showing a scenario in which an electronic device and a large screen share network videos based on online screencasting;
  • FIG. 2 is a system architecture diagram provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • Figure 4 is a software structure block diagram of an electronic device 100 provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of the hardware structure of a large screen 200 provided by an embodiment of the present application.
  • 6A-6E exemplarily show a schematic diagram of the electronic device 100 establishing a screen projection connection with the large screen 200;
  • FIG. 7A-7H exemplarily illustrate a schematic diagram of the electronic device 100 receiving a user operation to change the screencasting permission level of an application
  • 8A-8D exemplarily illustrate a schematic diagram in which the electronic device 100 displays the video in the Huawei video application on the large screen 200;
  • 9A-9D exemplarily illustrate a schematic diagram of the electronic device 100 displaying a sub-interface of interface one on the large screen 200;
  • 10A-10D exemplarily illustrate schematic diagrams of the electronic device 100 displaying a sub-interface of interface one on the large screen 200;
  • 11A-11D exemplarily illustrate a schematic diagram of the electronic device 100 displaying a partial area of interface one on the large screen 200;
  • Figure 12 is a UI diagram provided by an embodiment of the present application.
  • Figures 13A to 13D exemplarily show a schematic diagram of the large screen 200 switching to display screen projection content
  • Figure 14 is another UI diagram provided by the embodiment of the present application.
  • Figure 15 is a schematic flowchart of a screen projection method provided by an embodiment of the present application.
  • Figure 16 exemplarily shows a schematic method flow diagram of another screen casting method provided by an embodiment of the present application.
  • FIG. 17 schematically shows a method flow diagram of yet another screen casting method provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • GUI graphical user interface
  • the electronic device can display the content displayed by the electronic device (such as the multimedia content played) on the large screen through wireless projection (such as continuing to play the multimedia content). Afterwards, the electronic device can continue to display the content, or it can no longer display the content. .
  • Wireless screen projection can also be replaced by other words, such as multi-screen interaction, etc.; this is not limited by the embodiments of this application.
  • the electronic device can also be called the output end or the source end (source end), and the large screen can also be called the input end or the receiving end (sink end).
  • the multimedia content displayed or played by the electronic device can include any one or more of the following: video, text, pictures, photos, audio or tables, etc.
  • multimedia content can be movies, TV series, short videos, musicals, etc.
  • the multimedia content may be network multimedia content, local multimedia content, or a combination of network multimedia content and local multimedia content.
  • network multimedia content refers to multimedia content obtained by electronic devices from the network. For example, when an electronic device runs a video application, it obtains video from a server that provides audio and video services.
  • Local multimedia content is multimedia content stored or generated locally on an electronic device. For example, pictures or tables stored locally on the electronic device.
  • Mirror projection Electronic devices (such as smartphones, tablets, etc.) establish a communication connection with large screens (such as smart TVs, smart screens, etc.). The electronic device obtains multimedia content from the network side or the local side, and then transmits the After the multimedia content is encoded, it is transmitted to the large screen through wireless transmission such as point-to-point transmission; the large screen is decoded and then output (such as display, playback, etc.).
  • large screens such as smart TVs, smart screens, etc.
  • the multimedia content may be network multimedia content, local multimedia content, or a combination of the two.
  • the point-to-point transmission method between the electronic device and the large screen may include but is not limited to: wireless fidelity direct (Wi-Fi direct) (also known as wireless fidelity peer-to-peer, Wi-Fi P2P) communication connection, Bluetooth communication connection, near field communication (near field communication, NFC) connection, etc.
  • Wi-Fi Mirroring can include miracast developed by the Wi-Fi Alliance, and private mirroring solutions developed by various companies, such as Huawei's cast+, Apple's AirPlay, etc. Among them, miracast is built on the basic technical standards developed by the Wireless Fidelity Wi-Fi Alliance and the real-time streaming protocol (RTSP).
  • Wi-Fi basic technology standards can include wireless transmission technologies 802.11n, 802.11ac, Wi-Fi direct/Wi-Fi P2P, tunneled direct link setup (TDLS), WPA2 (Wi-Fi protected access) for management security 2) Encryption, WMM (Wi-Fi multimedia) technology that provides quality of service and traffic management, etc.
  • FIG. 1A exemplarily shows a scenario in which an electronic device and a large screen share online video based on mirroring.
  • the electronic device and the large screen establish a communication connection (such as a Wi-Fi P2P connection).
  • the electronic device is connected to the routing device, and obtains the streaming media from the server through the routing device.
  • the electronic device accesses the routing device, which can specifically be an access point (AP) provided by the electronic device accessing the routing device. After that, the electronic device obtains the screen recording content and the recording content through screen recording, audio recording, etc.
  • AP access point
  • the Wi-Fi P2P connection is sent to the large screen; after the large screen receives it, it will be played and displayed in real time.
  • Mirror projection has the following problems: Problem 1. After the electronic device establishes a mirror projection connection with the large screen, when the user frequently switches multimedia content on the mobile phone, the projection content displayed on the large screen will also switch frequently. However, in some cases, the user only needs to switch to display multimedia content on the electronic device without switching to the screen projection content without a large screen, which is contrary to the user's intention.
  • the display size of the picture 201 on the electronic device is a in length and b in width.
  • the electronic device projects the picture to the large screen, and the picture 202 is displayed on the large screen.
  • the display size of the picture 202 on the electronic device is c in length and d in width.
  • Both the electronic device and the large screen are connected to the Internet or LAN.
  • the electronic device only sends the network address corresponding to the multimedia resource to be projected, such as the uniform resource locator (URL), to the large screen.
  • the large screen obtains the corresponding multimedia content from the Internet side or the LAN side, and then performs output (such as playback and display).
  • the multimedia content may be network multimedia content, local multimedia content or a combination of the two.
  • the electronic device and the large screen are connected to the LAN formed by the same wireless Wi-Fi access point AP.
  • the electronic device and the large screen are connected to different networks, such as different LANs formed by different APs.
  • the different LANs are connected through Internet interconnection.
  • Online screencasting can include DLNA, as well as private online screencasting solutions developed by various companies. For example, Google's Google cast, Apple's AirPlay, etc. Among them, DLNA is built on the universal plug and play (UPnP) protocol.
  • UFP universal plug and play
  • Figure 1C exemplarily shows a scenario in which an electronic device and a large screen share network videos based on online screencasting.
  • the electronic device and the large screen are jointly connected to the LAN formed by the Wi-Fi AP.
  • the electronic device sends the URL of the played online video to the large screen through the AP, and then the large screen obtains the multimedia content based on the URL.
  • This website provides online audio and video The address of the service's server.
  • inventions of the present application provide a screen projection method.
  • the method includes the following steps:
  • Step 1 The electronic device 100 establishes a screen projection connection with the large screen 200 .
  • Step 2 The electronic device 100 obtains the device information of the large screen 200 .
  • the device information of the large screen 200 includes but is not limited to: the address of the large screen 200, the name of the large screen 200, the screen size of the large screen 200, the color format of the screen on the large screen 200, the pixel density of the screen on the large screen 200, etc. .
  • the electronic device 100 obtains the first virtual display screen based on the device information of the large screen 200 .
  • Step 3 The electronic device 100 displays the first multimedia content of application one.
  • the screen projection content is drawn based on the device information of the large screen 200 and the first multimedia content.
  • the size of the projected content is the same as the screen size of the large screen 200 .
  • Step 4 The electronic device 100 sends the screen projection content to the large screen 200, and the large screen 200 displays the screen projection content in full screen.
  • the electronic device 100 may obtain the screencast content through screen recording and/or audio recording, and send the screencast content to the large screen 200, and the large screen 200 displays the screencast content.
  • First multimedia content When the screen size of the electronic device 100 is different from the screen size of the large screen 200, the large screen 200 displays the first multimedia content in a non-full screen manner.
  • the large screen 200 can display part of the interface in the application in full screen, that is, the screen utilization rate of the large screen 200 is 100%, which solves the problem of insufficient screen utilization of the large screen 200 The problem.
  • the screen projection content drawn by application one may be the same as or different from the multimedia content displayed by application one on the electronic device 100 .
  • the screen projection content drawn by application one is different from the multimedia content displayed by application one on the electronic device 100, it is realized that different applications can draw the screen projection content in a personalized manner.
  • the application can set certain user interfaces in the application to be displayed on the large screen 200 in a mirror projection manner.
  • the application can also set certain user interfaces in the application based on the large screen 200.
  • the device information is redrawn and displayed on the large screen 200.
  • Different applications can be customized, which is not limited in the embodiments of this application. For example, in the gallery application, when a certain picture in the gallery application is displayed or a certain video in the gallery application is displayed, the gallery application will redraw the picture interface or video interface based on the device information of the large screen 200 and then cast it to the screen. Displayed on the large screen 200.
  • the video application when a certain video in the video application is displayed, the video application will redraw the video interface based on the device information of the large screen 200 and then project and display it on the large screen 200 .
  • the shopping application when displaying the details page of a certain product in the shopping application, the shopping application will redraw the product details page based on the device information of the large screen 200 and then project and display it on the large screen 200 .
  • the electronic device 100 can be displayed on the large screen 200 in a mirror projection manner.
  • all user interfaces within the application can also support redrawing and then be projected and displayed on the large screen 200 .
  • the embodiments of the present application do not limit this.
  • Figure 2 exemplarily shows a system architecture diagram provided by an embodiment of the present application.
  • the system includes an electronic device 100 and a large screen 200.
  • the electronic device 100 establishes a screen projection connection with the large screen 200 , that is, the electronic device 100 can project and display the screen projection content on the large screen 200 .
  • the electronic device 100 can establish a screen projection connection with multiple (two or more) devices at the same time.
  • the electronic device 100 establishes a screen projection connection with the large screen 200 and the large screen 300 at the same time, and the electronic device 100 can project and display the same screen projection content on the large screen 200 and the large screen 300 respectively.
  • the electronic device 100 can also display different screen projection contents on the large screen 200 and the large screen 300 respectively. The embodiments of the present application do not limit this.
  • the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment, the embodiment of this application does not place special restrictions on the specific type of electronic equipment.
  • the software system of the electronic device 100 includes but is not limited to Linux or other operating systems. For Huawei’s Hongmeng system.
  • the large screen 200 may be a tablet computer, a desktop computer, a portable electronic device (such as a laptop computer, Laptop), a smart TV (such as smart screen), car computer, smart speaker, augmented reality (AR) device, virtual reality (VR) device, electronic billboard with display screen, used alone (for example, projected on a wall) or Projectors used in combination with display devices (such as screens), other smart devices with displays, and other smart devices with speakers, etc.
  • Exemplary embodiments of the large screen 200 include, but are not limited to, equipped with Linux or other operating system devices.
  • the large screen 200 may be a TV equipped with a TV box.
  • the TV box is used to receive multimedia content from the electronic device 100 and provide a screen projection function, while the TV only provides a display function.
  • the large screen 200 is a television set as an example for description.
  • the electronic device 100 After the electronic device 100 establishes a screen projection connection with the large screen 200, the electronic device 100 will obtain the device information of the large screen 200.
  • the device information of the large screen 200 includes but is not limited to: the address of the large screen 200, the name of the large screen 200, The screen size of the large screen 200, the color format of the screen on the large screen 200, the pixel density of the screen on the large screen 200, etc.
  • the electronic device 100 receives the user's operation and displays the multimedia content in application one.
  • the large screen 200 does not display the screen projection content, and the currently displayed multimedia content in application one supports redrawing and is displayed on the large screen 200 after projection.
  • Application 1 will redraw the screen projection content based on the multimedia content in Application 1 and the device information of the large screen 200 to obtain the first screen projection content.
  • the electronic device 100 sends the first screen projection content to the large screen 200 based on the screen projection connection, so that the large screen 200 displays the first screen projection content in full screen.
  • the electronic device 100 will use screen recording and/or audio recording to obtain the projection content, and the electronic device 100 will project the screen.
  • the content is sent to the large screen 200, so that the large screen 200 displays the multimedia content in application one in a non-full screen manner.
  • the electronic device 100 receives the user's operation and displays the multimedia content in application two.
  • the screen casting priority of application one is higher than or equal to the screen casting priority of application two
  • the large screen 200 still displays the first screen casting content. .
  • application two When the screen casting priority of application one is lower than the screen casting priority of application two, application two will redraw the screen casting content based on the multimedia content in application two and the device information of the large screen 200 to obtain the second screen casting content.
  • the electronic device 100 sends the second screen projection content to the large screen 200 based on the screen projection connection, so that the large screen 200 displays the second screen projection content.
  • the large screen 200 can display the projection content in full screen, that is, the screen utilization rate of the large screen 200 is 100%, which solves the problem of insufficient screen utilization of the large screen 200 .
  • different applications draw screen projection content respectively, which may be the same as or different from the multimedia content in the application displayed by the electronic device 100 .
  • the screen projection content drawn by the application is different from the multimedia content of the display application on the electronic device 100, it is realized that different applications can draw the screen projection content in a personalized manner.
  • the following embodiments of the present application take the electronic device 100 as a mobile phone as an example for description.
  • FIG. 3 shows a schematic structural diagram of the electronic device 100.
  • the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or Smart city equipment, the embodiment of this application does not place special restrictions on the specific type of electronic equipment.
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • wearable device wearable device
  • vehicle-mounted device smart home device and/or Smart city equipment
  • 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 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and 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 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention 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 figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationships between the modules illustrated in the embodiment of the present invention are only schematic illustrations and do not constitute a structural limitation of 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 the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • 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, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided 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 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a 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 sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • 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, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer higher than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise and brightness. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected 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 convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer higher than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • the external memory interface 120 can be used to connect an external non-volatile memory to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save music, video and other files in external non-volatile memory.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • 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 signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity higher than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes may be determined by gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory gaming scenarios.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outwardly through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. touch
  • touch The touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 4 is a software structure block diagram of the electronic device 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android runtime) and system libraries, and kernel layer (kernel).
  • the embodiments of the present application do not limit the layering of the software structure of the electronic device.
  • modules included in each layer shown in Figure 4 are modules involved in the embodiments of the present application.
  • the modules included in the following layers do not constitute the structure and module deployment level of the electronic device (example description). ) limit.
  • the drawing module can be deployed at the application layer or at the application framework layer.
  • the modules shown in Figure 4 can be deployed individually, or several modules can be deployed together.
  • the division of modules in Figure 4 is an example.
  • the names of the modules shown in Figure 4 are examples.
  • the application layer can include a series of application packages. Such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
  • the application framework layer can provide application programming interface (application programming interface, API) and programming framework for applications in the application layer.
  • the application framework layer can include some predefined functions. Referring to Figure 4, the application framework layer may include: system service module, virtual screen, window management service (window manager service, WMS), drawing module, rendering module, and layer synthesis (Surface Flinger, SF).
  • the system service module can notify each application whether it has permission to cast the screen, and control the screen casting behavior of the application.
  • the device information of the virtual screen is the same as the device information of the device (for example, the large screen 200) to which the electronic device 100 establishes a screen projection connection, and the application can draw the screen projection content on the virtual screen.
  • the size of the virtual screen is the same as the size of the device (for example, the large screen 200) through which the electronic device 100 establishes a screen projection connection.
  • the drawing module is used to draw various elements on the screen projection interface displayed on the device being projected.
  • the rendering module is used to render elements drawn by the drawing module.
  • SF is used to perform layer synthesis on each rendered element to obtain the screen projection interface to be displayed on the device being projected.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • Figure 5 shows the hardware structure of the large screen 200 provided by the embodiment of the present application.
  • the large screen 200 may include: a video codec 221, a processor 222, a memory 223, a wireless communication processing module 224, a power switch 225, a wired LAN communication processing module 226, and a high definition multimedia interface (high definition multimedia interface).
  • Individual modules can be connected via a bus. in:
  • Processor 222 may be used to read and execute computer-readable instructions.
  • the processor 222 may mainly include a controller, arithmetic unit, and a register.
  • the controller is mainly responsible for decoding instructions and issuing control signals for operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations, and logical operations. It can also perform address operations and conversions.
  • Registers are mainly responsible for storing register operands and intermediate operation results temporarily stored during instruction execution.
  • the hardware architecture of the processor 222 may be an application specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.
  • ASIC application specific integrated circuit
  • the wireless communication processing module 224 may include a WLAN communication processing module 224A, and may also include a Bluetooth (BT) communication processing module 224B, an NFC processing module 224C, a cellular mobile communication processing module (not shown), and the like.
  • BT Bluetooth
  • NFC NFC processing
  • cellular mobile communication processing module not shown
  • the wireless communication processing module 224 may be configured to establish a communication connection with the electronic device 100 and receive encoded data sent by the electronic device 100 based on the communication connection.
  • the WLAN communication processing module 224A can be used to establish a Wi-Fi direct communication connection with the electronic device 100
  • the Bluetooth (BT) communication processing module 224B can be used to establish a Bluetooth communication connection with the electronic device 100
  • the NFC processing module 224C can be used to establish a Bluetooth communication connection with the electronic device 100.
  • the wireless communication processing module 224 can monitor signals transmitted by the electronic device 100 such as detection requests and scanning signals, discover the electronic device 100, and establish a communication connection with the electronic device 100. In another implementation, the wireless communication processing module 224 can also transmit signals, such as detection requests and scanning signals, so that the large screen 200 can discover the electronic device 100 and establish a communication connection (such as a Wi-Fi P2P connection) with the electronic device 100 .
  • Video codec 221 is used to compress or decompress digital video.
  • the video codec 221 can decompress multimedia content from the electronic device 100 or the server.
  • the large screen 200 can support one or more video codecs and can play videos in one or more encoding formats. For example: MPEG1, MPEG2, MPEG3, MPEG4, etc.
  • the processor 222 may be used to parse signals received by the wireless communication processing module 224, such as detection requests broadcast by the large screen 200.
  • the processor 222 may be configured to perform corresponding processing operations according to the parsing results, such as generating a detection response, etc.
  • the processor 222 may be configured to drive the display screen 229 to perform display according to the decompression result of the video codec 221 .
  • Memory 223 is coupled to processor 222 for storing various software programs and/or sets of instructions.
  • the memory 223 may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
  • the memory 223 can store operating systems, such as uCOS, VxWorks, RTLinux, Harmony, Android and other embedded operating systems.
  • the memory 223 may also store a communication program that may be used to communicate with the large screen 200, one or more servers, or additional devices.
  • the power switch 225 can be used to control the power supply to the large screen 200 .
  • the wired LAN communication processing module 226 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN and communicate with devices in the WAN.
  • the HDMI communication processing module 227 may be used to communicate with other devices through an HDMI interface (not shown).
  • USB communication processing module 228 may be used to communicate with other devices through a USB interface (not shown).
  • Display 229 may be used to display images, videos, etc.
  • the display screen 229 can be an LCD, OLED, AMOLED, FLED, QLED or other display screen.
  • For the content displayed on the display screen 229 reference may be made to the relevant descriptions of subsequent method embodiments.
  • the audio module 230 can be used to output audio signals through the audio output interface, so that the large screen 200 can support audio playback.
  • the audio module 230 may also be used to receive audio data through the audio input interface.
  • the audio module 230 may include, but is not limited to, a microphone, a speaker, a receiver, etc.
  • the large screen 200 may also include a serial interface such as an RS-232 interface.
  • This serial interface can be connected to other devices, such as speakers and other audio external devices, so that the display and audio external devices can cooperate to play audio and video.
  • the structure illustrated in FIG. 5 does not constitute a specific limitation on the large screen 200 .
  • the large screen 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 100 receives the user's operation to enable the screen casting connection function in the setting application, and selects a device to establish a screen casting connection.
  • 6A to 6E exemplarily illustrate a schematic diagram of the electronic device 100 establishing a screen projection connection with the large screen 200 .
  • FIG. 6A shows a schematic diagram of the electronic device 100 displaying the main interface of the setting application.
  • the main interface of the settings application includes multiple setting options, such as airplane mode setting options, Wi-Fi setting options, Bluetooth setting options, personal hotspot setting options, mobile network setting options, Do Not Disturb mode setting options, display and brightness setting options, Huawei Account setting options, more connection setting options, and more.
  • the electronic device 100 receives a user's input operation (eg, click) for more connection setting options, and in response to the user's input operation, the electronic device 100 displays a user interface 610 as shown in FIG. 6B .
  • the user interface 610 shows multiple connection options, such as Huawei sharing options, NFC options, mobile phone screen casting options, printing options, VPN options, encrypted DNS options, and so on. Among them, the mobile screen projection function is turned off.
  • the electronic device 100 receives the user's input operation (eg, click) for the mobile phone screen casting option.
  • the electronic device 100 displays the user interface 620 as shown in FIG. 6C .
  • the user interface 620 shows an option 6201 for turning on/off the screen mirroring function of the mobile phone and an option 6202 for setting application screen mirroring permission management. Among them, the mobile screen projection function is turned off.
  • the electronic device 100 receives the user's input operation (such as click) for the option 6201 of turning on/off the mobile screen projection function.
  • the electronic device 100 displays the user interface as shown in FIG. 6D 630.
  • the display form of the option 6201 for turning on/off the screen projection function of the mobile phone is switched from the off state to the on state.
  • the electronic device 100 After the mobile phone screen casting function is turned on on the electronic device 100, the electronic device 100 will scan other surrounding devices that also have the screen casting function enabled. As shown in FIG. 6D , the electronic device 100 scans to other nearby devices with the screen casting function enabled, including the large screen 200 , the large screen 300 and the large screen 400 .
  • the electronic device 100 receives the user's input operation (such as click) on the options of the large screen 200 , and in response to the user's input operation, the electronic device 100 will establish a screen casting connection with the large screen 200 .
  • the user's input operation such as click
  • the electronic device 100 After the electronic device 100 successfully establishes a screen casting connection with the large screen 200, the electronic device 100 will display prompt information 6203 as shown in FIG. 6E.
  • the prompt information 6203 is used to prompt the electronic device 100 that the screen casting connection has been successfully established with the large screen 200. .
  • the electronic device 100 can also establish a projection connection with other devices (such as the large screen 300) based on the method shown in FIGS. 6A-6E.
  • the screen casting connection enables the electronic device 100 to establish screen casting connections with multiple different devices at the same time.
  • FIG. 6A-FIG. 6E only illustrate the way in which the electronic device 100 establishes a screen projection connection with the large screen 200. In other embodiments, the electronic device 100 can also establish a projection connection with the large screen 200 in other ways. Screen connection, the embodiment of the present application does not limit this.
  • An embodiment of the present application provides a screen casting method. After the electronic device 100 establishes a screen casting connection with the large screen 200, the electronic device 100 receives the user's operation to display the multimedia content of application one. The electronic device 100 can display the multimedia content in application one. Content is projected onto the big screen. If the electronic device 100 receives the user's operation to display the multimedia content of application two, and the casting permission of application two is higher than the casting permission of application one, the electronic device 100 can cast the multimedia content in application two and display it on the large screen. on the screen. When application two's screen casting permission is lower than or equal to application one's screen casting permission, the electronic device 100 still projects the multimedia content in application one to the large screen and does not switch to display the projected multimedia content. In this way, it is possible to avoid frequent switching of multimedia content in different applications on the electronic device 100, which would lead to frequent switching of screencasting content, resulting in confusing screencasting.
  • the electronic device 100 can divide only the applications installed on the electronic device 100 into different levels of screen casting permissions, and applications with high-level screen casting permissions can seize the screen casting channels of applications with high-level and low-level screen casting permissions. Applications with low-level screencasting permissions cannot seize the screencasting channel of applications with high-level screencasting permissions. Applications with the same level of screen casting permissions cannot seize the screen casting channels of applications with the same level of screen casting permissions. It is realized that the electronic device 100 can control the screen casting behavior of the application.
  • the electronic device 100 can divide the screen casting permissions of applications on the electronic device 100 into three levels, namely, the first level of screen casting permissions, the second level of screen casting permissions, and the third level of screen casting permissions.
  • the first level of screen casting permission is higher than the second level of screen casting permission
  • the second level of screen casting permission is higher than the third level of screen casting permission.
  • the electronic device 100 can also divide more applications on the electronic device 100 into more or less screen casting permission levels, which is not limited in the embodiment of the present application.
  • applications with the first level of screen casting permission may include but are not limited to: system applications, and system applications include but are not limited to: for example, desktop applications.
  • desktop applications can be Huawei Productivity Desktop, Huawei Computer Mode, etc.
  • Applications with second-level screen casting permissions may include but are not limited to: video applications, instant messaging applications, music applications, God-view game applications, etc.
  • God's perspective game applications can be understood as spectator mode or third-person perspective game applications.
  • Applications with third-level screen casting permissions may include but are not limited to: gallery applications, office applications, first-person game applications, etc.
  • the multimedia content in the application with the first level of screen casting permission or the second level of screen casting permission is displayed.
  • the large screen 200 can still display the screencast content within the application with the first level of screencasting permission or the application with the second level of screencasting permission.
  • the large screen 200 when the electronic device 100 exits from displaying the multimedia content in the application with the third level of screen casting authority, the large screen 200 also stops displaying as the electronic device 100 stops displaying.
  • the electronic device 100 can set the screen casting permission level of the newly downloaded application based on the type of the newly downloaded application.
  • the electronic device 100 may set the screen casting permission level of the newly downloaded application to the lowest level.
  • the electronic device 100 may set the newly downloaded application to not support screen casting.
  • the embodiments of this application do not limit the specific implementation.
  • the electronic device 100 divides the applications on the electronic device 100 into different screen casting permission levels.
  • the electronic device 100 can also receive the user's operation to change the screen casting permission level of the application to achieve personalized customization and improve the performance of the application. user experience.
  • FIG. 7A to 7H illustrate schematic diagrams of the electronic device 100 receiving a user operation to change the screencasting permission level of an application.
  • the electronic device 100 receives the user's input operation (for example, click) on the option 6202 for setting application casting rights management in the user interface 620 .
  • the electronic device 100 may display the display as shown in FIG. 7B User interface 710 is shown.
  • Different screencasting permission level options are shown in the user interface 710 .
  • the first-level screen casting permission option the second-level screen casting permission option 7101 and the third-level screen casting permission option.
  • the electronic device 100 may receive a user's input operation (such as a click) for the screen casting permission level option, and in response to the user's input operation, the electronic device 100 may display one or more applications classified under the corresponding screen casting permission level.
  • the electronic device 100 receives the user's input operation (such as click) for the second-level screen casting permission option 7101.
  • the electronic device 100 may display the second-level screencasting permission option 7101 as shown in FIG. 7C .
  • the icon and name of the application under the screen casting permission For example, applications under the second level of screen casting permission include Huawei video applications, instant messaging applications, music applications, etc.
  • the electronic device 100 can receive the user's operation to delete the application from each level of screen casting permission.
  • the electronic device 100 may receive a user's input operation (such as a click) on the delete control as shown in FIG. 7C , and in response to the user's input operation, the electronic device 100 may remove the corresponding application from the second level of screen casting permissions.
  • the electronic device 100 receives the user's input operation (such as clicking) on the delete control 7102 as shown in Figure 7D.
  • the electronic device 100 can remove Huawei Video from the second-level screen casting permission. .
  • the electronic device 100 can display the user interface 720 as shown in FIG. 7E.
  • the difference between the user interface 720 and the user interface 710 is that the user interface 720 does not include the Huawei video application under the second level of screencasting authority.
  • the electronic device 100 can classify Huawei Video to the lowest level of screen casting permission (ie, the third level of screen casting permission).
  • the electronic device 100 can also classify Huawei Video to any level of screencasting permission. By default, Huawei Video does not support the screencasting function. .
  • the electronic device 100 may receive a user's operation to add other applications under each level of screencasting permissions.
  • the electronic device 100 may receive a user's input operation (such as a click) on the add application control 7103, and in response to the user's input operation, the electronic device 100 may add other applications under the second-level screen casting permission.
  • the electronic device 100 receives a user's input operation (eg, click) for adding an application control 7103 , and in response to the user's input operation, the electronic device 100 may display a prompt bar 7110 as shown in FIG. 7G .
  • the electronic device 100 can receive the user's up and down sliding operation on the prompt bar 7110, so that the electronic device 100 can display other more applications in the prompt bar 7110.
  • the electronic device 100 receives the user's input operation for the shopping application option in the prompt bar 7110 and selects the shopping application. Afterwards, the electronic device 100 receives the user's input operation (such as click) for the determined option in the prompt bar 7110. In response to the user's input operation, the electronic device 100 can add the shopping application under the second level of screen casting permission, that is, the shopping application The casting permission is set to the second level of casting permission. Afterwards, the electronic device 100 can display the user interface 730 as shown in FIG. 7H . The difference between the user interface 730 and the user interface 710 is that the applications included under the second level of screen casting permission also include shopping applications.
  • Figures 7A to 7H are only schematic diagrams illustrating changing the application's screen casting permissions. In actual applications, the implementation of changing the application's screen casting permissions may be different from that shown in Figures 7A to 7H. This document The application examples do not limit this.
  • the electronic device 100 can receive the multimedia content of the user's operation display application one. Allow. Application 1 can redraw the screen projection content based on the device information of the large screen 200 and the multimedia content of the application 1, so that the size of the image frame or image frame in the screen projection content is the same as the display size of the large screen 200, which can improve the screen projection of the large screen 200. screen utilization.
  • Application 1 can set some user interfaces to be displayed on the large screen 200 in a mirror projection manner.
  • Application 1 can also set some user interfaces to be redrawn based on the device information of the large screen 200 and then be displayed on the screen.
  • Different applications can be customized, which is not limited in the embodiments of this application. For example, in the gallery application, when a certain picture in the gallery application is displayed or a certain video in the gallery application is displayed, the gallery application will redraw the picture interface or video interface based on the device information of the large screen 200 and then cast it to the screen. Displayed on the large screen 200.
  • the video application when a certain video in the video application is displayed, the video application will redraw the video interface based on the device information of the large screen 200 and then project and display it on the large screen 200 .
  • the shopping application when displaying the details page of a certain product in the shopping application, the shopping application will redraw the product details page based on the device information of the large screen 200 and then project and display it on the large screen 200 .
  • application one may be a Huawei video application
  • the multimedia content displayed by the electronic device 100 in application one may be a video playback interface in the Huawei video application displayed by the electronic device 100 .
  • 8A to 8D exemplarily illustrate a schematic diagram in which the electronic device 100 displays the video in the Huawei video application on the large screen 200 .
  • the electronic device 100 displays the main interface 801 .
  • the electronic device 100 can display the main interface 801 on the large screen 200 through mirror projection.
  • the main interface 801 of the electronic device 100 includes icons of multiple application programs, such as a weather application icon, a Huawei store application icon, a shopping application icon, a Huawei video application icon, a calendar application icon, a gallery application icon, and a camera application. icon, the icon of the Contacts application, the icon of the Phone application.
  • the main interface 801 of the electronic device 100 also includes a calendar indicator, a weather indicator, a page indicator, a power indicator, etc.
  • the electronic device 100 receives a user's input operation (eg, click) on the icon of Huawei Video.
  • the electronic device 100 may display (a) in FIG. 8B The interface of Huawei Video application shown.
  • the interface of the Huawei video application shows multiple video thumbnails.
  • the electronic device 100 can display the interface of the Huawei video application on the large screen 200 through mirroring.
  • the electronic device 100 receives a user's input operation (eg, click) on the video thumbnail of "Stride Bravely", and in response to the user's input operation, the electronic device 100 may display as follows Video interface 802 shown in (a) in Figure 8C.
  • the video interface 802 includes the played video frames and the brief information of the video.
  • the brief information of the video can be, for example, the name of the video, the total number of video episodes, the number of video episodes being played, the play amount of the video, the type of the video, and the playback of the video. progress etc.
  • the Huawei video application can draw a screen projection interface based on the video frame shown in the video interface 802 and the device information of the large screen 200 , and pass the screen projection interface through the electronic device 100 and the large screen 200
  • the screen projection connection is sent to the large screen 200 so that the large screen 200 can display the screen projection interface.
  • the large screen 200 can display the screen projection interface 803 as shown in (b) in Figure 8C.
  • the Huawei video application can draw a screen projection interface based on the video frames shown in the video interface 802 , the video introduction information, and the device information of the large screen 200 , and pass the screen projection interface through the electronic device 100
  • the screen projection connection with the large screen 200 is sent to the large screen 200 so that the large screen 200 can display the screen projection interface.
  • the large screen 200 can display the screen projection interface 804 shown in (b) in FIG. 8D .
  • the difference between the screen casting interface 804 and the screen casting interface 803 is that in addition to the video frames, the screen casting interface 804 also includes the name of the video and the playback progress of the video.
  • the electronic device 100 may receive a user operation to display the interface one of the application one.
  • the electronic device 100 receives the user's operation on the interface one.
  • the electronic device 100 can display the sub-interface of the interface one (or the lower-level interface of the interface one) in the application on the large screen 200 .
  • the electronic device 100 can display the sub-interface of interface one.
  • the electronic device 100 may also display interface one, which is not limited in the embodiment of the present application.
  • application one may be a shopping application.
  • Interface one may be the main interface of the shopping application.
  • 9A-9D exemplarily illustrate a schematic diagram of the electronic device 100 displaying a sub-interface of interface one on the large screen 200.
  • the electronic device 100 displays a main interface 801 .
  • the electronic device 100 can display the main interface 801 on the large screen 200 through mirror projection.
  • the electronic device 100 receives the user's input operation (eg, click) on the icon of the shopping application in the main interface 801 .
  • the electronic device 100 may display the display as shown in FIG. 9B
  • the electronic device 100 can display the user interface 901 on the large screen 200 through mirror projection.
  • the user interface 901 may be a product recommendation page of a shopping application.
  • the user interface 901 may include a product display area.
  • the product display area A domain can display multiple recommended product icons, and the recommended product icon can be used to trigger the display of the product details page corresponding to the recommended product icon.
  • the user interface 901 may also include a personal center control, a scan control, a product search bar, etc.
  • the electronic device 100 receives the user's input operation (for example, click) on the basketball shoe product icon.
  • the electronic device 100 still displays a user interface. 901.
  • the user's input operation for example, click
  • the shopping application in response to the user's input operation (such as clicking) on the basketball shoe product icon, the shopping application obtains a sub-interface of the user interface 901 (or a lower-level interface of the user interface 901 ), the shopping application draws the screen projection interface based on the sub-interface of the user interface 901 and the device information of the large screen 200, and sends the screen projection interface to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200.
  • the large screen 200 can display a screen projection interface.
  • the large screen 200 can display a screen projection interface 902 as shown in (b) of FIG. 9C .
  • the screen projection interface 902 includes pictures of basketball shoes, product introductions of basketball shoes, store links of basketball shoes, purchase options, collection options, etc.
  • the screen projection interface 902 is a sub-interface of the user interface 901. In this way, the electronic device 100 can display the sub-interface of the user interface 901 on the large screen 200, so that the user can view the product details page on the
  • the electronic device 100 may display the user interface 903 , and the user interface 903 is the user's input operation.
  • the large screen 200 displays the user interface 903. In this way, the electronic device 100 can display the product details page on the electronic device 100 and on the large screen at the same time.
  • the electronic device 100 may receive a user operation to display the interface one of the application one.
  • the electronic device 100 receives the user's second operation on interface one.
  • Operation two is the operation of selecting pictures.
  • the electronic device 100 can project and display the image selected by the user on the large screen 200 .
  • the electronic device 100 may still display interface one.
  • the electronic device 100 may also display the picture selected by the user, which is not limited in the embodiment of the present application.
  • application one may be a shopping application.
  • Interface one may be the main interface of the shopping application.
  • FIGS. 10A to 10D exemplarily illustrate schematic diagrams of the electronic device 100 displaying a sub-interface of interface one on the large screen 200 .
  • the electronic device 100 may display a user interface 901 of a shopping application.
  • the electronic device 100 receives the user's input operation for the basketball shoe product image (for example, the selection operation of the display area where the basketball shoe product icon is located), and the large screen 200 displays the display as (b in FIG. 10A ) user interface 901 shown.
  • the electronic device 100 receives the user's input operation (such as a long press operation) on the basketball shoe product picture, and the large screen 200 displays the user interface 901 as shown in (b) of Figure 10B
  • the electronic device 100 selects the basketball shoes product picture, and in response to the user's input operation, as shown in (a) in FIG. 10C , the electronic device 100 still displays the user interface 901.
  • the shopping application in response to the user's operation of the basketball shoe product image, the shopping application obtains the basketball shoe product image, and draws a screen projection interface based on the basketball shoe product image and the device information of the large screen 200. And the screen projection interface is sent to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200, so that the large screen 200 can display the screen projection interface.
  • the large screen 200 can display as shown in (b) in Figure 10C
  • the screen projection interface 1001 is displayed.
  • the electronic device 100 may not display the user interface 901 but may display basketball shoe product pictures, which is not limited in this embodiment of the present application.
  • the electronic device 100 in response to the user's operation of selecting a picture of a basketball shoe product, as shown in (a) in FIG. 10D , the electronic device 100 still displays the user interface 901 .
  • the shopping application obtains pictures of the basketball shoe product in multiple directions, and based on the multi-azimuth pictures of the basketball shoe product, the large screen 200 device information, draw the screen projection interface, and send the screen projection interface to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200, so that the large screen 200 can display the screen projection interface, for example, the large screen 200 can display
  • the screen projection interface 1002 is shown in (b) in Figure 10D.
  • the screen projection interface 1002 includes front pictures and side pictures of basketball shoe products. Not only the front pictures and side pictures, the shopping application can also obtain pictures from other aspects, such as pictures from the rear of basketball shoe products, so that the large screen 200 can display pictures of products from other directions.
  • the embodiment of this application is No restrictions.
  • the electronic device 100 may not display the user interface 901, but may display a front picture and a side picture of the basketball shoe product, which is not limited in the embodiment of the present application.
  • the electronic device 100 may receive a user operation to display the interface one of the application one.
  • the electronic device 100 receives the user's operation three on interface one. Operation three is the operation of selecting part of the area in interface one.
  • the electronic device 100 can project and display the partial area of interface one selected by the user on the large screen 200 .
  • the electronic device 100 may still display interface one.
  • the electronic device 100 may also display the partial area of interface one selected by the user, which is not limited in the embodiments of the present application. In this way, the electronic device 100 can display the content in the area selected by the user in on the large screen 200 so that the user can view detailed content in the area selected by the user.
  • application one may be a memo application.
  • Interface one can be the main interface of the memo.
  • 11A to 11D exemplarily illustrate a schematic diagram of the electronic device 100 displaying a partial area of interface one on the large screen 200 .
  • the electronic device 100 displays a main interface 801 .
  • the electronic device 100 can display the main interface 801 on the large screen 200 through mirror projection.
  • the electronic device 100 receives a user's input operation (eg, click) on the icon of the memo application in the main interface 801 .
  • the electronic device 100 may display the display as shown in FIG. 11B
  • One or more note icons are displayed in the user interface 1101. For example, the icon of "note 5", the icon of "note 4", the icon of "note 3", etc.
  • the electronic device 100 can display the user interface 1101 on the large screen 200 through mirror projection.
  • the electronic device 100 receives the user's input operation (for example, click) on the icon of "note 5".
  • the electronic device 100 displays the display as (a) in FIG. 11C ) user interface 1102 shown in ).
  • the user interface 1102 is the detailed content of "note 5".
  • the electronic device 100 can display the user interface 1102 on the large screen 200 through mirror projection.
  • the electronic device 100 receives the user's selection operation on the user interface 1102 , and the electronic device 100 can project and display the partial area of the user interface 1102 selected by the user on the large screen 200 .
  • the memo application obtains the partial area of the user interface 1102 selected by the user, and draws the screen projection interface based on the partial area of the user interface 1102 selected by the user and the large screen 200 device.
  • the memo application sends the screen projection interface to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200 , so that the large screen 200 can display the screen projection interface.
  • the electronic device 100 still displays the user interface 1102, and the large-screen interface displays the screen projection interface 1103 shown in (b) in Figure 11D.
  • the display content in the screen projection interface 1103 is selected by the user.
  • the electronic device 100 may not display the user interface 1102, but may display a partial area of the user interface 1102 selected by the user, which is not limited in this embodiment of the present application.
  • the electronic device 100 can also display the display content in the partial area of the user interface 1102 selected by the user on the large screen 200 in other languages (for example, English).
  • the electronic device 100 may receive a user's operation to stop displaying the interface of application one.
  • the large screen 200 can still continuously display multimedia content within the application.
  • the electronic device 100 stops displaying the interface one of the application one the large screen 200 also stops displaying the multimedia content in the application one.
  • the embodiments of this application do not limit specific implementation methods.
  • the electronic device 100 can display the video interface 802 as shown in (a) in FIG. 8D , and the large screen 200 can display the video interface 802 shown in (a) in FIG. 8C .
  • the electronic device 100 receives the user's operation to stop displaying the video interface 802. For example, the electronic device 100 receives the user's operation on the return key, so that the electronic device 100 displays the main interface 801 as shown in (a) of Figure 12 , at this time, the large screen 200 still displays the multimedia content in the Huawei video application as shown in (b) of Figure 12 , for example, the large screen 200 continues to display the screen projection interface 803.
  • the large screen 200 displays the multimedia content within application one.
  • the electronic device 100 receives the user's operation and displays the multimedia content in application two.
  • application two will based on the multimedia content in application two.
  • the device information of the large screen 200 is redrawn to obtain the second screen projection content, and the second screen projection is sent to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200, so that the large screen 200 can display the second screen projection content. Cast content.
  • the second application may be a gallery application
  • the multimedia content displayed by the electronic device 100 in the second application may be pictures in the gallery application displayed by the electronic device 100 .
  • the priority of the screen mirroring permission of the gallery application is higher than the priority of the screen mirroring permission of the Huawei video application.
  • 13A to 13D exemplarily illustrate a schematic diagram of the large screen 200 switching to display screen projection content.
  • the electronic device 100 displays a main interface 801 .
  • the electronic device 100 can display the main interface 801 on the large screen 200 through mirror projection.
  • the electronic device 100 receives a user's input operation (eg, click) on the icon of the gallery application.
  • the electronic device 100 may display (a) in FIG. 13B The interface of the gallery application shown.
  • the electronic device 100 can display the interface of the gallery application on the large screen 200 through mirror projection.
  • the interface of the gallery application shows thumbnails of multiple pictures.
  • the electronic device 100 receives a user's input operation (eg, click) on the thumbnail 1301 , and in response to the user's input operation, the electronic device 100 may display (a) in FIG. 13C
  • User interface 1302 is shown.
  • User interface 1302 includes pictures and multiple options.
  • the user interface 1302 includes pictures of animals (cats), return options, share options, favorite options, edit options, delete options, more options, and so on.
  • the gallery application can draw a screen projection interface based on the pictures shown in the user interface 1302, multiple options, and the device information of the large screen 200, and connect the screen projection interface to the large screen through the electronic device 100.
  • the screen projection connection between the screens 200 is sent to the large screen 200, so that the large screen 200 can display the screen projection interface.
  • the large screen 200 can display the screen projection interface 1303 as shown in (b) in Figure 13C.
  • the gallery application can draw a screen projection interface based on the pictures shown in the user interface 1302 and the device information of the large screen 200, and pass the screen projection interface through the connection between the electronic device 100 and the large screen 200.
  • the screen projection connection is sent to the large screen 200 so that the large screen 200 can display the screen projection interface.
  • the electronic device 100 displays the user interface 1302 as shown in (a) in Figure 13D
  • the large screen 200 can display ((a) in Figure 13D b) Screen projection interface 1304 shown.
  • the large screen 200 displays the multimedia content within application one.
  • the electronic device 100 receives the user's operation and displays the multimedia content in application two.
  • the large screen 200 still displays the multimedia content in application one. Multimedia content does not switch to display the screen projection content.
  • the second application may be a gallery application
  • the multimedia content displayed by the electronic device 100 in the second application may be pictures in the gallery application displayed by the electronic device 100 .
  • the priority of the gallery application's screen casting permission is lower than or equal to the priority of the Huawei video application's screen casting permission.
  • the electronic device 100 receives a user operation and displays a user interface 1302 .
  • the user interface 1302 is displayed on the electronic device 100, and the user interface 1302 is displayed on the large screen 200.
  • the screen projection interface 803 shown in (b) of Figure 14 is displayed.
  • the user interface 1302 is the multimedia content in the gallery application
  • the screen casting interface 803 is the multimedia content in the Huawei video application. That is, when the electronic device 100 and the large screen 200 establish a screen projection connection, multimedia contents in different applications can be displayed on the electronic device 100 and the large screen 200 .
  • FIG. 15 is a schematic flowchart of a screen projection method provided by an embodiment of the present application.
  • the electronic device 100 includes a system service module, application one and application two.
  • the electronic device 100 establishes a screen projection connection with the large screen 200.
  • the system service module obtains the device information of the large screen 200 and detects the screen projection status.
  • the system service module can obtain the device information of the large screen 200.
  • the device information of the large screen 200 includes but is not limited to: the address of the large screen 200, the name of the large screen 200, The screen size of the screen 200, the color format of the screen on the large screen 200, the pixel density of the screen on the large screen 200, etc.
  • the system service module is also used to detect the screen projection status, that is, to determine whether there is currently multimedia content within the application that is displayed on the large screen 200 .
  • Application one and application two are respectively registered in the system service module, so that application one and application two can obtain the screen projection status and the device information of the large screen 200 in real time.
  • the screen casting status is used by Application 1 and Application 2 to determine whether screen casting is currently available.
  • the device information of the large screen 200 is used by Application One and Application Two to draw the screen projection content through the device information of the large screen 200 after determining that the screen can be projected.
  • S1502 and S1503 may be executed before S1501 or after S1501, which is not limited in this embodiment of the present application.
  • the system service module executes S1506.
  • the system service module does not execute S1506, that is, the current application 1 cannot cast the screen.
  • the system service module sends a start screen casting instruction to Application 1.
  • application one draws the first screen casting content based on the device information of the large screen 200 and the multimedia content in the application one.
  • the electronic device 100 displays the multimedia content of application one, for example, displays the interface one of application one.
  • Application one can obtain the content displayed in interface one locally or from the server of application one, or synthesize multiple different layers of application one. , or a sub-interface of interface one (or called a lower-level interface of interface one).
  • the interface of application when the interface of application one supports redrawing and is displayed on the large screen 200, then application one can draw the first result based on the content displayed in interface one and the device information of the large screen 200.
  • the size of the first projected content is the same as the screen size of the large screen 200 .
  • the content displayed in the first screen projection content is the same as the content displayed in the first interface.
  • the interface layout of the first screen projection content and the first interface may be different.
  • application one can draw the first result based on part of the content displayed in interface one and the device information of the large screen 200.
  • the size of the first screencasting content is the same as the screen size of the large screen 200.
  • the content displayed in the first screencast content is the same as part of the content displayed in the first interface. Part of the content can be text, pictures, etc. displayed in the interface.
  • the interface of application one when the interface of application one supports redrawing and then is projected on the large screen 200, the interface of application one can be composed of multiple different layers.
  • Application one can draw the first screen projection content based on one or more layers of the synthesis interface one and the device information of the large screen 200 .
  • the size of the first screen projection content is the same as the screen size of the large screen 200 .
  • the electronic device 100 receives the user's operation on interface one, and application one can
  • the first screen projection content is drawn based on the sub-interface of interface one (or the next-level interface of interface one) and the device information of the large screen 200 .
  • the size of the first screen projection content is the same as the screen size of the large screen 200 .
  • the electronic device 100 will use screen recording and/or audio recording to obtain the projection content, and the electronic device 100 will send the projection content to The large screen 200 enables the large screen 200 to display the multimedia content displayed by the application in a non-full screen manner.
  • the application draws the screen projection content, and different applications can draw different screen projection content, realizing personalized screen projection.
  • the application redraws the screen projection content, and realizes that the size of the screen projection content can be drawn based on the size of the large screen 200, so that the size of the screen projection content adapts to the size of the large screen 200, so as to improve the use of the annoying screen of the large screen 200. Rate.
  • Application 1 sends the first screen projection content to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200.
  • the large screen 200 After receiving the first screen projection content, the large screen 200 displays the first screen projection content.
  • the large screen 200 can still continuously display the first screen projection content.
  • the large screen 200 also stops displaying the first screen projection content.
  • the large screen 200 can still continuously display the first screen projection content.
  • the electronic device 100 opens application two and displays the multimedia content in application two, and the large screen 200 displays the first screen projection content.
  • the system service module determines that the screen casting priority of application two is higher than the screen casting priority of application one, and the multimedia content displayed by application one supports redrawing and then is displayed on the large screen 200, the system service module executes S1512 and S1513. .
  • system service module determines that the screen casting priority of application two is lower than or equal to the screen casting priority of application one.
  • the system service module sends a start screen projection instruction to application two.
  • the system service module sends a stop screen casting command to Application 1.
  • Application 1 After Application 1 receives the stop screen projection instruction, Application 1 stops executing S1507-S1509.
  • application two After application two receives the command to start screencasting, application one starts executing S1514-S1516.
  • Application 2 sends the second screen projection content to the large screen 200 through the screen projection connection between the electronic device 100 and the large screen 200 .
  • the large screen 200 After receiving the second screen projection content, the large screen 200 displays the second screen projection content.
  • Figure 16 is a schematic flowchart of another screen projection method provided by an embodiment of the present application.
  • the electronic device establishes a screen projection connection with the large-screen device.
  • the electronic device may be the electronic device 100
  • the large-screen device may be the large screen 200 .
  • the electronic device displays the first interface of the first application.
  • the first interface may be a video interface or a picture interface
  • the second interface may be a video interface or a picture interface
  • the first application may be the Huawei video application shown in Figure 8B.
  • the first interface may be the main interface of the Huawei video application shown in Figure 8B.
  • the first application may also be the shopping application shown in FIG. 9B.
  • the first interface may be the user interface 901 of the shopping application shown in FIG. 9B.
  • the first application may also be the memo application shown in FIG. 11B.
  • the first interface may be the user interface 1101 of the memo application shown in FIG. 11B.
  • the electronic device receives a first operation on the first interface, where the first operation is used to select the first screen projection content.
  • the first operation may be an input operation for the video thumbnail of "Stride Bravely" as shown in FIG. 8B.
  • the first operation may also be an input operation for the basketball shoe product icon shown in FIG. 9B.
  • the first operation may be an input operation on the icon of “note 5” shown in FIG. 11B .
  • the electronic device sends the first screen projection data to the large screen device through the screen projection connection.
  • the large-screen device is specifically used to: display the second interface in full screen.
  • the size of the projected content can be adapted to the screen size of the large-screen device, thereby improving the screen utilization of the large-screen device.
  • the second interface may be the screen projection interface 803 shown in (b) in Figure 8C.
  • the second interface may be the screen projection interface 804 shown in (b) in Figure 8D.
  • the second interface may also be the screen projection interface 902 shown in (b) in Figure 9C.
  • the second interface may also be the screen projection interface 1001 shown in (b) in Figure 10C.
  • the second interface may also be the screen projection interface 1002 shown in (b) in Figure 10D.
  • the second interface may also be the screen projection interface 1103 shown in (b) in Figure 11D.
  • the electronic device receives a response to the second operation and displays the third interface of the second application.
  • the second application may be a gallery application.
  • the third interface may be the user interface 1302 shown in (a) of Figure 14 .
  • the large-screen device may continue to display the second interface as the screen projection interface 803 shown in (b) of Figure 14 .
  • the first application When the first interface of the first application supports drawing of the virtual screen and then projection and display on the large-screen device, the first application draws the first interface based on the virtual screen and then projection and display on the large-screen device.
  • the interface layout of the first screen projection content displayed on the large-screen device may be different from the interface layout of the first interface.
  • the display content of the first screen projection content displayed on the large-screen device may also be different from the display content of the first interface.
  • the electronic device can control the screen casting behavior of the application based on the screen casting permission priority of the application. Avoid screencasting confusion.
  • the electronic device 100 can display the multimedia content in the application with the highest priority for screen casting permission on the large screen device. No matter how the electronic device switches to display content in other applications, the screen casting permission priority will still be displayed on the large screen. The highest level of in-app multimedia content.
  • the electronic device is also used to obtain the second screen casting content when the screen casting permission of the second application is higher than the screen casting permission of the first application, and transfer the second screen casting content to the screen casting permission of the second application.
  • the data is sent to the large-screen device through the screen projection connection; the large-screen device is also used to display a fourth interface after receiving the second screen projection data, and the fourth interface includes the second screen projection content.
  • Large-screen devices are specifically used for: displaying the fourth interface in full screen.
  • the size of the projected content can be adapted to the screen size of the large-screen device, thereby improving the screen utilization of the large-screen device.
  • the electronic The device can draw the multimedia content in applications with high priority for casting permission on the virtual screen and then cast the content to a large-screen device.
  • the fourth interface may be the screen projection interface 1304 shown in (b) in Figure 13D.
  • the electronic device is also used to obtain the second screen casting content when the screen casting permission of the second application is higher than the screen casting permission of the first application, and transfer the second screen casting content to the screen casting permission of the second application.
  • the data is sent to the large-screen device through the screen projection connection; the large-screen device is also used to display the third interface after receiving the second screen projection data.
  • a large-screen device is specifically used to display a third interface in a non-full-screen manner.
  • the user interface does not support drawing on the virtual screen and then projection and display on a large-screen device.
  • the electronic device can only capture the projection content through screen recording and/or audio recording, and cannot make the size of the projection content match the large screen. to match the screen size of the device.
  • the electronic The device may obtain the second screen projection data by recording and/or recording the screen, so that the large-screen device displays the third interface.
  • the electronic device is also configured to receive a third operation after the large-screen device continues to display the second interface.
  • the third operation is used for the electronic device to stop displaying the first interface; the electronic device is also configured to In response to the third operation, display the fourth interface; the electronic device is also used to respond to the fourth operation, display the fifth interface of the second application; the electronic device is also used to send the third screen projection data to Large screen device; the large screen device is also used to display the fifth interface after receiving the third screen projection data;
  • the electronic device is also used to project the third screen content and send the third screen projection data to the large-screen device through the screen projection connection; the large-screen device is also used to display the sixth screen after receiving the third screen projection data.
  • the sixth interface includes the third screen projection content.
  • the fourth interface may be a user interface within the first application, or may be a user interface within other applications (such as a desktop application), such as the main interface of the electronic device.
  • the fifth interface may be the same as the third interface, or may be different from the third interface.
  • the electronic device can project the fourth interface to the screen based on the "mirror projection" method. Display on large screen devices.
  • the electronic device After the electronic device displays the fifth interface of the second application, if the fifth interface does not support drawing on the virtual screen and then casting the screen to display on the large-screen device, then the electronic device can display the fifth interface based on the "mirror screen projection" method.
  • the screen projection is displayed on the large-screen device, and the large-screen device displays the fifth interface.
  • the electronic device displays the fifth interface of the second application, if the fifth interface supports drawing on the virtual screen and then projection and display on the large-screen device, then the electronic device can draw the fifth interface on the virtual screen and then projection and display on the screen. On large screen devices.
  • the electronic device 100 can then switch the screen to display the multimedia content in the application with a lower priority of screen casting permission.
  • the electronic device is also used to: obtain device information of the large-screen device.
  • the device information of the large-screen device includes one or more of the following: screen size of the large-screen device, The color format of the screen of the device and the pixel density of the screen of the large-screen device; the electronic device is also used to obtain the first screen projection through the first application before sending the first screen projection content to the large screen device through the screen projection connection. Content; the electronic device generates the first screen projection data through the first application based on the first screen projection content and the device information of the large screen device. In this way, for content that supports being drawn on the virtual screen and then cast and displayed on a large-screen device, it can be drawn on the virtual screen and then cast and displayed on the large-screen device. This can make the size of the cast content consistent with that of the large-screen device. Adapt the screen size of the device to improve the screen utilization of large-screen devices.
  • the electronic device can send the first screen projection content to the large screen device, and the large screen device generates the content based on the first screen projection content and the device information of the large screen device.
  • the first screencast content and the first screencast data are displayed.
  • the electronic device sends the address of the first screen-casting content to the large-screen device, and the large-screen device can obtain the address based on the address of the first screen-casting content. Go to the first screencast content. Then, the first screen projection data is generated based on the first screen projection content and the device information of the large-screen device, and the first screen projection content is displayed.
  • the first screen projection content includes all or part of the display content in the first interface.
  • the first screen projection content may be the display content in the user interface 903 shown in FIG. 9D.
  • the first screen projection content may also be a partial area of the user interface 1102 selected by the user as shown in (a) in FIG. 11C.
  • the first interface includes multiple layers; the first screen projection content includes display content of one or more layers in the first interface.
  • the first screen projection content includes display content of a sub-interface of the first interface.
  • the first screen casting content may be the content displayed in the screen casting interface 902 shown in FIG. 9C.
  • the electronic device is further configured to obtain the screen casting permission of the first application based on the application type of the first application; the electronic device is further configured to obtain the screen casting permission of the second application based on the application type of the second application.
  • the application s screencasting permissions. In this way, the electronic device can obtain the screen casting permission priority of the application based on the type of the application, thereby controlling the screen casting behavior of the application.
  • the electronic device is also configured to send the third screen projection data to the large screen device through the screen projection connection when the first interface is displayed; the large screen device is also configured to receive the third screen projection data after receiving the third screen projection data. After casting the data, the first interface is displayed.
  • the large-screen device displays the first interface, which may be the interface of the Huawei video application shown in (b) in Figure 8B.
  • the large-screen device displays the first interface, which may also be the user interface 901 shown in (b) in Figure 9B.
  • Large screen device display may also be the user interface 901 shown in (b) in Figure 9B.
  • the first interface may also be the user interface 1102 shown in (b) in Figure 11C.
  • Figure 17 is a schematic flowchart of yet another screen projection method provided by an embodiment of the present application.
  • the electronic device establishes a screen projection connection with the large-screen device.
  • the electronic device may be the electronic device 100
  • the large-screen device may be the large screen 200 .
  • the electronic device displays the first interface of the first application.
  • the first application is a shopping application
  • the first interface is the main interface of the first application or the product list interface of the first application.
  • the first interface may be the user interface 901 shown in FIG. 9B.
  • the user interface 901 is the main interface of the shopping application.
  • the electronic device receives a first operation on the first interface, where the first operation is an operation of clicking a link of the first product.
  • the first operation may be an input operation for the basketball shoe product icon in the user interface 901 shown in FIG. 9B.
  • the first operation may also be a selection operation on the display area where the basketball shoe product icon is located as shown in (a) of FIG. 10A .
  • the first operation may also be an operation of long pressing the basketball shoe product image as shown in (a) in FIG. 10B .
  • the first product could be basketball shoes.
  • the electronic device is further configured to obtain the second screen projection content before receiving the first operation on the first interface, and send the second screen projection data to the computer through the screen projection connection.
  • Large screen device the large screen device is also used to display the first interface after receiving the second screen projection data.
  • a large-screen device is specifically used to display the first interface in a non-full-screen manner.
  • the large-screen device displays the first non-full-screen interface, which may be the non-full-screen display user interface 901 shown in (a) in Figure 9B.
  • the electronic device obtains the first screen projection content.
  • the electronic device sends the first screen projection data to the large-screen device.
  • the electronic device is also used to: obtain device information of the large-screen device.
  • the device information of the large-screen device includes one or more of the following: screen size of the large-screen device, The color format of the screen of the device and the pixel density of the screen of the large-screen device; the electronic device is also configured to obtain the first screen projection content through the first application before sending the first screen projection content to the large screen device through the screen projection connection.
  • the screen projection content; the electronic device generates the first screen projection data through the first application based on the first screen projection content and the device information of the large screen device.
  • the electronic device can send the first screen projection content to the large screen device.
  • the large screen device can send the first screen projection content to the large screen device based on the first screen projection content and the large screen device.
  • the device information generates the first screen projection data and displays the first screen projection content.
  • the electronic device sends the address of the first screen-casting content to the large-screen device, and the large-screen device can obtain the address based on the address of the first screen-casting content. Go to the first screencast content. Then, the first screen projection data is generated based on the first screen projection content and the device information of the large-screen device, and the first screen projection content is displayed.
  • the large-screen device After receiving the first screen projection data, the large-screen device displays a second interface.
  • the second interface includes the first screen projection content, and the second interface is a picture of the first product or a detail page of the first product.
  • the large-screen device is specifically used to: display the second interface in full screen.
  • the large-screen device displays the second interface in full screen, which may be the large-screen device displaying the projection interface 902 in full screen as shown in (b) in FIG. 9C or (b) in FIG. 9D .
  • the large-screen device displays the second interface in full screen, which may be the large-screen device displaying the projection interface 1001 in full screen as shown in (b) in FIG. 10C .
  • the large-screen device displays the second interface in full screen, which may be the large-screen device displaying the projection interface 1002 in full screen as shown in (b) in FIG. 10D .
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

Abstract

本申请提供了一种投屏方法及电子设备。一方面,在应用内的多媒体内容支持在虚拟屏上绘制后投屏显示在大屏设备上时,电子设备可以通过应用基于应用内的多媒体内容和大屏设备的设备信息,在虚拟屏上绘制得到投屏内容,并将投屏内容显示在大屏设备上。实现了应用基于大屏设备的设备信息绘制得到投屏内容,使得投屏内容的尺寸与大屏设备的大屏尺寸相适配。另一方面,电子设备允许高投屏权限的应用抢占低投屏权限的应用的投屏通道,不允许低投屏权限的应用抢占高投屏权限的投屏通道,实现了电子设备可以基于应用的投屏权限优先级对应用的投屏行为进行管控,避免投屏混乱的情况发生。

Description

一种投屏方法及电子设备
本申请要求于2022年07月26日提交中国专利局、申请号为202210887873.3、申请名称为“一种投屏方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及投屏技术领域,尤其涉及一种投屏方法及电子设备。
背景技术
无线投屏使得诸如手机、平板等的电子设备可将本地或网络上的多媒体内容投放到PC、智慧屏等具有音频、视频等播放能力的大屏上,在大屏上播放上述多媒体数据。典型的无线投屏包括镜像投屏(如miracast)、在线投屏(如数字生活网络联盟(digital living network alliance,DLNA))等。
在镜像投屏中,若用户在手机侧频繁切换多媒体内容,大屏上显示的内容也会频繁的切换,导致投屏混乱。但是在某些情况下,用户仅需在用户上切换显示多媒体内容,而无需大屏也切换投屏内容,这与用户的意图相悖。而在线投屏中,目前不同应用支持在线投屏的协议各不相同,没有统一的标准,通用性比较差。
发明内容
本申请提供了一种投屏方法及电子设备,实现了电子设备可以基于应用的投屏权限优先级对应用的投屏行为进行管控,避免投屏混乱的情况发生。
第一方面,本申请提供了一种投屏系统,系统包括电子设备和大屏设备,其中,电子设备,用于与大屏设备建立投屏连接;电子设备,还用于显示第一应用的第一界面;电子设备,还用于接收针对第一界面的第一操作,第一操作用于选择第一投屏内容;电子设备,还用于响应于第一操作,将第一投屏数据通过投屏连接发送至大屏设备;大屏设备,用于在接收到第一投屏数据后,显示第二界面,第二界面包括第一投屏内容;电子设备,还用于接收第二操作;电子设备,还用于响应于第二操作,显示第二应用的第三界面;大屏设备,还用于在第二应用的投屏权限低于或者等于第一应用的投屏权限的情况下,继续显示第二界面。
其中,第一界面可以是视频界面,也可以是图片界面,第二界面可以是视频界面,也可以是图片界面。
当第一应用的第一界面支持虚拟屏绘制后投屏显示在大屏设备上时,第一应用将第一界面基于虚拟屏绘制后投屏显示在大屏设备上。大屏设备上显示的第一投屏内容的界面布局可以与第一界面的界面布局不同。大屏设备上显示的第一投屏内容的显示内容也可以与第一界面的显示内容不同。
通过第一方面提供的一种投屏系统,实现了电子设备可以基于应用的投屏权限优先级对应用的投屏行为进行管控。避免投屏混乱的情况发生。例如,电子设备100可以将投屏权限优先级最高的应用内的多媒体内容投屏显示在大屏设备上,无论电子设备侧如何切换显示其他应用内的内容,大屏上还是显示投屏权限优先级最高的应用内的多媒体内容。
结合第一方面,在一种可能的实现方式中,电子设备,还用于在第二应用的投屏权限高于第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第四界面,第四界面包括第二投屏内容。
这样,在由高投屏权限优先级应用切换至低投屏权限优先级应用时,在第二应用的第三界面支持在虚拟屏上绘制后投屏显示在大屏设备的情况下,那么电子设备可以将高投屏权限优先级应用内的多媒体内容在虚拟屏上绘制后投屏显示在大屏设备上。
结合第一方面,在一种可能的实现方式中,电子设备,还用于在第二应用的投屏权限高于第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第三界面。
这样,在由高投屏权限优先级应用切换至低投屏权限优先级应用时,在第二应用的第三界面不支持在虚拟屏上绘制后投屏显示在大屏设备的情况下,电子设备可以采取录屏和/或录音的方式获取到第二投屏数 据,以使得大屏设备显示第三界面。
结合第一方面,在一种可能的实现方式中,电子设备,还用于在大屏设备继续显示第二界面之后,接收第三操作,第三操作用于电子设备停止显示第一界面;电子设备,还用于响应于第三操作,显示第四界面;电子设备,还用于响应于第四操作,显示第二应用的第五界面;电子设备,还用于将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第三投屏数据后,显示第五界面;
或者,电子设备,还用于到第三投屏内容,将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用在接收到第三投屏数据后,显示第六界面,第六界面包括第三投屏内容。
其中,第四界面可以是第一应用内的用户界面,也可以是其他应用(例如桌面应用)内的用户界面,例如电子设备的主界面。
第五界面可以与第三界面相同,也可以与第三界面不同。
这样,在电子设备停止显示第一界面后,且第四界面不支持虚拟屏上绘制后投屏显示在大屏设备下,那么电子设备可以基于“镜像投屏”的方式将第四界面投屏显示在大屏设备上。
在电子设备显示第二应用的第五界面后,若第五界面不支持在虚拟屏上绘制后投屏显示在大屏设备上,那么电子设备可以基于“镜像投屏”的方式将第五界面投屏显示在大屏设备上,大屏设备显示第五界面。
或者,
在电子设备显示第二应用的第五界面后,若第五界面支持在虚拟屏上绘制后投屏显示在大屏设备上,那么电子设备可以将第五界面在虚拟屏上绘制后投屏显示在大屏设备上。
这样,电子设备可以接收用户操作使得电子设备停止显示支持在虚拟屏上绘制的用户界面后,之后,电子设备100可以切换投屏显示投屏权限优先级较低的应用内的多媒体内容。
结合第一方面,在一种可能的实现方式中,大屏设备,具体用于:全屏显示第二界面。
结合第一方面,在一种可能的实现方式中,大屏设备,具体用于:全屏显示第四界面。这样,用户界面在虚拟屏上绘制后在投屏显示在大屏设备上,可以使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配,提高大屏设备的屏幕利用率。
结合第一方面,在一种可能的实现方式中,大屏设备,具体用于:非全屏显示第三界面。这样,用户界面不支持在虚拟屏上绘制后在投屏显示在大屏设备上,电子设备仅能通过录屏和/或录音的方式录取到投屏内容,无法使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配。
结合第一方面,在一种可能的实现方式中,电子设备,还用于:获取到大屏设备的设备信息,大屏设备的设备信息包括以下一项或多项:其中,大屏设备的屏幕尺寸、大屏设备的屏幕的色彩格式、大屏设备的屏幕的像素密度;电子设备,还用于在将第一投屏内容通过投屏连接发送至大屏设备之前,通过第一应用获取到第一投屏内容;电子设备,通过第一应用基于第一投屏内容和大屏设备的设备信息,生成第一投屏数据。这样,对于支持在虚拟屏上绘制后在投屏显示在大屏设备上的投屏内容,可以虚拟屏上绘制后在投屏显示在大屏设备上,可以使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配,提高大屏设备的屏幕利用率。
结合第一方面,在一种可能的实现方式中,第一投屏内容包括第一界面内的全部显示内容或者部分显示内容。
结合第一方面,在一种可能的实现方式中,第一界面包括多个图层;第一投屏内容包括第一界面中一个或多个图层的显示内容。
结合第一方面,在一种可能的实现方式中,第一投屏内容包括第一界面的子界面的显示内容。
结合第一方面,在一种可能的实现方式中,电子设备,还用于基于第一应用的应用类型,获取到第一应用的投屏权限;电子设备,还用于基于第二应用的应用类型,获取到第二应用的投屏权限。这样,电子设备可以基于应用的类型获取到应用的投屏权限优先级,从而对应用的投屏行为进行管控。
结合第一方面,在一种可能的实现方式中,电子设备,还用于在显示第一界面时,将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第三投屏数据后,显示第一界面。
第二方面,本申请提供了一种投屏方法,方法包括:电子设备与大屏设备建立投屏连接;
电子设备显示第一界面;电子设备接收针对第一界面的第一操作,第一操作用于选择第一投屏内容;响应于第一操作,电子设备将第一投屏数据通过投屏连接发送至大屏设备,第一投屏数据用于大屏设备显示第二界面,第二界面包括第一投屏内容;电子设备接收第二操作;响应于第二操作,电子设备显示第二应用的第三界面;在第二应用的投屏权限低于或者等于第一应用的投屏权限的情况下,电子设备指示大屏设备继续显示第二界面。
结合第二方面,在一种可能的实现方式中,方法还包括:在第二应用的投屏权限高于第一应用的投屏权限的情况下,电子设备获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备,第二投屏数据用于大屏设备显示第四界面,第四界面包括第二投屏内容。
结合第二方面,在一种可能的实现方式中,方法还包括:在第二应用的投屏权限高于第一应用的投屏权限的情况下,电子设备获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备,第二投屏数据用于大屏设备显示第三界面。
结合第二方面,在一种可能的实现方式中,电子设备指示大屏设备继续显示第二界面之后,方法还包括:电子设备接收第三操作,第三操作用于电子设备停止显示第一界面;响应于第三操作,电子设备显示第四界面;电子设备接收第四操作;响应于第四操作,电子设备显示第二应用的第五界面;述电子设备将第三投屏数据通过投屏连接发送至大屏设备,第三投屏数据用于大屏设备显示第五界面;或者,述电子设备获取到第三投屏内容,将第三投屏数据通过投屏连接发送至大屏设备,第三投屏数据用于大屏设备显示第六界面,第六界面包括第三投屏内容。
结合第二方面,在一种可能的实现方式中,第一投屏数据用于大屏设备全屏显示第二界面。
结合第二方面,在一种可能的实现方式中,第二投屏数据用于大屏设备全屏显示第四界面。
结合第二方面,在一种可能的实现方式中,第二投屏数据用于大屏设备非全屏显示第三界面。
结合第二方面,在一种可能的实现方式中,在电子设备与大屏设备建立投屏连接之后,方法还包括:电子设备获取到大屏设备的设备信息,大屏设备的设备信息包括以下一项或多项:其中,大屏设备的屏幕尺寸、大屏设备的屏幕的色彩格式、大屏设备的屏幕的像素密度;在电子设备将第一投屏数据通过投屏连接发送至大屏设备之前,方法还包括:电子设备通过第一应用获取到第一投屏内容;电子设备通过第一应用基于第一投屏内容和大屏设备的设备信息,生成第一投屏数据。
结合第二方面,在一种可能的实现方式中,第一投屏内容包括第一界面内的全部显示内容或者部分显示内容。
结合第二方面,在一种可能的实现方式中,第一界面包括多个图层;第一投屏内容包括第一界面中一个或多个图层的显示内容。
结合第二方面,在一种可能的实现方式中,第一投屏内容包括第一界面的子界面的显示内容。
结合第二方面,在一种可能的实现方式中,方法还包括:第一电子设备基于第一应用的应用类型,获取到第一应用的投屏权限;第一电子设备基于第二应用的应用类型,获取到第二应用的投屏权限。
结合第二方面,在一种可能的实现方式中,在电子设备显示第一界面时,方法还包括:电子设备将第三投屏数据通过投屏连接发送至大屏设备,第三投屏数据用于大屏设备显示第一界面。
第三方面,本申请提供了一种投屏方法,方法包括:大屏设备与电子设备建立投屏连接,其中电子设备显示有第一应用的第一界面;大屏设备在电子设备接收针对第一界面的第一操作后,通过投屏连接接收电子设备发送的第一投屏数据,第一操作用于选择第一投屏内容;大屏设备在接收到第一投屏数据后,显示第二界面,第二界面包括第一投屏内容;在电子设备显示第二应用的第三界面后,在第二应用的投屏权限低于或者等于第一应用的投屏权限的情况下,大屏设备继续显示第二界面。
结合第三方面,在一种可能的实现方式中,方法包括:在第二应用的投屏权限高于第一应用的投屏权限的情况下,大屏设备通过投屏连接接收电子设备发送的第二投屏数据;大屏设备在接收到第二投屏数据后,显示第四界面,第四界面包括第二投屏内容。
结合第三方面,在一种可能的实现方式中,方法包括:在第二应用的投屏权限高于第一应用的投屏权限的情况下,大屏设备通过投屏连接接收电子设备发送的第二投屏数据;大屏设备在接收到第二投屏数据后,显示第三界面。
结合第三方面,在一种可能的实现方式中,在大屏设备继续显示第二界面之后,方法还包括:大屏设备在电子设备停止显示第一界面,显示第二应用的第五界面之后,接收电子设备发送的第三投屏数据;大 屏设备在接收到第三投屏数据后,显示第五界面;或者,大屏设备在接收到第三投屏数据后,显示第六界面,第六界面包括第三投屏内容。
结合第三方面,在一种可能的实现方式中,大屏设备显示第二界面,具体包括:大屏设备全屏显示第二界面。
结合第三方面,在一种可能的实现方式中,大屏设备显示第四界面,具体包括:大屏设备全屏显示第四界面。
结合第三方面,在一种可能的实现方式中,大屏设备显示第三界面,具体包括大屏设备非全屏显示第三界面。
结合第三方面,在一种可能的实现方式中,第一投屏内容包括第一界面内的全部显示内容或者部分显示内容。
结合第三方面,在一种可能的实现方式中,第一界面包括多个图层;第一投屏内容包括第一界面中一个或多个图层的显示内容。
结合第三方面,在一种可能的实现方式中,第一投屏内容包括第一界面的子界面的显示内容。
结合第三方面,在一种可能的实现方式中,在大屏设备与电子设备建立投屏连接之后,在大屏设备通过投屏连接接收电子设备发送的第一投屏数据之前,方法还包括:大屏设备通过投屏连接接收电子设备发送的第三投屏数据;大屏设备在接收到第三投屏数据后,显示第一界面。
第四方面,本申请提供了一种投屏系统,系统包括电子设备和大屏设备,其中,
电子设备,用于与大屏设备建立投屏连接;电子设备,还用于显示第一应用的第一界面,第一应用为购物类应用,第一界面为第一应用的主界面或者第一应用的商品列表界面;电子设备,还用于接收针对所述第一界面的第一操作,第一操作为点击第一商品的链接的操作;电子设备,还用于响应于第一操作,获取到第一投屏内容,并将第一投屏数据通过投屏连接发送至大屏设备;大屏设备,用于在接收到第一投屏数据后,显示第二界面,第二界面包括第一投屏内容;其中,第二界面为第一商品的图片或者第一商品的详情页。
结合第四方面,在一种可能的实现方式中,大屏设备,具体用于:全屏显示第二界面。
结合第四方面,在一种可能的实现方式中,电子设备,还用于:获取到大屏设备的设备信息,大屏设备的设备信息包括以下一项或多项:其中,大屏设备的屏幕尺寸、大屏设备的屏幕的色彩格式、大屏设备的屏幕的像素密度;电子设备,还用于在将所述第一投屏内容通过投屏连接发送至大屏设备之前,通过第一应用获取到第一投屏内容;电子设备,通过第一应用基于第一投屏内容和大屏设备的设备信息,生成第一投屏数据。
结合第四方面,在一种可能的实现方式中,电子设备,还用于在接收针对所述第一界面的第一操作之前,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第一界面。
在其他可能的实现方式中,电子设备在通过第一应用获取到第一投屏内容后,可以将第一投屏内容发送至大屏设备,大屏设备基于第一投屏内容和大屏设备的设备信息生成第一投屏数据,并显示第一投屏内容。
可选的,电子设备在通过第一应用获取到第一投屏内容的地址,电子设备将第一投屏内容的地址发送至大屏设备,大屏设备可以基于第一投屏内容的地址获取到第一投屏内容。再基于第一投屏内容和大屏设备的设备信息生成第一投屏数据,并显示第一投屏内容。
第五方面,本申请提供了一种电子设备,电子设备包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得电子设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
第六方面,本申请提供了一种大屏设备,大屏设备包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得大屏设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
第七方面,本申请提供了一种计算机可读存储介质,用于存储计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
第八方面,本申请提供了一种计算机可读存储介质,用于存储计算机指令,当所述计算机指令在大屏设备上运行时,使得所述大屏设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
第九方面,本申请提供了一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
第十方面,本申请提供了一种计算机程序产品,当所述计算机程序产品在大屏设备上运行时,使得大屏设备执行上述任一方面任一可能的实现方式中提供的一种投屏方法。
对于第二方面至第十方面有益效果的描述,可以参考第一方面中有益效果的描述,本申请实施例在此不再赘述。
附图说明
图1A为本申请实施例提供的一种电子设备和大屏基于镜像投屏共享网络视频的场景;
图1B为本申请实施例提供的一种投屏内容的尺寸与大屏的尺寸不适配的示意图;
图1C为本申请实施例提供的一种示例性示出了电子设备和大屏基于在线投屏共享网络视频的场景;
图2为本申请实施例提供的一种系统架构图;
图3为本申请实施例提供的一种电子设备100的结构示意图;
图4为本申请实施例提供的一种电子设备100的软件结构框图;
图5为本申请实施例提供的一种大屏200的硬件结构示意图;
图6A-图6E示例性示出了电子设备100与大屏200建立投屏连接的示意图;
图7A-图7H示例性示出了电子设备100接收用户操作改变应用的投屏权限等级的示意图;
图8A-图8D示例性示出了电子设备100将华为视频应用中的视频投屏显示在大屏200上的示意图;
图9A-图9D示例性示出了电子设备100在大屏200上显示界面一的子界面的示意图;
图10A-图10D示例性示出了电子设备100在大屏200上显示界面一的子界面的示意图;
图11A-图11D示例性示出了电子设备100在大屏200上显示界面一的部分区域的示意图;
图12为本申请实施例提供的一种UI图;
图13A-图13D示例性示出了大屏200切换显示投屏内容的示意图;
图14为本申请实施例提供的另一种UI图;
图15示例性示出了本申请实施例提供的一种投屏方法的方法流程示意图;
图16示例性示出了本申请实施例提供的另一种投屏方法的方法流程示意图;
图17示例性示出了本申请实施例提供的又一种投屏方法的方法流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
电子设备可以通过无线投屏,将电子设备显示的内容(比如播放的多媒体内容)在大屏上显示(比如继续播放多媒体内容),之后电子设备可以继续显示该内容,也可以不再显示该内容。无线投屏也可以采用其他词语替换,比如多屏互动等;本申请实施例不作限制。其中,电子设备也可以被称为输出端或源端(source端),大屏也可以被称为输入端或接收端(sink端)。
无线投屏之后,电子设备显示或播放的多媒体内容可包括以下任意一项或多项:视频、文字、图片、照片、音频或表格等。例如,多媒体内容可以是电影、电视剧、短视频、音乐剧等。
多媒体内容可以是网络多媒体内容,也可以是本地多媒体内容,还可以是网络多媒体内容和本地多媒体内容的组合。其中,网络多媒体内容是指电子设备从网络中获取到的多媒体内容。例如电子设备运行视频应用时从提供音视频服务的服务器处获取到的视频。本地多媒体内容是电子设备本地存储或生成的多媒体内容。例如,电子设备本地存储的图片或表格等。
介绍两种无线投屏方式:镜像投屏(mirroring technology)和在线投屏。
1、镜像投屏:电子设备(如智能手机、平板电脑等)与大屏(如智能电视、智能屏等)建立通信连接,该电子设备从网络侧或本地侧获取多媒体内容,然后将所述多媒体内容经过编码后,以点对点传输等无线传输的方式传输给大屏;大屏经过解码后进行输出(如显示、播放等)。
其中,所述多媒体内容可以是网络多媒体内容、本地多媒体内容或两者的组合。所述电子设备和大屏之间的点对点传输方式可包括但不限于:无线保真直连(wireless fidelity direct,Wi-Fi direct)(又称为无线保真点对点(wireless fidelity peer-to-peer,Wi-Fi P2P))通信连接、蓝牙通信连接、近场通信(near field communication,NFC)连接等。
镜像投屏可包括Wi-Fi联盟制定的miracast、各公司制定的私有镜像投屏解决方案例如华为公司的cast+、苹果公司的AirPlay等。其中,miracast建立在无线保真Wi-Fi联盟所发展的基础技术标准以及实时流传输协议(real time streaming protocol,RTSP)之上。Wi-Fi基础技术标准可包括无线传输技术802.11n、802.11ac、Wi-Fi direct/Wi-Fi P2P、通道直接链路建立(tunneled direct link setup,TDLS)、管理安全的WPA2(Wi-Fiprotected access 2)加密、提供服务质量及流量管理的WMM(Wi-Fimultimedia)技术等。
下面结合图1A,对镜像投屏进一步阐述说明。图1A示例性示出了电子设备和大屏基于镜像投屏共享网络视频的场景。如图1A所示,电子设备和大屏建立通信连接(如Wi-FiP2P连接)。同时,电子设备接入路由设备,并通过路由设备,从服务器处获取到流媒体。其中,电子设备接入路由设备,具体可为电子设备接入路由设备提供的接入点(access point,AP)。之后,电子设备在本身播放流媒体的过程中通过录屏、录音等方式获取到录屏内容以及录音内容,然后实时地将所述录屏内容和所述录音内容,分别经编码后,通过诸如Wi-Fi P2P连接发送给大屏;大屏接收到后,实时播放、显示。
镜像投屏存在以下问题:问题1、在电子设备与大屏建立镜像投屏连接后,当用户在手机侧频繁切换多媒体内容时,大屏上显示的投屏内容也会频繁的切换。但是在某些情况下,用户仅需在电子设备上切换显示多媒体内容,而无需大屏也切换投屏内容,这与用户的意图相悖。
问题2、如图1B所示,当电子设备竖屏显示图库应用中的图片201时,图片201在电子设备上的显示尺寸长为a,宽为b。电子设备将该图片投屏至大屏,大屏上显示图片202,图片202在电子设备上的显示尺寸长为c,宽为d。其中,a:c=b:d。也即电子设备将图片201的长和宽等比例放大或者缩小后显示在大屏上,在没有显示图片的区域显示黑色区域,导致大屏的屏幕利用率不足。
2、在线投屏:电子设备和大屏均接入互联网或局域网,电子设备仅将欲投屏的多媒体资源对应的网络地址,比如统一资源定位符(uniform resource locator,URL),发送给大屏;大屏根据该网络地址,从互联网侧或局域网侧获取对应的多媒体内容,从而进行输出(如播放、显示)。
其中,多媒体内容可以是网络多媒体内容、本地多媒体内容或两者的组合。这里,电子设备和大屏接入同一个无线Wi-Fi接入点AP组建的局域网,电子设备和大屏连接不同的网络,比如接入不同的AP组建的不同的局域网,该不同的局域网通过互联网互联。
在线投屏可包括DLNA,以及各公司制定的私有在线投屏解决方案。比如,谷歌公司的Google cast、苹果公司的AirPlay等。其中,DLNA建立在通用即插即用(universal plug and play,UPnP)协议之上。
下面结合图1C,对在线投屏进一步阐述说明。图1C示例性示出了电子设备和大屏基于在线投屏共享网络视频的场景。如图1C所示,电子设备和大屏共同接入由Wi-Fi AP组建的局域网中,电子设备将播放的网络视频的网址通过AP发送给大屏,然后大屏根据该网址获取多媒体内容。该网址为提供网络音视频 服务的服务器的地址。
在线投屏存在以下问题:问题1、目前不同应用支持在线投屏的协议各不相同,没有统一的标准,通用性比较差。
基于上述分析,本申请实施例提供了一种投屏方法。方法包括以下步骤:
步骤一:电子设备100与大屏200建立投屏连接。
步骤二:电子设备100获取到大屏200的设备信息。
其中,大屏200的设备信息包括但不仅限于:大屏200的地址、大屏200的名称、大屏200的屏幕尺寸、大屏200上屏幕的色彩格式、大屏200上屏幕的像素密度等。
电子设备100基于大屏200的设备信息得到第一虚拟显示屏。
步骤三:电子设备100显示应用一的第一多媒体内容。在第一多媒体内容支持重新绘制的情况下,应用一基于大屏200的设备信息和第一多媒体内容绘制投屏内容。其中,投屏内容的尺寸与所述大屏200的屏幕尺寸相同。
步骤四:电子设备100将投屏内容发送至大屏200,大屏200全屏显示投屏内容。
在第一多媒体内容不支持重新绘制的情况下,电子设备100可以基于通过录屏和/或录音的方式获取到投屏内容,并将投屏内容发送至大屏200,大屏200显示第一多媒体内容。在电子设备100的屏幕尺寸与大屏200的屏幕尺寸不同的情况下,大屏200以非全屏的方式显示第一多媒体内容。
通过本申请提供的一种投屏方法,一方面,实现了大屏200可以全屏显示应用内的部分界面,即大屏200的屏幕利用率为100%,解决了大屏200的屏幕利用率不足的问题。
另一方面,应用一绘制的投屏内容,可以与电子设备100显示应用一的多媒体内容相同或者不同。在应用一绘制的投屏内容与电子设备100显示应用一的多媒体内容不同的情况下,实现了不同应用可以个性化的绘制投屏内容。
需要说明的是,基于不同的业务场景,应用可以设置应用内某些用户界面以镜像投屏的方式投屏显示在大屏200上,应用也可以设置应用内某些用户界面基于大屏200的设备信息重新绘制后投屏显示在大屏200上。不同的应用可以自定义,本申请实施例对此不做限定。例如在图库应用中,在显示图库应用中某一张图片的时候或者显示图库应用中某一个视频的时候,图库应用才会基于大屏200的设备信息将图片界面或者视频界面重新绘制后投屏显示在大屏200上。例如在视频应用中,在显示视频应用中某一个视频的时候,视频应用才会基于大屏200的设备信息将视频界面重新绘制后投屏显示在大屏200上。例如在购物应用中,在显示购物应用中某一个商品的详情页的时候,购物应用才会基于大屏200的设备信息将商品的详情页重新绘制后投屏显示在大屏200上。对于应用内的其他界面,电子设备100可以以镜像投屏的方式显示在大屏200上。
可选的,在一些实施例中,应用内的用户界面也可以全部支持重新绘制后投屏显示在大屏200上。本申请实施例对此不做限定。
图2示例性示出了本申请实施例提供的一种系统架构图。
如图2所示,该系统包括电子设备100和大屏200。
电子设备100与大屏200建立投屏连接,即电子设备100可以将投屏内容投屏显示在大屏200上。
不仅限于电子设备100与大屏200建立投屏连接,在其他实施例中,电子设备100可以同时与多个(两个及两个以上)设备建立投屏连接。例如,电子设备100同时与大屏200和大屏300建立投屏连接,电子设备100可以将同一个投屏内容分别投屏显示在大屏200和大屏300上。可选的,电子设备100也可以将不同的投屏内容分别投屏显示在大屏200和大屏300上。本申请实施例对此不做限定。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。电子设备100的软件系统包括但不限于 Linux或者其它操作系统。为华为的鸿蒙系统。
大屏200可以是平板电脑、台式计算机、便携式电子设备(如膝上型计算机,Laptop)、智能电视(如 智慧屏)、车载电脑、智能音箱、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、带有显示屏的电子广告牌、单独使用(比如,投影在墙壁上)或与显示装置(比如幕布)组合使用的投影仪、其他带有显示屏的智能设备、以及其他带有扬声器的智能设备等。大屏200的示例性实施例包括但不限于搭载Linux或者其它操作系统的设备。在一些实施例中,大屏200可以为配置有电视盒子的电视机,电视盒子用于接收来自电子设备100的多媒体内容并提供投屏功能,电视机仅提供显示功能。本申请以下实施例以大屏200为电视机为例进行说明。
在电子设备100与大屏200建立投屏连接后,电子设备100会获取到大屏200的设备信息,大屏200的设备信息包括但不仅限于:大屏200的地址、大屏200的名称、大屏200的屏幕尺寸、大屏200上屏幕的色彩格式、大屏200上屏幕的像素密度等。
电子设备100接收用户的操作显示应用一中的多媒体内容,在大屏200没有显示投屏内容的情况下,且当前显示的应用一中的多媒体内容支持重新绘制后投屏显示在大屏200上,那么应用一会基于的应用一中的多媒体内容和大屏200的设备信息,重新绘制投屏内容,得到第一投屏内容。电子设备100基于投屏连接将第一投屏内容发送至大屏200,使得大屏200全屏显示第一投屏内容。
若当前显示的应用一中的多媒体内容不支持重新绘制后投屏显示在大屏200上,那么电子设备100将采用录屏和/或录音的方式获取到投屏内容,电子设备100将投屏内容发送至大屏200,使得大屏200以非全屏的方式显示应用一中的多媒体内容。
之后,电子设备100接收用户的操作显示应用二中的多媒体内容,在应用一的投屏优先级高于或者等于应用二的投屏优先级的情况下,大屏200还是显示第一投屏内容。
在应用一的投屏优先级低于应用二的投屏优先级的情况下,应用二会基于应用二中的多媒体内容和大屏200的设备信息,重新绘制投屏内容,得到第二投屏内容。电子设备100基于投屏连接将第二投屏内容发送至大屏200,使得大屏200显示第二投屏内容。
这样,一方面,实现了大屏200可以全屏显示投屏内容,即大屏200的屏幕利用率为100%,解决了大屏200的屏幕利用率不足的问题。另一方面,不同的应用各自绘制投屏内容,可以与电子设备100显示的应用内的多媒体内容相同或者不同。在应用绘制的投屏内容与电子设备100显示应用的多媒体内容不同的情况下,实现了不同应用可以个性化的绘制投屏内容。
本申请以下实施例以电子设备100为手机为例进行说明。
图3示出了电子设备100的结构示意图。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器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)接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块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转为电磁波辐射出去。
在一些实施例中,电子设备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)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为高于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为高于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度低于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度高于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触 摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图4是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层(kernel)。本申请实施例对电子设备的软件结构的分层不做限制。
应理解,图4所示的各分层中包括的模块为本申请实施例中涉及到的模块,如下各分层中包括的模块并不构成对电子设备的结构和模块部署的层级(示例说明)的限定。示例性的,如绘制模块可以部署在应用程序层,也可以部署在应用程序框架层。在一种实施例中,图4中所示的模块可以单独部署,或者几个模块可以部署在一起,图4中对模块的划分为一种示例。在一种实施例中,图4中所示的模块的名称为示例说明。
应用程序层可以包括一系列应用程序包。例如相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层可以为应用程序层的应用提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。参照图4,应用程序框架层可以包括:系统服务模块、虚拟屏、窗口管理服务(window manager service,WMS)、绘制模块、渲染模块,以及图层合成(Surface Flinger,SF)。
其中,系统服务模块可以通知各应用程序是否有投屏权限,并对应用程序的投屏行为进行管控等。
虚拟屏,虚拟屏的设备信息与电子设备100建立投屏连接的设备(例如大屏200)的设备信息相同,应用可以在虚拟屏上绘制投屏内容。例如虚拟屏的尺寸与电子设备100建立投屏连接的设备(例如大屏200)的尺寸相同。
WMS,用于管理用户界面。绘制模块,用于应用绘制被投屏设备上显示投屏界面上的各元素。渲染模块,用于对绘制模块绘制好的元素进行渲染处理。SF,用于对渲染后的各元素进行图层合成,以得到被投屏设备上待显示的投屏界面。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
图5示出了本申请实施例提供的大屏200的硬件结构。
如图5所示,大屏200可包括:视频编解码器221、处理器222、存储器223、无线通信处理模块224、电源开关225、有线LAN通信处理模块226、高清晰度多媒体接口(high definition multimedia interface,HDMI)通信处理模块227、USB通信处理模块228、显示屏229、音频模块230。各个模块可通过总线连接。其中:
处理器222可用于读取和执行计算机可读指令。具体实现中,处理器222可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器222的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等。
无线通信处理模块224可以包括WLAN通信处理模块224A,还可包括蓝牙(BT)通信处理模块224B、NFC处理模块224C、蜂窝移动通信处理模块(未示出)等。
在一些实施例中,无线通信处理模块224可用于与电子设备100建立通信连接,并基于该通信连接接收到电子设备100发送的经过编码的数据。例如,WLAN通信处理模块224A可用于与电子设备100建立Wi-Fi直连通信连接,蓝牙(BT)通信处理模块224B可用于与电子设备100建立蓝牙通信连接,NFC处理模块224C可用于与电子设备100建立NFC连接等。即,无线通信处理模块224可支持电子设备100与电子设备100之间通过投屏连接来共享多媒体内容。
在一种实施方式中,无线通信处理模块224可以监听到电子设备100发射的信号如探测请求、扫描信号,发现电子设备100,并与电子设备100建立通信连接。在另一种实施方式中,无线通信处理模块224也可以发射信号,如探测请求、扫描信号,使得大屏200可以发现电子设备100,并与电子设备100建立通信连接(如Wi-FiP2P连接)。
视频编解码器221用于对数字视频压缩或解压缩。在本申请实施例中,视频编解码器221可以对来自电子设备100的或者服务器的多媒体内容进行解压缩。大屏200可以支持一种或多种视频编解码器,可以播放一种或多种编码格式的视频。例如:MPEG1,MPEG2,MPEG3,MPEG4等。
处理器222可以用于解析无线通信处理模块224接收到的信号,如大屏200的广播的探测请求等。处理器222可以用于根据解析结果进行相应的处理操作,如生成探测响应,等。处理器222可用于根据视频编解码器221的解压缩结果来驱动显示屏229执行显示。
存储器223与处理器222耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器223可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器223可以存储操作系统,例如uCOS、VxWorks、RTLinux、Harmony、Android等嵌入式操作系统。存储器223还可以存储通信程序,该通信程序可用于与大屏200,一个或多个服务器,或附加设备进行通信。
电源开关225可用于控制电源向大屏200的供电。
有线LAN通信处理模块226可用于通过有线LAN和同一个LAN中的其他设备进行通信,还可用于通过有线LAN连接到WAN,可与WAN中的设备通信。
HDMI通信处理模块227可用于通过HDMI接口(未示出)与其他设备进行通信。
USB通信处理模块228可用于通过USB接口(未示出)与其他设备进行通信。
显示屏229可用于显示图像,视频等。显示屏229可以采用LCD、OLED、AMOLED、FLED、QLED等显示屏。显示屏229所显示的内容可参考后续方法实施例的相关描述。
音频模块230可用于通过音频输出接口输出音频信号,这样可使得大屏200支持音频播放。音频模块230还可用于通过音频输入接口接收音频数据。音频模块230可包括但不限于:麦克风、扬声器、受话器等。
在一些实施例中,大屏200还可以包括RS-232接口等串行接口。该串行接口可连接至其他设备,如音箱等音频外放设备,使得显示器和音频外放设备协作播放音视频。
可以理解的是图5示意的结构并不构成对大屏200的具体限定。在本申请另一些实施例中,大屏200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
首先介绍电子设备100与大屏200之间建立投屏连接的方式。
电子设备100接收用户的操作在设置应用中开启投屏连接功能,并选择建立投屏连接的设备。
图6A-图6E示例性示出了电子设备100与大屏200建立投屏连接的示意图。
图6A示出了电子设备100显示设置应用的主界面的示意图。设置应用的主界面包括多个设置选项,例如飞行模式设置选项、Wi-Fi设置选项、蓝牙设置选项、个人热点设置选项、移动网络设置选项、勿扰模式设置选项、显示与亮度设置选项、华为账号设置选项、更多连接设置选项等等。
如图6A所示,电子设备100接收用户针对更多连接设置选项的输入操作(例如单击),响应于用户的输入操作,电子设备100显示如图6B所示的用户界面610。用户界面610示出了多个连接选项,例如华为分享选项、NFC选项、手机投屏选项、打印选项、VPN选项、加密DNS选项等等。其中,手机投屏功能关闭。
如图6B所示,电子设备100接收用户针对手机投屏选项的输入操作(例如单击),响应于用户的输入操作,电子设备100显示如图6C所示的用户界面620。用户界面620示出了开启/关闭手机投屏功能的选项6201和设置应用投屏权限管理的选项6202。其中,手机投屏功能关闭。
如图6C所示,电子设备100接收用户针对开启/关闭手机投屏功能的选项6201的输入操作(例如单击),响应于用户的输入操作,电子设备100显示如图6D所示的用户界面630。如图6D所示,开启/关闭手机投屏功能的选项6201的显示形态由关闭状态切换为开启状态。
在电子设备100上的手机投屏功能开启后,电子设备100将扫描周围同样开启投屏功能的其他设备。如图6D所示,电子设备100扫描到附近其他开启投屏功能的设备包括大屏200、大屏300和大屏400。
如图6D所示,电子设备100接收用户针对大屏200的选项的输入操作(例如单击),响应于用户的输入操作,电子设备100将与大屏200建立投屏连接。
在电子设备100将与大屏200建立投屏连接成功之后,电子设备100将显示如图6E所示的提示信息6203,提示信息6203用于提示电子设备100已与大屏200建立投屏连接成功。
可选的,在一些实施例中,在电子设备100与大屏200建立投屏连接之后,电子设备100还可以基于上述图6A-图6E所示的方式与其他设备(例如大屏300)建立投屏连接,实现电子设备100与多个不同的设备同时建立投屏连接。
需要说明的是,图6A-图6E仅是示例性说明电子设备100与大屏200建立投屏连接的方式,在其他实施例中,电子设备100还可以通过其他的方式与大屏200建立投屏连接,本申请实施例对此不做限定。
本申请实施例提供的一种投屏方法,在电子设备100与大屏200建立投屏连接之后,电子设备100接收用户的操作显示应用一的多媒体内容,电子设备100可以将应用一内的多媒体内容投屏显示在大屏上。若电子设备100接收用户的操作显示应用二的多媒体内容,在应用二的投屏权限高于应用一的投屏权限的情况下,电子设备100可以将应用二内的多媒体内容投屏显示在大屏上。在应用二的投屏权限低于或者等于应用一的投屏权限的情况下,电子设备100还是将应用一内的多媒体内容投屏显示在大屏上,不会切换显示投屏的多媒体内容。这样,可以避免电子设备100上频繁切换不同应用内的多媒体内容,而导致投屏内容也频繁切换,导致投屏混乱的情况发生。
因此,电子设备100可以仅电子设备100上安装的应用划分为不同等级的投屏权限,高等级投屏权限的应用可以抢占高低等级投屏权限的应用的投屏通道。低等级投屏权限的应用不可以抢占高等级投屏权限的应用的投屏通道。同等级投屏权限的应用也不可以抢占同等级投屏权限的应用的投屏通道。实现了电子设备100可以对应用的投屏行为进行管控。
示例性的,电子设备100可以将电子设备100上的应用的投屏全乡划分为三个等级,即第一等级投屏权限、第二等级投屏权限和第三等级投屏权限。其中,第一等级投屏权限高于第二等级投屏权限,第二等级投屏权限高于第三等级投屏权限。不仅限于三个等级,电子设备100还可以将电子设备100上更多的应用划分为更多或者更少的投屏权限等级,本申请实施例对此不做限定。
其中,第一等级投屏权限的应用可以包括但不仅限于:系统应用,系统应用包括但不仅限于:例如桌面应用。例如桌面应用可以华为生产力桌面、华为电脑模式等等。
第二等级投屏权限的应用可以包括但不仅限于:视频类应用、即时通信类应用、音乐类应用、上帝视角游戏类应用等等。其中,上帝视角游戏类应用可以理解为观战模式或者第三视角游戏类应用。
第三等级投屏权限的应用可以包括但不仅限于:图库应用、办公类应用、第一视角游戏类应用等等。
可选的,在第一等级投屏权限的应用和第二等级投屏权限的应用中,当电子设备100退出显示第一等级投屏权限应用或这第二等级投屏权限应用内的多媒体内容时,大屏200上依然可以显示第一等级投屏权限的应用或这第二等级投屏权限的应用内的投屏内容。
可选的,在第三等级投屏权限的应用中,当电子设备100退出显示第三等级投屏权限应用内的多媒体内容时,大屏200上也随着电子设备100停止显示而停止显示。
可选的,当电子设备100上有新下载的应用时,电子设备100可以基于新下载的应用类型,设置新下载的应用的投屏权限等级。
可选的,在预设的投屏权限的应用类型中不包括新下载的应用类型时,电子设备100可以将该新下载的应用的投屏权限等级设置为最低等级。或者,电子设备100可以将该新下载的应用设置为不支持投屏。本申请实施例对于具体实现不做限定。
需要说明的是,上述每个等级投屏权限中包括的应用类型,在实际应用中可以根据开发者的需求而改变,可以与上述实施例列举的不同,本申请实施例仅是示例性说明,并不构成限定。
在一些实施例中,在电子设备100将电子设备100上的应用划分为不同的投屏权限等级红颜,电子设备100也可以接收用户的操改变应用的投屏权限等级,实现个性化定制,提高用户的体验。
图7A-图7H示例性示出了电子设备100接收用户操作改变应用的投屏权限等级的示意图。
如图7A所示,电子设备100接收用户针对用户界面620中针对设置应用投屏权限管理的选项6202的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图7B所示的用户界面710。
用户界面710中示出了不同投屏权限等级选项。例如第一级投屏权限选项、第二级投屏权限选项7101和第三级投屏权限选项。其中,电子设备100可以接收用户针对投屏权限等级选项的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示对应投屏权限等级下划分的一个或多个应用。
如图7B所示,电子设备100接收用户针对第二级投屏权限选项7101的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图7C所示的第二级投屏权限下的应用的图标和名称。例如,第二级投屏权限下的应用包括华为视频应用、即时通信应用和音乐应用等等。
可选的,电子设备100可以接收用户的操作将应用从每一个等级投屏权限下删除。例如电子设备100可以接收用户针对如图7C所示的删除控件的输入操作(例如单击),响应于用户的输入操作,电子设备100可以将对应的应用从第二级投屏权限下移除。例如,电子设备100收用户针对如图7D所示的删除控件7102的输入操作(例如单击),响应于用户的输入操作,电子设备100可以将华为视频从第二级投屏权限下移除。在电子设备100将华为视频从第二级投屏权限下移除后,电子设备100可以显示如图7E所示的用户界面720。用户界面720与用户界面710的不同之处在于,用户界面720中,第二级投屏权限下,不包括华为视屏应用。
可选的,在电子设备100将华为视频从第二级投屏权限下移除后,电子设备100可以将华为视频划分至最低等级投屏权限(即第三级投屏权限)。可选的,在电子设备100将华为视频从第二级投屏权限下移除后,电子设备100也可以将华为视频不划分到任何一个等级投屏权限下,默认华为视频不支持投屏功能。
可选的,电子设备100可以接收用户的操作将其他的应用添加在每一个等级投屏权限下。例如电子设备100可以接收用户针对添加应用控件7103的输入操作(例如单击),响应于用户的输入操作,电子设备100可以将其他的应用添加在第二级投屏权限下。例如,如图7F所示,电子设备100收用户针对添加应用控件7103的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图7G所示的提示栏7110。电子设备100可以接收用户作用在提示栏7110上的上下滑动操作,使得电子设备100可以再提示栏7110中显示其他更多的应用。
如图7G所示,电子设备100接收用户针对提示栏7110中购物应用选项的输入操作,将购物应用选中。之后,电子设备100接收用户针对提示栏7110中确定选项的输入操作(例如单击),响应于用户的输入操作,电子设备100可以将购物应用添加在第二级投屏权限下,即将购物应用的投屏权限设置为第二级投屏权限。之后,电子设备100可以显示如图7H所示的用户界面730,用户界面730与用户界面710的不同之处在于,第二级投屏权限下包括的应用,还包括购物应用。
需要说明的是,图7A-图7H仅是示例性说明改变应用的投屏权限的示意图,在实际应用中,改变应用的投屏权限的实现可以与图7A-图7H所示的不同,本申请实施例对此不做限定。
在电子设备100与大屏200建立投屏连接后,电子设备100可以接收用户操作显示应用一的多媒体内 容。应用一可以基于大屏200的设备信息和应用一的多媒体内容,重新绘制投屏内容,使得投屏内容中图像帧或者图像帧的尺寸与大屏200的显示屏尺寸相同,可以提高大屏200的屏幕利用率。
需要说明的是,应用一可以设置某些用户界面以镜像投屏的方式投屏显示在大屏200上,应用一也可以设置某些用户界面基于大屏200的设备信息重新绘制后投屏显示在大屏200上。不同的应用可以自定义,本申请实施例对此不做限定。例如在图库应用中,在显示图库应用中某一张图片的时候或者显示图库应用中某一个视频的时候,图库应用才会基于大屏200的设备信息将图片界面或者视频界面重新绘制后投屏显示在大屏200上。例如在视频应用中,在显示视频应用中某一个视频的时候,视频应用才会基于大屏200的设备信息将视频界面重新绘制后投屏显示在大屏200上。例如在购物应用中,在显示购物应用中某一个商品的详情页的时候,购物应用才会基于大屏200的设备信息将商品的详情页重新绘制后投屏显示在大屏200上。
示例性的,应用一可以是华为视频应用,电子设备100显示应用一的多媒体内容可以是电子设备100显示的华为视频应用中的视频播放界面。
图8A-图8D示例性示出了电子设备100将华为视频应用中的视频投屏显示在大屏200上的示意图。
其中,如图8A中的(a)所示,电子设备100显示主界面801。如图8A中的(b)所示,电子设备100可以通过镜像投屏的方式将主界面801投屏显示在大屏200上。
电子设备100的主界面801包括多个应用程序的图标,例如天气应用的图标、华为商店应用的图标、购物应用的图标、华为视频应用的图标、日历应用的图标、图库应用的图标、相机应用的图标、通讯录应用的图标、电话应用的图标。电子设备100的主界面801还包括日历指示符、天气指示符、页面指示符、电量指示符等。
如图8A中的(a)所示,电子设备100接收用户针对华为视频的图标的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图8B中的(a)所示的华为视频应用的界面。华为视频应用的界面中示出了多个视频略缩图。如图8B中的(b)所示,电子设备100可以通过镜像投屏的方式将华为视频应用的界面投屏显示在大屏200上。
如图8B中的(a)所示,电子设备100接收用户针对“勇敢地跨步”的视频略缩图的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图8C中的(a)所示的视频界面802。视频界面802中包括播放的视频帧和视频的简介信息,视频的简介信息可以例如视频的名称、视频的总集数、正播放的视频集数、视频的播放量、视频的类型、视频的播放进度等。
在一种可能的实现方式中,华为视频应用可以基于视频界面802中所示的视频帧、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示.投屏界面,例如大屏200可以显示如图8C中的(b)所示的投屏界面803。
在其他可能的实现方式中,华为视频应用可以基于视频界面802中所示的视频帧、视频的简介信息、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如大屏200可以显示图8D中的(b)所示的投屏界面804。投屏界面804与投屏界面803不同之处在于,投屏界面804除了包括视频帧,中还包括视频的名称和视频的播放进度。
可选的,在电子设备100与大屏200建立投屏连接后,电子设备100可以接收用户操作显示应用一的界面一。电子设备100接收用户针对界面一的操作一,响应与操作一,电子设备100可以将应用一内界面一的子界面(或者称为界面一的下一级界面)投屏显示在大屏200上。在一种可能的实现方式中,在大屏200显示界面一的子界面后,电子设备100可以显示界面一的子界面。在其他可能的实现方式中,在大屏200显示界面一的子界面后,电子设备100也可以显示界面一,本申请实施例对此不做限定。
示例性的,应用一可以是购物应用。界面一可以是购物应用的主界面。
图9A-图9D示例性示出了电子设备100在大屏200上显示界面一的子界面的示意图。
如图9A中的(a)所示,电子设备100显示主界面801。如图9A中的(b)所示,电子设备100可以通过镜像投屏的方式将主界面801投屏显示在大屏200上。
如图9A中的(a)所示,电子设备100接收用户针对主界面801中购物应用的图标的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图9B中的(a)所示的购物应用的用户界面901。如图9B中的(b)所示,电子设备100可以通过镜像投屏的方式将用户界面901投屏显示在大屏200上。
用户界面901可以是购物应用的商品推荐页面。用户界面901可以包括商品显示区域。该商品显示区 域可以显示多个推荐商品图标,推荐商品图标可用于触发显示该推荐商品图标对应的商品详情页面。可选的,用户界面901还可以包括个人中心控件、扫一扫控件、商品搜索栏等。
如图9B所示,电子设备100接收用户针对篮球鞋商品图标的输入操作(例如单击),响应于用户的输入操作,如图9C中的(a)所示,电子设备100还是显示用户界面901。如图9C中的(b)所示,响应于用户针对篮球鞋商品图标的输入操作(例如单击),购物应用获取到用户界面901的子界面(或者称为用户界面901的下一级界面),购物应用基于用户界面901的子界面、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如大屏200可以显示如图9C中的(b)所示的投屏界面902。投屏界面902包括篮球鞋的图片、篮球鞋的商品简介、篮球鞋的商店链接、购买选项以及收藏选项等等,投屏界面902为用户界面901的子界面。这样,电子设备100可以将用户界面901的子界面投屏显示在大屏200上,使得用户可以在大屏200上查看商品的详情页。
在其他可能的实现方式中,响应于用户针对篮球鞋商品图标的输入操作(例如单击),如图9D中的(a)所示,电子设备100可以显示用户界面903,用户界面903为用户界面901的子界面。如图9D中的(b)所示,大屏200显示的是用户界面903。这样,电子设备100可以同时在电子设备100上和大屏上显示商品的详情页。
可选的,在电子设备100与大屏200建立投屏连接后,电子设备100可以接收用户操作显示应用一的界面一。电子设备100接收用户针对界面一的操作二。操作二为选中图片的操作。响应与操作二,电子设备100可以将用户选中的图片投屏显示在大屏200上。在一种可能的实现方式中,在大屏200显示用户选中的图片后,电子设备100可以还是显示界面一。在其他可能的实现方式中,在大屏200显示用户选中的图片后,电子设备100也可以显示用户选中的图片,本申请实施例对此不做限定。
示例性的,应用一可以是购物应用。界面一可以是购物应用的主界面。
图10A-图10D示例性示出了电子设备100在大屏200上显示界面一的子界面的示意图。
参考图9A-图9B的实施例,电子设备100可以显示购物应用的用户界面901。
如图10A中的(a)所示,电子设备100接收用户针对篮球鞋商品图片的输入操作(例如篮球鞋商品图标所在的显示区域的选中操作),大屏200显示如图10A中的(b)所示的用户界面901。或者如图10B中的(a)所示,电子设备100接收用户针对篮球鞋商品图片的输入操作(例如长按操作),大屏200显示如图10B中的(b)所示的用户界面901,电子设备100选中篮球鞋商品图片,响应于用户的输入操作,如图10C中的(a)所示,电子设备100还是显示用户界面901。如图10C中的(b)所示,响应于用户篮球鞋商品图片的操作,购物应用获取到篮球鞋商品图片,并基于篮球鞋商品图片、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如大屏200可以显示如图10C中的(b)所示的投屏界面1001。可选的,电子设备100也可以不显示用户界面901,而是显示篮球鞋商品图片,本申请实施例对此不做限定。
在其他可能的实现方式中,响应于用户选中篮球鞋商品图片的操作,如图10D中的(a)所示,电子设备100还是显示用户界面901。如图10D中的(b)所示,响应于用户篮球鞋商品图片的操作,购物应用获取到篮球鞋商品的多个方位的图片,并基于篮球鞋商品多个方位的图片、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如大屏200可以显示如图10D中的(b)所示的投屏界面1002。投屏界面1002中包括篮球鞋商品的正面图片和侧面图片。不仅限于正面图片和侧面图片,购物应用还可以获取到其他更多方面的图片,例如篮球鞋商品后方位的图片,使得大屏200可以显示其他更多方位的商品图片,本申请实施例对此不做限定。可选的,电子设备100也可以不显示用户界面901,而是显示篮球鞋商品的正面图片和侧面图片,本申请实施例对此不做限定。
可选的,在电子设备100与大屏200建立投屏连接后,电子设备100可以接收用户操作显示应用一的界面一。电子设备100接收用户针对界面一的操作三。操作三为选中界面一中部分区域的操作。响应与操作二,电子设备100可以将用户选中的界面一的部分区域投屏显示在大屏200上。在一种可能的实现方式中,在大屏200显示用户选中的界面一的部分区域后,电子设备100可以还是显示界面一。在其他可能的实现方式中,在大屏200显示用户选中的界面一的部分区域后,电子设备100也可以显示用户选中的界面一的部分区域,本申请实施例对此不做限定。这样,电子设备100可以将用户选中的区域内的内容显示在 大屏200上,以便用户查看用户选中的区域内的详情内容。
示例性的,应用一可以是备忘录应用。界面一可以是备忘录的主界面。
图11A-图11D示例性示出了电子设备100在大屏200上显示界面一的部分区域的示意图。
如图11A中的(a)所示,电子设备100显示主界面801。如图11A中的(b)所示,电子设备100可以通过镜像投屏的方式将主界面801投屏显示在大屏200上。
如图11A中的(a)所示,电子设备100接收用户针对主界面801中备忘录应用的图标的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图11B中的(a)所示的备忘录应用的用户界面1101。用户界面1101内显示有一个或多个笔记图标。例如“笔记5”的图标、“笔记4”的图标、“笔记3”的图标等等。如图11B中的(b)所示,电子设备100可以通过镜像投屏的方式将用户界面1101投屏显示在大屏200上。
如图11B中的(a)所示,电子设备100接收用户针对“笔记5”的图标的输入操作(例如单击),相应于用户的输入操作,电子设备100显示如图11C中的(a)所示的用户界面1102。用户界面1102为“笔记5”的详情内容。如图11C中的(b)所示,电子设备100可以通过镜像投屏的方式将用户界面1102投屏显示在大屏200上。
如图11C中的(a)所示,电子设备100接收用户作用在用户界面1102上的选中操作,电子设备100可以将用户选中的用户界面1102的部分区域投屏显示在大屏200上。具体的,备忘录应用获取到用户选中的用户界面1102的部分区域,并基于用户选中的用户界面1102的部分区域、大屏200的设备,绘制得到投屏界面。备忘录应用将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,以使得大屏200可以显示投屏界面。如图11D中的(a)所示,电子设备100还是显示用户界面1102,大屏界面显示图11D中的(b)所示投屏界面1103,投屏界面1103内的显示内容为用户选中的用户界面1102的部分区域内的显示内容。可选的,电子设备100也可以不显示用户界面1102,而是显示户选中的用户界面1102的部分区域,本申请实施例对此不做限定。
可选的,电子设备100也可以将用户选中的用户界面1102的部分区域内的显示内容用其他语言(例如英语)显示在大屏200上。
可选的,电子设备100显示应用一的界面一,并将应用一内的多媒体内容投屏显示在大屏200上之后,电子设备100可以接收用户的操作停止显示应用一的界面一。在一种可能的实现方式中,大屏200还是可以持续性显示应用一内的多媒体内容。在其他可能的实现方式中,在电子设备100停止显示应用一的界面一之后,大屏200也停止显示应用一内的多媒体内容。本申请实施例对于具体的实现方式不做限定。
参考图8D所示的实施例,电子设备100与大屏200建立投屏连接之后,电子设备100可以显示如图8D中的(a)所示的视频界面802,大屏200可以显示图8C中的(b)所示的投屏界面803。
如图12所示,电子设备100接收用户的操作停止显示视频界面802,例如电子设备100接收用户针对返回键的操作,使得电子设备100显示如图12中的(a)所示的主界面801,此时大屏200依然显示的是如图12中的(b)所示的华为视频应用内的多媒体内容,例如大屏200持续显示投屏界面803。
可选的,在电子设备100与大屏200建立投屏连接之后,大屏200显示的是应用一内的多媒体内容。之后,电子设备100接收用户操作显示应用二内的多媒体内容,在应用二的投屏权限优先级高于应用一的投屏权限优先级的情况下,应用二将基于应用二内的多媒体内容、大屏200的设备信息,重新绘制得到第二投屏内容,并将第二投屏通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示第二投屏内容。
示例性的,应用二可以是图库应用,电子设备100显示应用二的多媒体内容可以是电子设备100显示的图库应用中的图片。示例性的,图库应用的投屏权限优先级高于华为视屏应用的投屏权限优先级。
图13A-图13D示例性示出了大屏200切换显示投屏内容的示意图。
如图13A中的(a)所示,电子设备100显示主界面801。如图13A中的(b)所示,电子设备100可以通过镜像投屏的方式将主界面801投屏显示在大屏200上。
如图13A中的(a)所示,电子设备100接收用户针对图库应用的图标的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图13B中的(a)所示的图库应用的界面。如图13B中的(b)所示,电子设备100可以通过镜像投屏的方式将图库应用的界面投屏显示在大屏200上。图库应用的界面示出了多个图片的略缩图。
如图13B中的(a)所示,电子设备100接收用户针对略缩图1301的输入操作(例如单击),响应于用户的输入操作,电子设备100可以显示如图13C中的(a)所示的用户界面1302。用户界面1302包括有图片以及多个选项。例如,用户界面1302包括动物(猫)的图片、返回选项、分享选项、收藏选项、编辑选项、删除选项、更多选项等等。
在一种可能的实现方式中,图库应用可以基于用户界面1302中所示的图片以及多个选项、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如大屏200可以显示如图13C中的(b)所示的投屏界面1303。
在其他可能的实现方式中,图库应用可以基于用户界面1302中所示的图片、大屏200的设备信息,绘制得到投屏界面,并将投屏界面通过电子设备100与大屏200之间的投屏连接发送至大屏200,使得大屏200可以显示投屏界面,例如电子设备100显示如图13D中的(a)所示的用户界面1302,大屏200可以显示如图13D中的(b)所示的投屏界面1304。
可选的,在电子设备100与大屏200建立投屏连接之后,大屏200显示的是应用一内的多媒体内容。之后,电子设备100接收用户操作显示应用二内的多媒体内容,在应用二的投屏权限优先级低于或者等于应用一的投屏权限优先级额情况下,大屏200还是显示应用一内的多媒体内容,不切换显示投屏内容。
示例性的,应用二可以是图库应用,电子设备100显示应用二的多媒体内容可以是电子设备100显示的图库应用中的图片。示例性的,图库应用的投屏权限优先级低于或者等于华为视屏应用的投屏权限优先级。
参考图13A-图13B中实施例的相关描述,电子设备100接收用户操作显示用户界面1302。
如图14中的(a)所示,由于图库应用的投屏权限优先级低于或者等于华为视屏应用的投屏权限优先级,电子设备100上显示的是用户界面1302,大屏200上还是显示如图14中的(b)所示的投屏界面803。用户界面1302为图库应用中的多媒体内容,投屏界面803为华为视频应用中的多媒体内容。即电子设备100与大屏200建立投屏连接的情况下,电子设备100上和大屏200上可以显示不同应用内的多媒体内容。
图15示例性示出了本申请实施例提供的一种投屏方法的方法流程示意图。
其中,电子设备100内包括系统服务模块、应用一和应用二。
S1501、电子设备100与大屏200建立投屏连接,系统服务模块获取到大屏200的设备信息,并检测投屏状态。
对于电子设备100如何与大屏200建立投屏连接的,可以参考图6A-图6E所示的实施例,本申请实施例在此不再赘述。
电子设备100与大屏200建立投屏连接后,系统服务模块可以获取到大屏200的设备信息,大屏200的设备信息包括但不仅限于:大屏200的地址、大屏200的名称、大屏200的屏幕尺寸、大屏200上屏幕的色彩格式、大屏200上屏幕的像素密度等。
系统服务模块还用于检测投屏状态,即确定出当前是否有应用内的多媒体内容投屏显示在大屏200上。
S1502、应用一注册到系统服务模块。
S1503、应用二注册到系统服务模块。
应用一和应用二分别注册到系统服务模块,用于应用一和应用二可以实时获取到投屏状态和大屏200的设备信息。投屏状态用于应用一和应用二确定出当前是否可以投屏。大屏200的设备信息用于应用一和应用二在确定出可以投屏的状态下,通过大屏200的设备信息绘制投屏内容。
可选的,S1502和S1503可以在S1501之前执行,也可以在S1501之后执行,本申请实施例对此不做限定。
S1504、应用一开启,并显示应用一内的多媒体内容。
S1505、在应用一显示多媒体内容后,系统服务模块将判断当前是否有应用在投屏?
在当前没有应用在投屏的情况下,且应用一显示的多媒体内容支持重新绘制后显示在大屏200上,系统服务模块执行S1506。
在当前有应用在投屏,但是当前投屏的应用的投屏权限优先级低于应用一投屏权限优先级的情况下, 且应用一显示的多媒体内容支持重新绘制后显示在大屏200上,系统服务模块执行S1506。
若当前有应用在投屏,且当前投屏的应用的投屏权限优先级高于或者等于应用一投屏权限优先级系统服务模块不执行S1506,即目前应用一无法投屏。
S1506、系统服务模块向应用一发送开始投屏指令。
S1507、在没有应用在投屏的状态下,应用一基于大屏200的设备信息和应用一内的多媒体内容,绘制得到第一投屏内容。
电子设备100显示应用一的多媒体内容,例如显示应用一的界面一,应用一可以从本地或者从应用一的服务器中获取到界面一内显示的内容,或者合成应用一的多个不同的图层,或者界面一的子界面(或者称为界面一的下一级界面)。
在一种可能的实现方式中,在应用一的界面一支持重新绘制后投屏显示在大屏200上时,那么应用一可以基于界面一内显示的内容、大屏200的设备信息绘制得到第一投屏内容,第一投屏内容的尺寸与大屏200的屏幕尺寸相同。第一投屏内容内显示的内容和界面一内显示的内容相同,第一投屏内容和界面一的界面布局可以不同。
在其他可能的实现方式中,在应用一的界面一支持重新绘制后投屏显示在大屏200上时,应用一可以基于界面一内显示的部分内容、大屏200的设备信息绘制得到第一投屏内容,第一投屏内容的尺寸与大屏200的屏幕尺寸相同。第一投屏内容内显示的内容和界面一内显示的部分内容相同。部分内容可以是界面一内显示的文字、图片等。
在其他可能的实现方式中,在应用一的界面一支持重新绘制后投屏显示在大屏200上时,界面一可以由多个不同的图层合成的。应用一可以基于合成界面一的一个或多个图层、大屏200的设备信息绘制得到第一投屏内容,第一投屏内容的尺寸与大屏200的屏幕尺寸相同。
在其他可能的实现方式中,在界面一的子界面支持重新绘制后投屏显示在大屏200上时,应用一在显示界面一之后,电子设备100接收用户针对界面一的操作,应用一可以基于界面一的子界面(或者称为界面一的下一级界面)、大屏200的设备信息绘制得到第一投屏内容,第一投屏内容的尺寸与大屏200的屏幕尺寸相同。
若应用一显示的多媒体内容不支持重新绘制后投屏显示在大屏200上,那么电子设备100将采用录屏和/或录音的方式获取到投屏内容,电子设备100将投屏内容发送至大屏200,使得大屏200以非全屏的方式显示应用一显示的多媒体内容。
这样,一方面,由应用绘制投屏内容,不同应用可以绘制得到不同的投屏内容,实现了个性化投屏。另一方面,应用重新绘制投屏内容,实现了可以基于大屏200的尺寸绘制投屏内容的尺寸,使得投屏内容的尺寸与大屏200的尺寸适配,以提高大屏200烦人屏幕利用率。
S1508、应用一将第一投屏内容通过电子设备100与大屏200之间的投屏连接发送至大屏200。
S1509、大屏200在接收到第一投屏内容之后,显示第一投屏内容。
S1510、应用二开启,并显示应用二内的多媒体内容。
可选的,在电子设备100停止显示应用一内的多媒体内容之后,在一种可能的实现方式中,大屏200还是可以持续性显示第一投屏内容。在其他可能的实现方式中,在电子设备100停止显示应用一内的多媒体内容之后,大屏200也停止显示第一投屏内容。
假设在电子设备100停止显示应用一内的多媒体内容之后,大屏200还是可以持续性显示第一投屏内容。例如,电子设备100开启应用二,并显示应用二内的多媒体内容,大屏200显示的是第一投屏内容。
S1511、在应用二开启之后,系统服务模块将判断应用二的投屏优先级是否高于应用一的投屏优先级?
系统服务模块确定出应用二的投屏优先级高于应用一的投屏优先级的情况下,且应用一显示的多媒体内容支持重新绘制后显示在大屏200上,系统服务模块执行S1512和S1513。
系统服务模块确定出应用二的投屏优先级低于或者等于应用一的投屏优先级的情况下,系统服务模块执行S1507。
S1512、系统服务模块向应用二发送开始投屏指令。
S1513、系统服务模块向应用一发送停止投屏指令。
在应用一接收到停止投屏指令之后,应用一停止执行S1507-S1509。
在应用二接收到开始投屏指令之后,应用一开始执行S1514-S1516。
S1514、在应用二的投屏优先级高于应用一的投屏优先级的情况下,且应用二显示的多媒体内容支持重新绘制后显示在大屏200上,应用二基于大屏200的设备信息和应用二内的多媒体内容,绘制得到第二投屏内容。
对于应用二如何绘制得到第二投屏内容的,和应用一如何绘制得到第一投屏内容的,原理类似,具体的,可以参考S1507中的相关描述,本申请实施例在此不再赘述。
S1515、应用二将第二投屏内容通过电子设备100与大屏200之间的投屏连接发送至大屏200。
S1516、大屏200在接收到第二投屏内容之后,显示第二投屏内容。
图16为本申请实施例提供的另一种投屏方法的流程示意图。
S1601、电子设备与大屏设备建立投屏连接。
电子设备可以是电子设备100,大屏设备可以是大屏200。
对于电子设备与大屏设备建立投屏连接的方式,可以参考图6A-图6E实施例中的描述,本申请实施例对此不做赘述。
S1602、电子设备显示第一应用的第一界面。
其中,第一界面可以是视频界面,也可以是图片界面,第二界面可以是视频界面,也可以是图片界面。
示例性的,第一应用可以是图8B所示的华为视频应用。第一界面可以是图8B所示的华为视频应用的主界面。
第一应用也可以是图9B所示的购物应用。第一界面可以是图9B所示的购物应用的用户界面901。
第一应用也可以是图11B所示的备忘录应用。第一界面可以是图11B所示的备忘录应用的用户界面1101。
S1603、电子设备接收针对第一界面的第一操作,第一操作用于选择第一投屏内容。
第一操作可以是图8B所示的针对“勇敢地跨步”的视频略缩图的输入操作。
第一操作也可以是图9B所示的针对篮球鞋商品图标的输入操作。
第一操作也可以是图11B所示的针对“笔记5”的图标的输入操作。
S1604、响应于第一操作,电子设备将第一投屏数据通过投屏连接发送至大屏设备。
S1605、在接收到第一投屏数据后,显示第二界面,第二界面包括第一投屏内容。
在一种可能的实现方式中,大屏设备,具体用于:全屏显示第二界面。这样,用户界面在虚拟屏上绘制后在投屏显示在大屏设备上,可以使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配,提高大屏设备的屏幕利用率。
第二界面可以是图8C中的(b)所示的投屏界面803。第二界面可以是图8D中的(b)所示的投屏界面804。
第二界面也可以是图9C中的(b)所示的投屏界面902。
第二界面也可以是图10C中的(b)所示的投屏界面1001。第二界面也可以是图10D中的(b)所示的投屏界面1002。
第二界面也可以是图11D中的(b)所示投屏界面1103。
S1606、电子设备接收响应于第二操作,显示第二应用的第三界面。
第二应用可以是图库应用。
第三界面可以是图14中的(a)所示的用户界面1302。
S1607、在第二应用的投屏权限低于或者等于第一应用的投屏权限的情况下,大屏设备继续显示第二界面。
大屏设备继续显示第二界面可以是图14中的(b)所示的投屏界面803。
当第一应用的第一界面支持虚拟屏绘制后投屏显示在大屏设备上时,第一应用将第一界面基于虚拟屏绘制后投屏显示在大屏设备上。大屏设备上显示的第一投屏内容的界面布局可以与第一界面的界面布局不同。大屏设备上显示的第一投屏内容的显示内容也可以与第一界面的显示内容不同。
通过第一方面提供的一种投屏系统,实现了电子设备可以基于应用的投屏权限优先级对应用的投屏行为进行管控。避免投屏混乱的情况发生。例如,电子设备100可以将投屏权限优先级最高的应用内的多媒体内容投屏显示在大屏设备上,无论电子设备侧如何切换显示其他应用内的内容,大屏上还是显示投屏权限优先级最高的应用内的多媒体内容。
在一种可能的实现方式中,电子设备,还用于在第二应用的投屏权限高于第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第四界面,第四界面包括第二投屏内容。
大屏设备,具体用于:全屏显示第四界面。这样,用户界面在虚拟屏上绘制后在投屏显示在大屏设备上,可以使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配,提高大屏设备的屏幕利用率。
这样,在由高投屏权限优先级应用切换至低投屏权限优先级应用时,在第二应用的第三界面支持在虚拟屏上绘制后投屏显示在大屏设备的情况下,那么电子设备可以将高投屏权限优先级应用内的多媒体内容在虚拟屏上绘制后投屏显示在大屏设备上。
示例性,第四界面可以是图13D中的(b)所示的投屏界面1304。
在一种可能的实现方式中,电子设备,还用于在第二应用的投屏权限高于第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第三界面。
在一种可能的实现方式中,大屏设备,具体用于:非全屏显示第三界面。这样,用户界面不支持在虚拟屏上绘制后在投屏显示在大屏设备上,电子设备仅能通过录屏和/或录音的方式录取到投屏内容,无法使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配。
这样,在由高投屏权限优先级应用切换至低投屏权限优先级应用时,在第二应用的第三界面不支持在虚拟屏上绘制后投屏显示在大屏设备的情况下,电子设备可以采取录屏和/或录音的方式获取到第二投屏数据,以使得大屏设备显示第三界面。
在一种可能的实现方式中,电子设备,还用于在大屏设备继续显示第二界面之后,接收第三操作,第三操作用于电子设备停止显示第一界面;电子设备,还用于响应于第三操作,显示第四界面;电子设备,还用于响应于第四操作,显示第二应用的第五界面;电子设备,还用于将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第三投屏数据后,显示第五界面;
或者,电子设备,还用于到第三投屏内容,将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用在接收到第三投屏数据后,显示第六界面,第六界面包括第三投屏内容。
其中,第四界面可以是第一应用内的用户界面,也可以是其他应用(例如桌面应用)内的用户界面,例如电子设备的主界面。
第五界面可以与第三界面相同,也可以与第三界面不同。
这样,在电子设备停止显示第一界面后,且第四界面不支持虚拟屏上绘制后投屏显示在大屏设备下,那么电子设备可以基于“镜像投屏”的方式将第四界面投屏显示在大屏设备上。
在电子设备显示第二应用的第五界面后,若第五界面不支持在虚拟屏上绘制后投屏显示在大屏设备上,那么电子设备可以基于“镜像投屏”的方式将第五界面投屏显示在大屏设备上,大屏设备显示第五界面。
或者,
在电子设备显示第二应用的第五界面后,若第五界面支持在虚拟屏上绘制后投屏显示在大屏设备上,那么电子设备可以将第五界面在虚拟屏上绘制后投屏显示在大屏设备上。
这样,电子设备可以接收用户操作使得电子设备停止显示支持在虚拟屏上绘制的用户界面后,之后,电子设备100可以切换投屏显示投屏权限优先级较低的应用内的多媒体内容。
在一种可能的实现方式中,电子设备,还用于:获取到大屏设备的设备信息,大屏设备的设备信息包括以下一项或多项:其中,大屏设备的屏幕尺寸、大屏设备的屏幕的色彩格式、大屏设备的屏幕的像素密度;电子设备,还用于在将第一投屏内容通过投屏连接发送至大屏设备之前,通过第一应用获取到第一投屏内容;电子设备,通过第一应用基于第一投屏内容和大屏设备的设备信息,生成第一投屏数据。这样,对于支持在虚拟屏上绘制后在投屏显示在大屏设备上的投屏内容,可以虚拟屏上绘制后在投屏显示在大屏设备上,可以使得投屏内容的尺寸与大屏设备的屏幕尺寸相适配,提高大屏设备的屏幕利用率。
可选的,电子设备在通过第一应用获取到第一投屏内容后,可以将第一投屏内容发送至大屏设备,大屏设备基于第一投屏内容和大屏设备的设备信息生成第一投屏内容,并显示第一投屏数据。
可选的,电子设备在通过第一应用获取到第一投屏内容的地址,电子设备将第一投屏内容的地址发送至大屏设备,大屏设备可以基于第一投屏内容的地址获取到第一投屏内容。再基于第一投屏内容和大屏设备的设备信息生成第一投屏数据,并显示第一投屏内容。
在一种可能的实现方式中,第一投屏内容包括第一界面内的全部显示内容或者部分显示内容。
第一投屏内容可以是图9D所示的用户界面903内的显示内容。第一投屏内容也可以是图11C中的(a)所示的用户选中的用户界面1102的部分区域。
结合第一方面,在一种可能的实现方式中,第一界面包括多个图层;第一投屏内容包括第一界面中一个或多个图层的显示内容。
结合第一方面,在一种可能的实现方式中,第一投屏内容包括第一界面的子界面的显示内容。第一投屏内容可以是图9C所示的投屏界面902内的显示内容。
在一种可能的实现方式中,电子设备,还用于基于第一应用的应用类型,获取到第一应用的投屏权限;电子设备,还用于基于第二应用的应用类型,获取到第二应用的投屏权限。这样,电子设备可以基于应用的类型获取到应用的投屏权限优先级,从而对应用的投屏行为进行管控。
在一种可能的实现方式中,电子设备,还用于在显示第一界面时,将第三投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第三投屏数据后,显示第一界面。
示例性的,大屏设备显示第一界面,可以是图8B中的(b)所示的华为视频应用的界面。
大屏设备显示第一界面,也可以是图9B中的(b)所示的用户界面901。大屏设备显示
第一界面,也可以是图11C中的(b)所示的用户界面1102。
图17为本申请实施例提供的又一种投屏方法的流程示意图。
S1701、电子设备与大屏设备建立投屏连接。
电子设备可以是电子设备100,大屏设备可以是大屏200。
对于电子设备与大屏设备建立投屏连接的方式,可以参考图6A-图6E实施例中的描述,本申请实施例对此不做赘述。
S1702、电子设备显示第一应用的第一界面,第一应用为购物类应用,第一界面为第一应用的主界面或者第一应用的商品列表界面。
第一界面可以是图9B所示的用户界面901,用户界面901为购物类应用的主界面。
S1703、电子设备接收针对所述第一界面的第一操作,第一操作为点击第一商品的链接的操作。
第一操作可以是图9B所示的针对用户界面901中篮球鞋商品图标的输入操作。
第一操作也可以是图10A中的(a)所示的针对篮球鞋商品图标所在的显示区域的选中操作。
第一操作也可以是图10B中的(a)所示的长按篮球鞋商品图片的操作。
第一商品可以是篮球鞋。
在一种可能的实现方式中,电子设备,还用于在接收针对所述第一界面的第一操作之前,获取到第二投屏内容,并将第二投屏数据通过投屏连接发送至大屏设备;大屏设备,还用于在接收到第二投屏数据后,显示第一界面。在一种可能的实现方式中,大屏设备,具体用于:非全屏显示第一界面。
大屏设备非全屏显示第一界面,可以是图9B中的(a)所示的非全屏显示用户界面901。
S1704、响应于第一操作,电子设备获取到第一投屏内容。
S1705、电子设备将第一投屏数据发送至大屏设备。
在一种可能的实现方式中,电子设备,还用于:获取到大屏设备的设备信息,大屏设备的设备信息包括以下一项或多项:其中,大屏设备的屏幕尺寸、大屏设备的屏幕的色彩格式、大屏设备的屏幕的像素密度;电子设备,还用于在将所述第一投屏内容通过投屏连接发送至大屏设备之前,通过第一应用获取到第一投屏内容;电子设备,通过第一应用基于第一投屏内容和大屏设备的设备信息,生成第一投屏数据。
在其他可能的实现方式中,电子设备在通过第一应用获取到第一投屏内容后,可以将第一投屏内容发送至大屏设备,大屏设备基于第一投屏内容和大屏设备的设备信息生成第一投屏数据,并显示第一投屏内容。
可选的,电子设备在通过第一应用获取到第一投屏内容的地址,电子设备将第一投屏内容的地址发送至大屏设备,大屏设备可以基于第一投屏内容的地址获取到第一投屏内容。再基于第一投屏内容和大屏设备的设备信息生成第一投屏数据,并显示第一投屏内容。
S1706、大屏设备在接收到第一投屏数据后,显示第二界面,第二界面包括第一投屏内容,第二界面为第一商品的图片或者第一商品的详情页。
在一种可能的实现方式中,大屏设备,具体用于:全屏显示第二界面。
大屏设备全屏显示第二界面,可以是图9C中的(b)或者图9D中的(b)所示的大屏设备全屏显示投屏界面902。
大屏设备全屏显示第二界面,可以是图10C中的(b)所示的大屏设备全屏显示投屏界面1001。
大屏设备全屏显示第二界面,可以是图10D中的(b)所示的大屏设备全屏显示投屏界面1002。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (40)

  1. 一种投屏系统,其特征在于,所述系统包括电子设备和大屏设备,其中,
    所述电子设备,用于与所述大屏设备建立投屏连接;
    所述电子设备,还用于显示第一应用的第一界面;
    所述电子设备,还用于接收针对所述第一界面的第一操作,所述第一操作用于选择第一投屏内容;
    所述电子设备,还用于响应于所述第一操作,将第一投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,用于在接收到所述第一投屏数据后,显示第二界面,所述第二界面包括所述第一投屏内容;
    所述电子设备,还用于接收第二操作;
    所述电子设备,还用于响应于所述第二操作,显示第二应用的第三界面;
    所述大屏设备,还用于在所述第二应用的投屏权限低于或者等于所述第一应用的投屏权限的情况下,继续显示所述第二界面。
  2. 根据权利要求1所述的系统,其特征在于,所述电子设备,还用于在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,还用于在接收到所述第二投屏数据后,显示第四界面,所述第四界面包括所述第二投屏内容。
  3. 根据权利要求1所述的系统,其特征在于,所述电子设备,还用于在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,获取到第二投屏内容,并将第二投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,还用于在接收到所述第二投屏数据后,显示所述第三界面。
  4. 根据权利要求1-3任一项所述的系统,其特征在于,所述电子设备,还用于在所述大屏设备继续显示所述第二界面之后,接收第三操作,所述第三操作用于所述电子设备停止显示所述第一界面;
    所述电子设备,还用于响应于所述第三操作,显示第四界面;
    所述电子设备,还用于接收第四操作;
    所述电子设备,还用于响应于所述第四操作,显示所述第二应用的第五界面;
    所述电子设备,还用于将第三投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,还用于在接收到所述第三投屏数据后,显示所述第五界面;
    或者,
    所述电子设备,还用于到获取到第三投屏内容,将所述第三投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,还用在接收到所述第三投屏数据后,显示第六界面,所述第六界面包括所述第三投屏内容。
  5. 根据权利要求1-4任一项所述的系统,其特征在于,所述大屏设备,具体用于:全屏显示所述第二界面。
  6. 根据权利要求2所述的系统,其特征在于,所述大屏设备,具体用于:全屏显示所述第四界面。
  7. 根据权利要求3所述的系统,其特征在于,所述大屏设备,具体用于:非全屏显示所述第三界面。
  8. 根据权利要求1-7任一项所述的系统,其特征在于,所述电子设备,还用于:获取到所述大屏设备的设备信息,所述大屏设备的设备信息包括以下一项或多项:其中,所述大屏设备的屏幕尺寸、所述大屏设备的屏幕的色彩格式、所述大屏设备的屏幕的像素密度;
    所述电子设备,还用于在所述将所述第一投屏内容通过所述投屏连接发送至所述大屏设备之前,通过第一应用获取到所述第一投屏内容;
    所述电子设备,通过所述第一应用基于所述第一投屏内容和所述大屏设备的设备信息,生成所述第一投屏数据。
  9. 根据权利要求1-8任一项所述的系统,其特征在于,所述第一投屏内容包括所述第一界面内的全部显示内容或者部分显示内容。
  10. 根据权利要求1-8任一项所述的系统,其特征在于,所述第一界面包括多个图层;所述第一投屏内容包括所述第一界面中一个或多个图层的显示内容。
  11. 根据权利要求1-8任一项所述的系统,其特征在于,所述第一投屏内容包括所述第一界面的子界面的显示内容。
  12. 根据权利要求1-11任一项所述的系统,其特征在于,所述电子设备,还用于基于所述第一应用的应用类型,获取到所述第一应用的投屏权限;
    所述电子设备,还用于基于所述第二应用的应用类型,获取到所述第二应用的投屏权限。
  13. 根据权利要求1-12任一项所述的系统,其特征在于,所述电子设备,还用于在显示所述第一界面时,将第三投屏数据通过所述投屏连接发送至所述大屏设备;
    所述大屏设备,还用于在接收到所述第三投屏数据后,显示所述第一界面。
  14. 一种投屏方法,其特征在于,所述方法包括:
    电子设备与大屏设备建立投屏连接;
    所述电子设备显示第一界面;
    所述电子设备接收针对所述第一界面的第一操作,所述第一操作用于选择第一投屏内容;
    响应于所述第一操作,所述电子设备将第一投屏数据通过所述投屏连接发送至所述大屏设备,所述第一投屏数据用于所述大屏设备显示第二界面,所述第二界面包括所述第一投屏内容;
    所述电子设备接收第二操作;
    响应于所述第二操作,所述电子设备显示第二应用的第三界面;
    在所述第二应用的投屏权限低于或者等于所述第一应用的投屏权限的情况下,所述电子设备指示所述大屏设备继续显示所述第二界面。
  15. 根据权利要求14所示的方法,其特征在于,所述方法还包括:
    在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,所述电子设备获取到第二投屏内容,并将第二投屏数据通过所述投屏连接发送至所述大屏设备,所述第二投屏数据用于所述大屏设备显示第四界面,所述第四界面包括所述第二投屏内容。
  16. 根据权利要求14所示的方法,其特征在于,所述方法还包括:
    在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,所述电子设备获取到第二投屏内容,并将第二投屏数据通过所述投屏连接发送至所述大屏设备,所述第二投屏数据用于所述大屏设备显示所述第三界面。
  17. 根据权利要求14-16任一项所示的方法,其特征在于,在所述电子设备指示所述大屏设备继续显示所述第二界面之后,所述方法还包括:
    所述电子设备接收第三操作,所述第三操作用于所述电子设备停止显示所述第一界面;
    响应于所述第三操作,所述电子设备显示第四界面;
    所述电子设备接收第四操作;
    响应于所述第四操作,所述电子设备显示所述第二应用的第五界面;
    所述电子设备将第三投屏数据通过所述投屏连接发送至所述大屏设备,所述第三投屏数据用于所述大屏设备显示所述第五界面;
    或者,
    所述电子设备获取到第三投屏内容,将所述第三投屏数据通过所述投屏连接发送至所述大屏设备,所述第三投屏数据用于所述大屏设备显示第六界面,所述第六界面包括所述第三投屏内容。
  18. 根据权利要求14-17任一项所示的方法,其特征在于,所述第一投屏数据用于所述大屏设备全屏显示第二界面。
  19. 根据权利要求15所示的方法,其特征在于,所述第二投屏数据用于所述大屏设备全屏显示第四界面。
  20. 根据权利要求16所示的方法,其特征在于,所述第二投屏数据用于所述大屏设备非全屏显示所述第三界面。
  21. 根据权利要求14-20任一项所示的方法,其特征在于,在所述电子设备与大屏设备建立投屏连接之后,所述方法还包括:
    所述电子设备获取到所述大屏设备的设备信息,所述大屏设备的设备信息包括以下一项或多项:其中,所述大屏设备的屏幕尺寸、所述大屏设备的屏幕的色彩格式、所述大屏设备的屏幕的像素密度;
    在所述电子设备将第一投屏数据通过所述投屏连接发送至所述大屏设备之前,所述方法还包括:
    所述电子设备通过第一应用获取到所述第一投屏内容;
    所述电子设备通过所述第一应用基于所述第一投屏内容和所述大屏设备的设备信息,生成所述第一投屏数据。
  22. 根据权利要求14-21任一项所示的方法,其特征在于,所述第一投屏内容包括所述第一界面内的全部显示内容或者部分显示内容。
  23. 根据权利要求14-21任一项所示的方法,其特征在于,所述第一界面包括多个图层;所述第一投屏内容包括所述第一界面中一个或多个图层的显示内容。
  24. 根据权利要求14-21任一项所示的方法,其特征在于,所述第一投屏内容包括所述第一界面的子界面的显示内容。
  25. 根据权利要求14-24任一项所示的方法,其特征在于,所述方法还包括:所述第一电子设备基于所述第一应用的应用类型,获取到所述第一应用的投屏权限;
    所述第一电子设备基于所述第二应用的应用类型,获取到所述第二应用的投屏权限。
  26. 根据权利要求14-25任一项所示的方法,其特征在于,在所述电子设备显示第一界面时,所述方法还包括:
    所述电子设备将第三投屏数据通过所述投屏连接发送至所述大屏设备,所述第三投屏数据用于所述大屏设备显示所述第一界面。
  27. 一种投屏方法,其特征在于,所述方法包括:
    大屏设备与电子设备建立投屏连接,其中所述电子设备显示有第一应用的第一界面;
    所述大屏设备在所述电子设备接收针对所述第一界面的第一操作后,通过所述投屏连接接收所述电子设备发送的第一投屏数据,所述第一操作用于选择第一投屏内容;
    所述大屏设备在接收到所述第一投屏数据后,显示第二界面,所述第二界面包括所述第一投屏内容;
    在所述电子设备显示第二应用的第三界面后,在所述第二应用的投屏权限低于或者等于所述第一应用的投屏权限的情况下,所述大屏设备继续显示所述第二界面。
  28. 根据权利要求27所述的方法,其特征在于,所述方法包括:
    在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,所述大屏设备通过所述投屏连接接收所述电子设备发送的第二投屏数据;
    所述大屏设备在接收到所述第二投屏数据后,显示第四界面,所述第四界面包括第二投屏内容。
  29. 根据权利要求27所述的方法,其特征在于,所述方法包括:
    在所述第二应用的投屏权限高于所述第一应用的投屏权限的情况下,所述大屏设备通过所述投屏连接接收所述电子设备发送的第二投屏数据;
    所述大屏设备在接收到所述第二投屏数据后,显示所述第三界面。
  30. 根据权利要求27-29任一项所述的方法,其特征在于,在所述大屏设备继续显示所述第二界面之后,所述方法还包括:
    所述大屏设备在所述电子设备停止显示所述第一界面,显示第二应用的第五界面之后,接收所述电子设备发送的第三投屏数据;
    所述大屏设备在接收到所述第三投屏数据后,显示所述第五界面;
    或者,
    所述大屏设备在接收到所述第三投屏数据后,显示第六界面,所述第六界面包括所述第三投屏内容。
  31. 根据权利要求27-30任一项所述的方法,其特征在于,所述大屏设备显示第二界面,具体包括:
    所述大屏设备全屏显示所述第二界面。
  32. 根据权利要求28所述的方法,其特征在于,所述大屏设备显示第四界面,具体包括:
    所述大屏设备全屏显示所述第四界面。
  33. 根据权利要求29所述的方法,其特征在于,所述大屏设备显示所述第三界面,具体包括:
    所述大屏设备非全屏显示所述第三界面。
  34. 根据权利要求27-33任一项所述的方法,其特征在于,所述第一投屏内容包括所述第一界面内的全部显示内容或者部分显示内容。
  35. 根据权利要求27-33任一项所述的方法,其特征在于,所述第一界面包括多个图层;所述第一投屏内容包括所述第一界面中一个或多个图层的显示内容。
  36. 根据权利要求27-33任一项所述的方法,其特征在于,所述第一投屏内容包括所述第一界面的子界面的显示内容。
  37. 根据权利要求27-36任一项所述的方法,其特征在于,在所述大屏设备与电子设备建立投屏连接之后,在所述大屏设备通过所述投屏连接接收所述电子设备发送的第一投屏数据之前,所述方法还包括:
    所述大屏设备通过所述投屏连接接收所述电子设备发送的第三投屏数据;
    所述大屏设备在接收到所述第三投屏数据后,显示所述第一界面。
  38. 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行上述权利要求14-26中的任一项所述的方法。
  39. 一种计算机可读存储介质,其特征在于,用于存储计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述权利要求14-26中的任一项所述的方法。
  40. 一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述权利要求14-26中的任一项所述的方法。
PCT/CN2023/109007 2022-07-26 2023-07-25 一种投屏方法及电子设备 WO2024022307A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210887873.3 2022-07-26
CN202210887873.3A CN117492672A (zh) 2022-07-26 2022-07-26 一种投屏方法及电子设备

Publications (1)

Publication Number Publication Date
WO2024022307A1 true WO2024022307A1 (zh) 2024-02-01

Family

ID=89669542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/109007 WO2024022307A1 (zh) 2022-07-26 2023-07-25 一种投屏方法及电子设备

Country Status (2)

Country Link
CN (1) CN117492672A (zh)
WO (1) WO2024022307A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660842A (zh) * 2018-11-14 2019-04-19 华为技术有限公司 一种播放多媒体数据的方法及电子设备
CN110381195A (zh) * 2019-06-05 2019-10-25 华为技术有限公司 一种投屏显示方法及电子设备
CN112416277A (zh) * 2020-11-04 2021-02-26 上海郡码智能科技有限公司 车载系统的多屏显示方法、装置、车载系统和存储介质
CN114040242A (zh) * 2021-09-30 2022-02-11 荣耀终端有限公司 投屏方法和电子设备
CN114489533A (zh) * 2020-11-13 2022-05-13 华为技术有限公司 投屏方法、装置、电子设备及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660842A (zh) * 2018-11-14 2019-04-19 华为技术有限公司 一种播放多媒体数据的方法及电子设备
CN110381195A (zh) * 2019-06-05 2019-10-25 华为技术有限公司 一种投屏显示方法及电子设备
CN112416277A (zh) * 2020-11-04 2021-02-26 上海郡码智能科技有限公司 车载系统的多屏显示方法、装置、车载系统和存储介质
CN114489533A (zh) * 2020-11-13 2022-05-13 华为技术有限公司 投屏方法、装置、电子设备及计算机可读存储介质
CN114040242A (zh) * 2021-09-30 2022-02-11 荣耀终端有限公司 投屏方法和电子设备

Also Published As

Publication number Publication date
CN117492672A (zh) 2024-02-02

Similar Documents

Publication Publication Date Title
WO2020238871A1 (zh) 一种投屏方法、系统及相关装置
CN110109636B (zh) 投屏方法、电子设备以及系统
US11669242B2 (en) Screenshot method and electronic device
CN111316598B (zh) 一种多屏互动方法及设备
US11385857B2 (en) Method for displaying UI component and electronic device
WO2020253719A1 (zh) 一种录屏方法及电子设备
US20230046708A1 (en) Application Interface Interaction Method, Electronic Device, and Computer-Readable Storage Medium
WO2021197139A1 (zh) 一种推荐服务的方法、电子设备和系统
JP7369281B2 (ja) デバイス能力スケジューリング方法および電子デバイス
US20230216990A1 (en) Device Interaction Method and Electronic Device
CN112398855B (zh) 应用内容跨设备流转方法与装置、电子设备
US20230306929A1 (en) Display control method, apparatus, and storage medium
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
CN114040242B (zh) 投屏方法、电子设备和存储介质
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2022121775A1 (zh) 一种投屏方法及设备
US20230403458A1 (en) Camera Invocation Method and System, and Electronic Device
US20240056676A1 (en) Video Recording Method and Electronic Device
WO2021143391A1 (zh) 基于视频通话的共享屏幕方法及移动设备
US20230353862A1 (en) Image capture method, graphic user interface, and electronic device
CN115237359A (zh) 一种投屏显示参数调节方法
US20240094972A1 (en) Page Display Method and Apparatus, Electronic Device, and Readable Storage Medium
CN114356195B (zh) 一种文件传输的方法及相关设备
US20230350629A1 (en) Double-Channel Screen Mirroring Method and Electronic Device
CN114827581A (zh) 同步时延测量方法、内容同步方法、终端设备及存储介质

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: 23845517

Country of ref document: EP

Kind code of ref document: A1