WO2022206659A1 - 一种投屏方法及相关装置 - Google Patents

一种投屏方法及相关装置 Download PDF

Info

Publication number
WO2022206659A1
WO2022206659A1 PCT/CN2022/083309 CN2022083309W WO2022206659A1 WO 2022206659 A1 WO2022206659 A1 WO 2022206659A1 CN 2022083309 W CN2022083309 W CN 2022083309W WO 2022206659 A1 WO2022206659 A1 WO 2022206659A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
window
screen
application
display
Prior art date
Application number
PCT/CN2022/083309
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 华为技术有限公司
Priority to EP22778841.1A priority Critical patent/EP4300284A1/en
Publication of WO2022206659A1 publication Critical patent/WO2022206659A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/395Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
    • G09G5/397Arrangements specially adapted for transferring the contents of two or more bit-mapped memories to the screen simultaneously, e.g. for mixing or overlay
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/10Mixing of images, i.e. displayed pixel being the result of an operation, e.g. adding, on the corresponding input pixels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/04Exchange of auxiliary data, i.e. other than image data, between monitor and graphics controller
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports

Definitions

  • the present application relates to the field of electronic technologies, and in particular, to a screen projection method and related devices.
  • screen projection technology is usually based on layer filtering to achieve content filtering for mirror projection.
  • the application 1 can be screencast to the tablet computer.
  • the mobile phone synthesizes and displays all the layers on the mobile phone, selects the layer corresponding to application 1 for filtering and synthesis, and sends the synthesized image data of application 1 to the tablet computer; The data is displayed on the screen.
  • the embodiments of the present application provide a screen projection method and a related device, which can effectively implement reverse control after screen projection.
  • the present application provides a screen projection method, the method includes: a first electronic device superimposes and displays a floating window on the display content of the main screen, displays a first user interface in the floating window, and the display content of the main screen is based on the main screen.
  • the image data of the display area is determined, and the display content of the floating window is determined based on the image data of the first extended display area; the first operation for the floating window is detected, and in response to the first operation, the first electronic device is based on the first extended display area.
  • the image data in the display area projects the display content of the floating window to the second electronic device; receives the first instruction sent by the second electronic device for the first user interface displayed on the screen; in response to the first instruction, the first electronic device
  • the display content of the floating window is switched to the second user interface based on the application window running in the first extended display area.
  • the first electronic device can superimpose and display the floating window on the display content of the main screen, the main screen is displayed based on the image data in the display area of the main screen, and the floating window is displayed based on the image data in the extended display area. And based on the extended display area, the display content of the floating window can be projected to the projection target end, and the projection content can be observed in real time through the floating window. content) reverse control.
  • the screen projection display is performed based on the image data corresponding to the extended display area, which effectively avoids the situation of missed projection and multi-projection in the screen projection scheme of traditional layer filtering.
  • the above-mentioned first instruction includes a first coordinate acting on a second operation of the first user interface in the screen projection window displayed by the second electronic device; the above-mentioned first electronic device operates based on the first extended display area.
  • the application window switches the display content of the floating window to the second user interface, which specifically includes: the first electronic device determines, based on the first coordinates and the interface layout of the application window that has been run recently in the first extended display area, a second operation for switching The content displayed on the screen is the second user interface; the electronic device switches the display content of the floating window to the second user interface, and sends the image data of the second user interface to the second electronic device.
  • the first coordinates are the first original touch coordinates of the second operation on the display screen of the second electronic device; the first electronic device is based on the first coordinates and an application program recently run in the first extended display area
  • the interface layout of the window, determining that the second operation is used to switch the screen-casting display content to the second user interface specifically includes: based on the position of the screen-casting window on the display screen of the second electronic device, obtaining a first relative value of the first original touch coordinates Coordinates, the first relative coordinates are the relative coordinates of the first original touch coordinates in the screen projection window; based on the first relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device, it is determined that the first relative coordinates correspond to
  • the second relative coordinates are the relative coordinates of the first relative coordinates in the screen projection window in the full-screen display window of the first electronic device; based on the second relative coordinates and the most recently running application in the first extended display area
  • For the interface layout of the window it
  • the first coordinates are the first relative coordinates of the first original touch coordinates of the second operation on the display screen of the second electronic device, and the first relative coordinates are the first original touch coordinates in the screen projection window relative coordinates;
  • the above-mentioned first electronic device based on the first coordinates and the interface layout of the application program window that has been run recently in the first extended display area, determines that the second operation is used to switch the screen-cast display content to the second user interface, which specifically includes: based on The first relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device, determine the second relative coordinates corresponding to the first relative coordinates, and the second relative coordinates are the first relative coordinates in the screen projection window in the first relative coordinates.
  • Relative coordinates in a full-screen display window of an electronic device based on the second relative coordinates and the interface layout of the application window that has been run recently in the first extended display area, determine that the second operation is used to switch the display content of the floating window to the second user interface.
  • the first coordinates are second relative coordinates corresponding to the first original touch coordinates of the second operation on the display screen of the second electronic device, and the second relative coordinates are the first relative coordinates based on the first original touch coordinates
  • the relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device are determined; wherein, the first relative coordinates are the relative coordinates of the first original touch coordinates in the screen projection window, and the second relative coordinates are the projection screen
  • the first relative coordinates within the window are relative coordinates within the full-screen display window of the first electronic device.
  • the method further includes: the first electronic device displays the first user interface of the first application program window of the first application; A third operation on the target floating object is detected, and the target floating object is the first application or the first application window; in response to the third operation, the first electronic device creates a first extended display area, and displays the target running in the main screen.
  • the floating object is migrated to the first extended display area; the above-mentioned first electronic device superimposes and displays the floating window on the display content of the main screen, which specifically includes: the first electronic device determines the floating window based on the image data of the target floating object running in the first extended display area
  • the display content of the main screen is determined based on the image data in the display area of the main screen, and the display content of the main screen is superimposed on the display content of the main screen to display the floating window.
  • the target floating object is the first application
  • the first extended display area is used to run the first application
  • the floating window is used to display the user interface of the first application based on the image data of the first extended display area
  • the target floating object is the first application window
  • the first extended display area is used to run the first application window
  • the floating window is used to display the user interface of the first application window based on the image data of the first extended display area.
  • the method further includes: detecting an effect acting on the display of the floating window.
  • the fourth operation of the first user interface in response to the fourth operation, the first electronic device switches the display content of the floating window to the third user interface based on the first extended display area.
  • the first electronic device switches the display content of the floating window to the third user interface based on the first extended display area, which specifically includes: acquiring the second original touch coordinates of the fourth operation
  • the third relative coordinates are the relative coordinates of the second original touch coordinates in the floating window; based on the third relative coordinates, and the window ratio of the floating window and the full-screen display window of the first electronic device, determine the third relative coordinates
  • the fourth relative coordinate corresponding to the coordinate, and the fourth relative coordinate is the relative coordinate of the third relative coordinate in the full-screen display window of the first electronic device; based on the fourth relative coordinate and the interface of the most recently running application window in the first extended display area Layout, and determine that the fourth operation is used to switch the display content of the floating window to the third user interface.
  • the display content of the main screen is a fourth user interface
  • the method further includes: detecting a fifth operation on the main screen, responding to In the fifth operation, the first electronic device projects the display content of the main screen to the second electronic device based on the image data in the display area of the main screen; receives a second instruction sent by the second electronic device for the fourth user interface displayed by the projection screen; In response to the second instruction, the first electronic device switches the display content of the home screen to the fifth user interface based on the most recently executed application window in the display area of the home screen.
  • the user can manipulate the displayed content of the floating window without affecting the displayed content of the main screen; on the contrary, the user can also manipulate the displayed content of the main screen without affecting the displayed content of the main screen.
  • the display content of the floating window since the main screen and the floating window correspond to two independent display areas, the user can manipulate the displayed content of the floating window without affecting the displayed content of the main screen; on the contrary, the user can also manipulate the displayed content of the main screen without affecting the displayed content of the main screen.
  • the display content of the floating window since the main screen and the floating window correspond to two independent display areas, the user can manipulate the displayed content of the floating window without affecting the displayed content of the main screen; on the contrary, the user can also manipulate the displayed content of the main screen without affecting the displayed content of the main screen.
  • the display content of the floating window since the main screen and the floating window correspond to two independent display areas, the user can manipulate the displayed content of the floating window without affecting the displayed content of the main screen; on the contrary, the user can also manipulate the displayed content of
  • an electronic device including: a communication interface, a memory, and a processor; the communication interface and the memory are coupled to the processor, and the memory is used to store computer program code, the computer program code Comprising computer instructions, when the processor reads the computer instructions from the memory, to cause the electronic device to perform any of the possible implementations of the first aspect.
  • a computer-readable storage medium comprising instructions, characterized in that, when the above-mentioned instructions are executed on an electronic device, the electronic device executes any one of the possible implementations of the first aspect.
  • a computer product when the computer program product runs on a computer, causing the computer to execute any one of the possible implementations of the first aspect.
  • FIG. 1A is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram of a screen projection communication provided by an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • 3A to 3I are schematic interface diagrams of application screen projection provided by an embodiment of the present application.
  • FIGS. 4A to 4C are schematic interface diagrams of forward control of application screen projection provided by an embodiment of the present application.
  • 4D to 4F are schematic interface diagrams of reverse control of application screen projection provided by an embodiment of the present application.
  • FIGS. 5A to 5B are interface schematic diagrams of home screen control provided by an embodiment of the present application.
  • 6A to 6B are schematic interface diagrams of application screen projection provided by an embodiment of the present application.
  • FIG. 7A to 7E are schematic interface diagrams of interface projection provided by an embodiment of the present application.
  • FIGS. 7F to 7H are schematic interface diagrams of reverse control of interface projection provided by an embodiment of the present application.
  • FIG. 7I to FIG. 7K are interface schematic diagrams of forward control of interface projection according to an embodiment of the present application.
  • FIGS. 8A to 8D are schematic interface diagrams of home screen control provided by an embodiment of the present application.
  • FIGS. 9A to 9B are schematic interface diagrams of interface projection provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a software architecture of an electronic device provided by an embodiment of the present application.
  • 11A is a schematic flowchart of triggering a floating window according to an embodiment of the present application.
  • 11B is a schematic flowchart of a triggering screen projection provided by an embodiment of the present application.
  • 11C is a schematic flowchart of screen projection control of a floating window provided by an embodiment of the present application.
  • FIG. 11D is a schematic flowchart of another method for controlling screen projection of a floating window according to an embodiment of the present application.
  • 11E is a schematic flowchart of another method for controlling screen projection of a floating window according to an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a screen projection method provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number 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 the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • FIG. 1A exemplarily shows a schematic structural diagram of a communication system 10 provided in an embodiment of the present application.
  • the communication system 10 includes an electronic device 100 , and a plurality of electronic devices connected with the electronic device 100 , such as the electronic device 200 and the electronic device 300 .
  • the electronic device 100 may be directly connected to the electronic device 200 through a short-range wireless communication connection or a local wired connection.
  • the electronic device 100 and the electronic device 200 may have a wireless fidelity (WiFi) communication module, an ultra wide band (UWB) communication module, a bluetooth (bluetooth) communication module, a near field communication module communication, NFC) communication module, one or more short-range communication modules among ZigBee communication modules.
  • WiFi wireless fidelity
  • UWB ultra wide band
  • a bluetooth (bluetooth) communication module a near field communication module communication, NFC) communication module, one or more short-range communication modules among ZigBee communication modules.
  • the electronic device 100 can detect and scan electronic devices near the electronic device 100 by transmitting signals through a short-range communication module (such as a Bluetooth communication module), so that the electronic device 100 can discover nearby electronic devices through a short-range wireless communication protocol.
  • Electronic devices establish wireless communication connections with nearby electronic devices, and transmit data to nearby electronic devices.
  • the electronic device 100 and the electronic device 200 may be connected to a local area network (LAN) through the electronic device 400 based on a wired or wireless fidelity (wireless fidelity, WiFi) connection.
  • the electronic device 400 may be a third-party device such as a router, a gateway, and a smart device controller.
  • the electronic device 100 and the electronic device 200 may also be indirectly connected through at least one electronic device 500 in the wide area network.
  • the electronic device 500 may be a hardware server or a cloud server embedded in a virtualized environment. It can be understood that, through the electronic device 400 and/or the electronic device 500 , the electronic device 100 can indirectly perform wireless communication connection and data transmission with the electronic device 200 .
  • the structure shown in this embodiment does not constitute a specific limitation on the communication system 10 .
  • the communication system 10 may include more or fewer devices than shown.
  • the electronic device 100 may send the projected image data and/or audio data to the electronic device 200 , and the electronic device 200 may send the data based on the electronic device 100 For interface display and/or audio output.
  • FIG. 1B shows a schematic diagram of screen projection communication between the electronic device 100 and the electronic device 200 .
  • both the electronic device 100 and the electronic device 200 include a display management module and a screen projection management module.
  • the display management module is used to manage the life cycle of the interface display of the electronic device, decide how to control its logical display according to the currently connected physical display and/or virtual display, and send notifications to the system and applications when the display state changes, etc. Wait.
  • the display management module includes a main screen display area.
  • the physical display screen (also referred to as the main screen) of the electronic device can display the interface according to the image data of the application running in the display area of the main screen (for example, Default Display0).
  • the electronic device can also use the display management module to create at least one extended display area, and each extended display area corresponds to a virtual display screen; and can migrate a specified application running in the display area of the main screen or a specified application program window to Extend the display area (eg Extend Display1).
  • a specified application running in the display area of the main screen or a specified application program window to Extend the display area (eg Extend Display1).
  • the screen projection management module is used to obtain the image data of the screen projection from the display management module. Exemplarily, as shown in FIG. 1B , after the screen projection management module obtains image data 1 from Extend Display1 and determines that the screen projection target end is the electronic device 200, the screen projection management module sends the image data to the electronic device 200 through the wireless port (or wired port). Send image data 1.
  • the screen projection management module of the electronic device 200 receives the image data 1 through a wireless port (or a wired port), and sends the above-mentioned image data 1 to the main screen display area (or the extended display area) of the display module of the electronic device 200 ), the electronic device 200 performs screen projection display based on the image data 1 in the main screen display area (or the extended display area).
  • the electronic device 200 may also not have an extended display area, which is not specifically limited in this embodiment of the present application.
  • the application window may be an application window in an Android system, an application window in an IOS system, or an application window in other operating systems, which is not specifically limited here.
  • An application includes multiple application windows, and one application window corresponds to one or more user interfaces.
  • the application window may be referred to as a window for short in this embodiment of the present application.
  • the window may also be regarded as a composite control.
  • the embodiments of the present application do not specifically limit the types of the electronic device 100 and the electronic device 200 .
  • the electronic device 100 and the electronic device 200 involved in the embodiments of the present application may be mobile phones, wearable devices (eg, smart bracelets, smart watches), tablet computers, laptop computers (laptop), handheld Computers, laptops, in-vehicle devices, smart TVs, ultra-mobile personal computers (UMPCs), cellular phones, personal digital assistants (PDAs), augmented reality (AR) ⁇ virtual Devices such as virtual reality (VR) devices.
  • the electronic device 200 may also be a projection device such as a projector. Exemplary embodiments of electronic device 100 and electronic device 200 include, but are not limited to, onboard or other operating systems.
  • FIG. 2 shows a schematic structural diagram of an exemplary electronic device 100 provided by an embodiment of the present application.
  • the hardware structures of the electronic device 200 and the electronic device 300 reference may be made to the relevant embodiments of the hardware structure of the electronic device 100, and details are not described herein again.
  • 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 charge 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 jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope 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 structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) 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 (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may 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 a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • 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 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • 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.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the 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) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • 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 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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), broadband 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 (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is 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.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be 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).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a 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 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits 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, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may 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 transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it 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 and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronization Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth-generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.
  • non-volatile memory can include disk storage devices, flash memory (flash memory). Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • the random access memory may be directly readable and writable by the processor 110, may be used to store executable programs (eg, machine instructions) of an operating system or other running programs, and may also be used to store user and application data, etc.
  • the non-volatile memory can also store executable programs and store data of user and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as 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 realize the data storage function. For example, save music, video, etc. files in external non-volatile memory.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals.
  • Speaker 170A also referred to as a “speaker” is used to convert audio electrical signals into sound signals.
  • the receiver 170B also referred to as “earpiece”, is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, 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 according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (for example, the directions in which the three axes in the x, y, and z three-axis coordinate system of the electronic device 100 point).
  • the electronic device 100 can measure the distance through infrared or laser.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • LEDs light emitting diodes
  • photodiodes such as photodiodes
  • 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 fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect the temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided via display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the touch screen of the electronic device 100 may receive an input operation for triggering an application or a user interface to be displayed in a floating window. In some embodiments, the touch screen of the electronic device 100 may also receive a screen-casting operation for triggering an application, a user interface, and/or a floating window.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal and the blood pressure beating signal of the vibrating bone mass of the human voice.
  • the key 190 may be a mechanical key or a touch key.
  • 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 .
  • FIG. 3A shows the main interface 11 on the electronic device 100 for displaying the application programs installed by the electronic device 100 .
  • the home interface 11 may include a status bar 201, a calendar indicator 202, a weather indicator 203, a tray 204 with icons of frequently used applications, and other application icons 205. in:
  • a tray 204 with icons of frequently used applications may display: a phone icon, a contact icon, a text message icon, a camera icon.
  • Other application icons 205 may display: payment icon, album icon, music icon 205A, home icon, mailbox icon, cloud sharing icon, memo icon, settings icon.
  • User interface 10 may also include page indicators 206 .
  • Other application icons may be distributed across multiple pages, and the page indicator 206 may be used to indicate which page of the application the user is currently viewing. Users can swipe left and right in the area of other application icons to view application icons in other pages.
  • FIG. 3A only exemplarily shows the user interface on the electronic device 100 , and should not constitute a limitation to the embodiments of the present application.
  • Scenario 1 In this scenario, in response to the user's input operation, the electronic device 100 superimposes and displays the floating window 1 on the display content of the main screen, displays the application 1 in the floating window 1, and can cast the display content of the application 1 in the floating window 1 to the display. screen to the electronic device 200 .
  • the user can view the application 1 being screened in real time in the floating window 1 , control the application 1 in the forward direction on the electronic device 100 , and control the application 1 in the reverse direction on the electronic device 200 .
  • the music icon 205A shown in FIG. 3A may receive a user's input operation (eg, a touch operation), and in response to the above input operation, the electronic device 100 may display the user interface 12 of the music application shown in FIG. 3B .
  • a user's input operation eg, a touch operation
  • the electronic device 100 when the electronic device displays the user interface 12 of the music application, the electronic device 100 detects an application suspending operation acting on the music application; as shown in FIG. 3C , in response to the above application suspending operation, the electronic device 100 displays a floating window
  • the music application 1 is run in the form, and the floating window 1 corresponding to the music application 1 is stacked and displayed on the main interface 11 , and the display content of the floating window 1 is the user interface 12 of the reduced music application.
  • the above application hovering operation may be two fingers of the user sliding on the display screen 194 as shown in FIG. 3B , and the touch positions of the two fingers on the display screen gradually approach during the sliding process.
  • the embodiment of the present application may also trigger the electronic device 100 to display the suspension window 1 corresponding to the music application through other input operations, which is not specifically limited here.
  • the electronic device 100 may further adjust the size of the user interface displayed in the floating window 1 based on the size of the floating window 1 , so that the user interface adapts to the size of the floating window 1 .
  • the electronic device 100 displays the user interface 12 of the music application in full screen based on the image data corresponding to the main screen display area (ie Default Display0); the electronic device 100 responds to the Apply the suspension operation, create an extended display area (for example, Extend Display1) corresponding to the music application, and move the music application from the main screen display area to the extended display area 1; the electronic device 100 runs the remaining applications except the music application in the main screen display area (including desktop applications).
  • the main screen display area ie Default Display0
  • Extend Display1 for example, Extend Display1
  • the main screen of the electronic device 100 determines the display content of the above-mentioned main screen (for example, the main interface 11 of the desktop application) based on the application program windows of the remaining applications running recently in the display area of the main screen;
  • the application program window of the application determines the display content of the floating window 1 (ie, the user interface 12 ); the electronic device 100 superimposes and displays the floating window 1 on the display content of the main screen.
  • the extended display area 1 is used to run the music application, that is, the floating window 1 can be used to display the user interface corresponding to any application window of the music application.
  • the electronic device 100 in response to the received input operation, may further adjust the display position and/or size of the floating window 1 on the display screen 194 .
  • This embodiment of the present application does not specifically limit the above input operation.
  • the electronic device 100 may receive a user's screen projection operation, and in response to the above screen projection operation, the electronic device 100 may project the display content of the floating window 1 or the display content of the main screen to the electronic device 200 .
  • the electronic device 100 receives the user's downward sliding operation on the status bar 201, and in response to the above sliding operation, the electronic device 100 displays the notification bar interface 13 shown in FIG. 3E, and the notification bar interface includes: A plurality of commonly used shortcut icons 207, such as the WLAN icon, the Bluetooth icon, and the screen-casting icon 207A shown in FIG. 3E, etc.
  • the screen-casting icon 207A can receive an input operation from the user, and in response to the above-mentioned input operation, the electronic device 100 displays the screen-casting selection interface 14 shown in FIG. 3F .
  • the screen projection selection interface can be used to select the screen projection content and/or the screen projection target terminal, and can also display the screen projection content that has been screened currently by the electronic device 100 and the screen projection target terminal corresponding to the screen projection content.
  • the projection selection interface 14 may include one or more projection content options and one or more projection destination options.
  • the above-mentioned one or more screen projection content options may include a content option 208A corresponding to the main screen, and/or a content option corresponding to at least one floating window (for example, a content option 208B corresponding to the floating window 1); the above one or more The screen projection target options may include electronic device 200 and electronic device 300 .
  • the electronic device 100 may project at least one type of screen projection content to at least one projection target end.
  • the electronic device 100 may also project the display content corresponding to the content option 208B to the electronic device 200 and the electronic device 300; the electronic device 100 may project the display content corresponding to the content option 208A and the content option 208B to the electronic device 200; The electronic device 100 may project both the display contents corresponding to the content option 208A and the content option 208B to the electronic device 200 and the electronic device 300 .
  • the electronic device 100 may project at least one type of screen projection content to at least one projection target end.
  • the electronic device 100 may also project the display content corresponding to the content option 208B to the electronic device 200 and the electronic device 300; the electronic device 100 may project the display content corresponding to the content option 208A and the content option 208B to the electronic device 200;
  • the electronic device 100 may project both the display contents corresponding to the content option 208A and the content option 208B to the electronic device 200 and the electronic device 300 .
  • the projection selection interface 14 may also include a determination control 209 .
  • the electronic device 100 responds to an input operation (such as a touch operation) for the determination control 209, and changes the display content of the home screen (such as the home interface 11) It is sent to the electronic device 300, and the electronic device 300 displays the main interface 11 shown in FIG. 3G. 3H and FIG.
  • the electronic device 100 sends the display content of the floating window 1 (eg, the user interface 12) in response to the input operation for the determination control 209
  • the electronic device 200 displays the user interface 12 shown in FIG. 3I.
  • the electronic device 100 may display at least one screen currently projected to the electronic device 300 on the screen projection selection interface 14 Content options (eg, content options 210 for the home screen).
  • the electronic device 100 projects the image data of the music application running in the extended display area 1 corresponding to the floating window 1 to the screen. screen to the electronic device 200 ; if the user chooses to project the display content of the main screen to the electronic device 200 , the electronic device 200 projects the image data of the application running in the display area of the main screen to the electronic device 200 .
  • the electronic device 200 can scale the user interface sent by the electronic device 100 according to the size of the display screen of the device, and can also perform adaptive layout of the controls in the user interface sent by the electronic device 100, so that the above display
  • the controls in the content are adaptively displayed on the display screen of the electronic device 200, which is not specifically limited here.
  • the electronic device 100 can obtain the size 1 of the screen projection display of the electronic device 200, and the electronic device 100 adjusts the user interface to be projected to the size 1 above. sent to the electronic device 200 .
  • the embodiment of the present application may also trigger the electronic device 100 to display the screen projection selection interface 14 through other user operations.
  • the electronic device 100 receives a two-finger sliding operation on the display screen 194 by the user, and in response to the sliding operation, the electronic device displays the screen projection selection interface 14 .
  • the electronic device 100 in 3C may also directly respond to the user's screen projection operation, and project the specified screen projection content to the screen projection target end.
  • the electronic device 100 in response to the received screen projection operation 1, projects the display content of the floating window 1 to the electronic device 200; in response to the received screen projection operation 2, the electronic device 100 displays the display content of the main screen. Project the screen to the electronic device 200 .
  • the screen projection operation 1 may draw a "Z" shape on the display screen 194 for the user's knuckles
  • the screen projection operation 2 may be for the user's knuckles to draw an "O" shape on the display screen 194 .
  • the user can switch the content options projected onto the electronic device 200 through the electronic device 100 or the electronic device 200 .
  • the electronic device 100 may switch the projection content for the electronic device 200 to the display content of the main screen in response to the received switching operation.
  • the electronic device 200 may, in response to the received switching operation, send an instruction 1 to the electronic device 100, where the instruction 1 is used to instruct the electronic device 100 Toggle the content option of the projection screen to display the content of the main screen.
  • the above-mentioned instruction 1 includes touch information of the above-mentioned switching operation (for example, touch coordinates, touch duration and/or touch trajectory, etc.), and the electronic device 100 determines the event triggered by the above-mentioned switching operation based on the touch information of the above-mentioned switching operation It is a content option for switching the screen projected to the electronic device 200 .
  • touch information of the above-mentioned switching operation for example, touch coordinates, touch duration and/or touch trajectory, etc.
  • the user can forwardly control the music application through the floating window 1 on the electronic device 100 .
  • user interface 12 includes controls 301 .
  • the control 301 can receive the user's input operation (such as a touch operation), and in response to the above-mentioned input operation, the electronic device 100 displays the song playing interface 15 of the music application shown in FIG.
  • the image data is sent to the electronic device 200 .
  • the electronic device 200 displays the song playing interface 15 shown in FIG. 4C .
  • the electronic device 100 After receiving the input operation acting on the display area of the floating window, the electronic device 100 converts the relative coordinate 1 of the above input operation on the music application displayed in full screen; the electronic device 100 determines the extended display area 1.
  • the application window of the recently run music application corresponds to the user interface 12, and the electronic device 100 determines that the above-mentioned input operation is a touch operation acting on the control 301 in the user interface 12 based on the above-mentioned relative coordinates 1 and the interface layout of the user interface 12; Due to the above touch operation, the electronic device 100 runs the song playing interface 15 of the music application in the extended display area 1, and displays the song playing interface 15 in the floating window based on the image data of the song playing interface 15 running in the extended display area 1; The device 100 transmits the image data of the song playing interface 15 running in the extended display area 1 to the electronic device 200 .
  • the user can reversely control the music application on the electronic device 200 through the user interface displayed by the screen projection.
  • user interface 12 further includes controls 302 .
  • the control 302 may receive a user's input operation (eg, a touch operation), and in response to the above-mentioned input operation, the electronic device 200 sends the touch information of the above-mentioned input operation to the electronic device 100 .
  • the electronic device 100 displays the playlist interface 16 of the music application shown in FIG. 4E in the floating window 1, and sends the image data corresponding to the playlist interface 16 to the electronic device 200.
  • the electronic device 200 displays the playlist interface 16 shown in FIG. 4F.
  • the electronic device 100 After receiving the touch information of the input operation sent by the electronic device 200, the electronic device 100 converts the relative coordinates 1 of the above-mentioned input operation on the music application displayed on the full screen of the electronic device 100; the electronic device 100 It is determined that the application window of the music application running recently in the extended display area 1 corresponds to the user interface 12, and based on the above-mentioned relative coordinates 1 and the interface layout of the user interface 12, it is determined that the above-mentioned input operation is a touch operation acting on the control 302 in the user interface 12; Furthermore, in response to the above touch operation, the electronic device 100 runs the playlist interface 16 of the music application in the extended display area 1 , displays the playlist interface 16 in the floating window, and sends the image data of the playlist interface 16 to the electronic device 200 .
  • the user can manipulate the display content of the application corresponding to the floating window without affecting the display content of the main screen; otherwise, the user can also The display content of the main screen can be manipulated without affecting the display content of the floating window.
  • the main interface 11 displayed on the main screen displays the icon 205B of the album, and in response to the input operation for the icon 205B of the album, the electronic device 100 displays the user interface 17 of the album application, and in the user interface 17 continues to display the floating window 1 in a superimposed manner.
  • the user can also directly project the application 1 on the electronic device 100 to the electronic device 200 without first calling up the floating window corresponding to the application 1, and the user can control the application 1 on the electronic device 100 forward.
  • the application 1 can also be reversely controlled on the electronic device 200 .
  • the electronic device 100 displays a screen projection selection interface 20 , and the screen projection selection interface 20 includes content options 303A corresponding to the home screen.
  • Content options corresponding to at least one application such as content options 303B corresponding to music applications and content options 303C corresponding to photo album applications
  • options corresponding to at least one screen projection target such as electronic device 200 and electronic device 300
  • confirmation control 207A is an application currently running in the foreground and the background of the electronic device 100 .
  • the user selects the content option 303B corresponding to the music application and the electronic device 200, and in response to the input operation for the confirmation control 207A, the electronic device 100 creates an extended display area (for example, Extend Display1) corresponding to the music application, and displays the music application from the main screen display area.
  • the electronic device 100 runs the remaining applications (including desktop applications) except the music application in the display area of the main screen; then, the electronic device 100 sends the image data of the music application running in the extended display area to the electronic device 200 .
  • the image data of the above-mentioned music application may be image data corresponding to the application program window of the music application running recently, or may be image data of the home page of the music application.
  • the electronic device 200 displays the home page of the music application as shown in FIG. 6B , ie, the user interface 12 , based on the image data sent by the electronic device 100 .
  • the user can reversely control the music application on the electronic device 200 through the user interface 12 displayed on the screen, or open the music application on the electronic device 100 to control the music application forward.
  • the relevant embodiments in FIGS. 4A to 4F which will not be repeated here.
  • the embodiment of the present application can also directly project the screen of the designated application to the screen projection target end through other screen projection methods.
  • Scenario 2 In this scenario, in response to the user's input operation, the electronic device 100 can superimpose and display the display content of the home screen and the floating window 2.
  • the floating window 2 is used to display the application window 1 of the application 1, and the application in the floating window can be displayed.
  • the display content of the program window 1 is projected to the electronic device 200 .
  • the user can view the application window 1 being projected in real time in the floating window 2 , control the application window 1 forward on the electronic device 100 , and control the application window 1 reversely on the electronic device 200 .
  • the application window 1 may be the application window of the application 1, or may be an application sub-window embedded in the application window of the application 1.
  • the application sub-window may also be referred to as an application window.
  • FIG. 7A shows a video conference interface 18
  • the video conference interface 18 includes a conference name 401 , a menu bar 402 and video call content 19 .
  • the menu bar 402 includes a plurality of controls for controlling the video conference, such as a mute control, a speaker control, an end conference control, a switch camera control and a recording control, and the like.
  • the video call content 19 includes at least one display area, eg, display area 403A, display area 403B, and display area 403C.
  • the display area 403A can be used to display the image captured by the camera of the electronic device 100;
  • the display area 403B can be used to display the image captured by the camera of the electronic device of the video contact 1;
  • the display area 403C can be used to display the electronic device of the video contact 2 image captured by the camera.
  • the electronic device 100 can receive the user's interface suspending operation on the video call content 19; as shown in FIG. 7B, in response to the above interface suspending operation, the electronic device 100 suspends
  • the video call content 19 of the conference application is run in the window form, and the floating window 2 corresponding to the video call content 19 is stacked and displayed on the user interface 18 , and the displayed content of the floating window 2 is the reduced video call content 19 .
  • the area of the video conference interface 18 shown in FIG. 7B where the video call content 19 is originally displayed may display a blank area (eg, a black blank area or a white blank area).
  • the video call content 19 may be an application sub-window embedded in the application window corresponding to the video conference interface 18 .
  • the video call content 19 includes the hovering control 404 shown in FIG. 7A
  • the interface hovering operation may be a touch operation acting on the hovering control 404 .
  • the embodiment of the present application may also trigger the electronic device 100 to display the suspension window 2 through other input operations, which is not specifically limited here.
  • the electronic device 100 creates an extended display area 1 corresponding to the video call content 19 in response to the interface hovering operation for the video call content 19, and changes the application window 1 corresponding to the video call content 19 from the
  • the main screen display area is moved to the extended display area 1; the main screen of the electronic device 100 runs the application windows in the conference application except the application window 1 corresponding to the video call content 19 and the remaining applications (including desktop applications) except the conference application.
  • the main screen of the electronic device 100 determines the display content of the main screen based on the image data corresponding to the most recently running application window in the main screen display area.
  • the extended display area 1 is used to run the application window 1 corresponding to the video call content 19 of the conference application, and the floating window 2 can be used to display the display content corresponding to the above application window 1 .
  • the electronic device 100 may receive a user's screen projection operation, and in response to the above screen projection operation, the electronic device 100 may project the display content of the floating window 2 or the display content of the main screen to the electronic device 200 .
  • the user calls up the screen projection selection interface 14 shown in FIG. 7C , and the screen projection selection interface 14 includes content options corresponding to the floating window 2 .
  • the electronic device 100 responds to the input operation on the control 209 and displays the image of the video call content 19 in the floating window 2.
  • the data is sent to the electronic device 200 , and the electronic device 200 displays the video call content 19 shown in FIG. 7D based on the image data sent by the electronic device 100 .
  • the electronic device 100 displays the screen projection control 405 of the video call content 19 as shown in FIG. 7E .
  • the screen projection control 405 can receive the user's input operation, and in response to the above input operation, the electronic device can directly project the display content of the floating window 2 to a specific screen projection destination.
  • the embodiments of the present application may also perform screen projection through other screen projection methods.
  • the electronic device 100 can adjust the size of the video call content 19 displayed in the floating window 2 based on the size of the floating window 2 , so that the video call content 19 shown in FIG. 7B fits the size of the floating window 2 .
  • the electronic device 100 can also adjust the size of the video call content 19 projected to the electronic device 200 based on the size of the electronic device 200 , so that the video call content 19 shown in FIG. 7D fits the size of the display screen of the electronic device 200 .
  • the user can control the video call content 19 in reverse on the electronic device 200 .
  • the user clicks on the display area 403B in the video call content 19 displayed by the electronic device 200 .
  • the electronic device 200 detects the above input operation and sends the touch information of the above input operation to the electronic device 100 .
  • the electronic device 100 determines that the above input operation is a click operation acting on the display area 403B; as shown in FIG.
  • the electronic device 100 switches the video of the display area 403A and the display area B source, that is, the image captured by the camera of the electronic device of the video contact 1 is displayed in the display area 403A, and the image captured by the camera of the electronic device 100 is displayed in the display area 403B; the image data of the video call content 19 after switching the display area is displayed in real time Send to the electronic device 200; the electronic device 200 displays the video call content 19 after switching the display area as shown in FIG. 7H.
  • the user can forwardly control the video call content 19 through the floating window 2 on the electronic device 100 .
  • the electronic device 100 can detect an input operation acting on the display area 403C shown in FIG. 7I ; as shown in FIG. 7J , in response to the above input operation, the electronic device 100 will switch the video of the display area 403A and the display area 403C. source, that is, the image captured by the camera of the electronic device of the video contact 2 is displayed in the display area 403A, and the image captured by the camera of the electronic device of the video contact 1 is displayed in the display area 403B; and the video call content after switching the display area 19
  • the image data is sent to the electronic device 200; the electronic device 200 displays the video call content 19 shown in FIG. 7K.
  • the user can manipulate the display content corresponding to the floating window 2 on the electronic device 100 without affecting the display content of the main screen. Conversely, the user can also control the display of the main screen without affecting the display content of the floating window.
  • the electronic device 100 displays the main interface 11 , and continues to superimpose and display the floating window 2 on the main interface 11 .
  • the floating window 2 is used to display the video call content 19 of the video conference application, and the user can also control the video call content 19 forwardly through the user interface of the video conference application displayed on the home screen.
  • the electronic device 100 includes, for example, a front camera and a rear camera
  • the display area 403A shown in FIG. 8B displays the image captured by the front camera of the electronic device 100
  • the menu bar 402 shown in FIG. 8B includes a switch camera control 402A.
  • the electronic device 100 switches the front camera of the video call to the rear camera, and the display area 403A displays the image captured by the rear camera shown in FIG. 8C; and the video after the camera is switched
  • the image data of the call content 19 is projected to the electronic device 200; the electronic device 200 displays the video call content 19 shown in FIG. 8D.
  • the electronic device 100 can project at least one type of screen projection content to at least one projection target end; the user can switch the projection screen to the electronic device 200 through the electronic device 100 or the electronic device 200 The user can adjust the display position and/or display size of the floating window 2 on the display screen 194 .
  • the user can directly project the image data corresponding to the specific application program window of the application 1 on the electronic device 100 to the electronic device 200 without first calling up the floating window corresponding to the above-mentioned specific application program window.
  • the user can forwardly control the display content corresponding to the above-mentioned specific application program window on the electronic device 100 , and can also reversely control the display content corresponding to the above-mentioned specific application program window on the electronic device 200 .
  • the above-mentioned specific application window is the application window 1 corresponding to the video display content 19 .
  • the video conference interface 18 displays a screen projection control 406 for the video display content 19; in response to an input operation for the screen projection control 406, the electronic device 100 creates an extended display area corresponding to the application window 1 (eg Extend Display1) , and move the application program window 1 from the main screen display area to the extended display area 1, and the electronic device 100 runs the remaining application program windows except the application program window 1 in the main screen display area; then, the electronic device 100 will run the extended display area.
  • the image data of the application window 1 is sent to the electronic device 200 ; the electronic device 200 displays the video display content 19 shown in FIG. 9B based on the image data of the application window 1 sent by the electronic device 100 .
  • the user can reversely control the video display content 19 displayed on the electronic device 200 through the screen projection, or the electronic device 100 displays the video display content 19, which in turn is positively controlled.
  • the electronic device 100 displays the video display content 19, which in turn is positively controlled.
  • the embodiment of the present application can also directly project the display content corresponding to the specified specific application window to the screen projection target end through other screen projection methods, all of which are here. No longer.
  • the electronic device 100 can create an extended display area for a specified application 1 (or a specified application window 1), so that the application 1 (or the application window 1) can be connected with the Other content running in the main screen display area is isolated. Since the display content of the home screen and application 1 (or application window 1) correspond to two independent display areas, the electronic device 100 can overlay and display Application 1 (or application window 1) on the floating window in response to the user's input operation. On the display content of the main screen, the image data corresponding to application 1 (or application program window 1) is projected to the projection target end, and the electronic device 100 can effectively realize the forward control of the display content of the floating window, and the projection.
  • the electronic device 100 in this embodiment of the present application performs screen projection display based on the image data corresponding to the main screen display area or the extended display area, which effectively avoids the situation of missed projections and multiple projections.
  • 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.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 10 shows a software architecture block diagram of the electronic device 100 provided by the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system can be divided into an application layer, an application framework layer, a hardware abstraction layer (HAL) layer and a kernel layer (kernel) from top to bottom.
  • HAL hardware abstraction layer
  • kernel layer kernel layer
  • the application layer includes a series of application packages, such as instant messaging applications, music, galleries, and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • the application framework layer may include a window management module, an application management module, an event management service (input manager service, IMS), a display management module, an image synthesis module, a screen projection selector, Screen projection management module and conversion module.
  • IMS input manager service
  • the window management module is used to manage the creation, display and hiding of application windows.
  • the application window may be an application window in an Android system, an application window in an IOS system, or an application window in other operating systems, which is not specifically limited here.
  • An application includes multiple application windows, and one application window corresponds to one or more user interfaces.
  • the application window may be referred to as a window for short in this embodiment of the present application.
  • the window management module includes a Window Manager Service (Window Manager Service, WMS), which is a system service of the android system and controls the display and hiding of all windows.
  • WMS assigns the interface (Surface) to all windows, manages the display order, size, position, etc. of the Surface, and controls the animation of the window. It is an important transfer station for the input system.
  • the application management module can be used to obtain the window ratio of the application window currently running by the application.
  • the application window is displayed on the display screen 194 in the form of a floating window
  • the size of the floating window is smaller than the size of the full-screen display of the application window
  • the window ratio of the floating window may refer to the floating window and the full-screen display window. size ratio.
  • the application management module includes an Activity Management Service (Activity Manager Service, AMS).
  • AMS is a system service of the Android system, which is used to control the reasonable scheduling and running of different applications in the system, and to control the Activity tasks. stack management.
  • the main responsibilities of AMS include unified scheduling of activities of various applications, management of application processes (process), management of memory, scheduling services (service), scheduling tasks (Task), querying the current running status of the system, and so on.
  • the application management module can determine whether the application is a top-level application running in the foreground, an application running in the foreground or an application running in the background according to the Activity task stack.
  • the event management module is used to manage the input events and event distribution of the whole system.
  • the event management module includes a touch monitoring module for monitoring and determining input events on the touch screen.
  • the touch monitoring module may determine the top-level activity of the application running in the foreground through AMS, and determine the input event corresponding to the above-mentioned touch operation in combination with the interface layout corresponding to the above-mentioned top-level activity and the original event corresponding to the touch operation.
  • the display management module is used to manage the physical display and/or virtual display of the electronic device 100 . Specifically, it is used to manage the life cycle of interface display, decide how to control its logical display according to the currently connected physical display screen and/or virtual display screen, and send notifications to the system and applications when the display state changes, and so on.
  • the display management module may include a main screen display area or an extended display area. For details, reference may be made to the relevant description of FIG. 1B , which will not be repeated here.
  • the image synthesis module is used for synthesizing images based on corresponding image data in the main screen display area and/or the extended display area.
  • the image synthesis module is configured to superimpose and display the floating window on the display content of the main screen, and synthesize the final display content of the display screen 194 .
  • the screencast selector is used to determine the screencast content.
  • the screencast content can be the image data corresponding to the application window running in the display area of the main screen, or the image data corresponding to the application window running in the extended display area (for example, Extend Display1).
  • the screen casting selector is also used to determine the screen casting target. In one implementation, referring to FIG.
  • the electronic device 100 may send a screen-casting request to the above-mentioned screen-casting target through a wireless port or a wired port, and after receiving the screen-casting After the target screen projection sends a screen projection response that agrees to screen projection, it sends the above-mentioned projection content to the above-mentioned screen projection target terminal.
  • the screen projection management module is used to obtain image data of the screen projection content from the display management module.
  • the conversion module is used to calculate the relative coordinates of the touch operation acting on the floating window, so that the user can positively control the display content in the floating window; it is also used to calculate the relative coordinates of the touch operation acting on the projected screen content displayed by the electronic device 200 , so that users can reversely control the projected content.
  • the kernel layer is the layer between hardware and software.
  • the HAL layer and the kernel layer can perform corresponding operations in response to functions called by the application framework layer.
  • the core layer may include an input system, a touch chip driver, a display driver, and the like.
  • the kernel layer may also include sensor drivers, camera drivers, audio drivers, and so on. Drivers are used to abstract the hardware to hide specific channels of the hardware so that applications can access (or call) the hardware.
  • the electronic device 100 detects a hovering operation for the target floating object, and in response to the above-mentioned hovering operation, the electronic device 100 superimposes and displays a floating window on the display content of the main screen, and the floating window is used to display the display corresponding to the target floating object content.
  • the above-mentioned target suspension object may be a designated application (for example, the aforementioned music application), and accordingly, the above-mentioned suspension operation may be the above-mentioned application suspension operation; the above-mentioned target suspension object may also be a designated application of an application.
  • the aforementioned hovering operation may be the aforementioned interface hovering operation.
  • the program window e.g. the aforementioned video display area 19
  • the aforementioned hovering operation may be the aforementioned interface hovering operation.
  • FIG. 11A Exemplarily, for the specific implementation process of the electronic device 100, reference may be made to FIG. 11A . in:
  • the touch sensor 180K receives the touch operation 1 (eg, the user's hovering operation), and the corresponding hardware interrupt is sent to the touch chip, and the touch chip sends the touch information of the touch operation to the touch control of the core layer.
  • the touch chip driver sends the above touch information to the input system, and the input system processes the above touch operation 1 into an original input event (including touch coordinates, touch time and/or touch track and other information), and the original input event is stored in the kernel layer.
  • the event management module obtains the original input event from the kernel layer, and determines the above-mentioned original input event in combination with the interface layout corresponding to the recently run application window for triggering the floating window of the target floating object.
  • the event management module distributes the event to the window management module; the window management module instructs the display management module to create an extended display area corresponding to the target floating object.
  • the display management module creates the extended display area corresponding to the target floating object, namely Extentd Display1, and instructs the window management service to complete the creation of the floating window of the target floating object.
  • the display management module obtains the image data corresponding to the target floating object from the window management module, and caches it in Extentd Display1.
  • the image synthesis module obtains the display content of the main screen from the main screen display area in the display management module, obtains the display content of the floating window from Extentd Display1, and superimposes and displays the floating window on the display content of the main screen to synthesize the display content 1.
  • the image synthesis module sends the display content 1 to the display module, and the display module invokes the display driver to send the display content to the display screen 194 .
  • the electronic device 100 detects a screen projection operation for the target screen projection content, and in response to the above screen projection operation, the electronic device acquires image data of the target screen projection content from the display area corresponding to the target screen projection content, and sends the image data to the target projection content. to the target screen.
  • the above-mentioned target projection content can be the main screen, and correspondingly, the display area corresponding to the target projection content is the main screen display area; the above-mentioned target projection content can also be a floating window, correspondingly, the target projection content can be a floating window.
  • the display area corresponding to the projected content is Extentd Display1.
  • FIG. 11B Exemplarily, for the specific implementation process of the electronic device 100, reference may be made to FIG. 11B . in:
  • the touch sensor 180K receives the touch operation 2 (that is, the user's screen projection operation), the corresponding hardware interrupt is sent to the touch chip, and the touch chip driver sends the touch information of the above touch operation 2 to the input system, and the input system sends the touch information to the input system.
  • the above touch operation 2 is processed into an original input event.
  • the event management module obtains the original input event from the kernel layer, and determines that the above-mentioned original input event is used to trigger the screen projection of the target screen projection content in combination with the interface layout corresponding to the recently run application window.
  • the event management module indicates the above-mentioned target screen projection content to the screen projection selector; the screen projection selector determines the display area 1 (that is, the main screen display area or Extentd Display1) corresponding to the above-mentioned target screen projection content, and instructs the display management module based on the display area 1.
  • the image data is projected; the display management module sends the image data of the display area 1 to the projection management module; the projection management module sends the image data to the projection target through the wired port or the wireless port.
  • the electronic device 100 detects a touch operation 3 on the display content 2 of the target floating object in the floating window, and in response to the above touch operation 3, the electronic device 100 displays the display corresponding to the target floating object in the floating window Content 3.
  • the above-mentioned target floating object may be a designated application, for example, the target floating object is the aforementioned music application, the display content 2 is the user interface 12, and the above-mentioned touch operation 3 is the touch operation acting on the control 301.
  • the display content 3 is the song list interface 16; the above-mentioned target floating object can also be a user interface corresponding to the designated application program window 1 of an application, for example, the target floating object is the aforementioned video display content 19, and the display content 2 is shown in Figure 7I
  • the above-mentioned touch operation 3 is a touch operation on the display area 403C shown in FIG. 7I
  • the display content 3 is the video display content 19 shown in FIG. 7J.
  • the user interface 2 is displayed in the floating window, and the specific implementation process of the electronic device 100 may refer to FIG. 11C . in:
  • the touch sensor 180K receives touch operation 3, a corresponding hardware interrupt is sent to the touch chip, the touch chip driver sends the touch information of the above touch operation 3 to the input system, and the input system sends the above touch Control operation 3 is processed into the original input event.
  • the event management module obtains the original input event from the kernel layer, and determines that the above-mentioned touch operation 3 acts on the floating window based on the touch coordinates in the original input event.
  • the event management module sends the touch coordinates of the touch operation 3 to the window management module, instructing to obtain the relative coordinate 1 of the original touch coordinates of the touch operation 3, and the relative coordinate 1 refers to the relative touch of the touch operation 3 on the user interface 2 displayed on the full screen Coordinates, user interface 2 is the current display content of the floating window.
  • the window management module calculates the relative coordinates 2 of the touch operation 3 in the floating window based on the coordinate system of the floating window and the display position of the floating window on the display screen 194, and sends the relative coordinates 2 to the conversion module; the conversion module obtains from the application management module The window ratio of the floating window, and based on the window ratio and relative coordinates 2, the relative coordinates 1 of the touch operation 3 are converted, and the conversion module sends the relative coordinates 1 of the touch operation 3 to the event management module; the event management module is based on the touch operation 3.
  • the relative coordinates 1 of 1, and the interface layout of the user interface 2 running in the Extentd Display1, determine that the touch operation 3 is a touch operation that acts on the control 1 of the user interface 2; the event management module determines that the above-mentioned touch operation 3 is used to trigger the suspension
  • the window displays the display content 3 of the target floating object.
  • the coordinate system of the main screen is the xy coordinate system shown in FIG. 11D
  • the coordinate system of the floating window is the ab coordinate system shown in FIG. 11D
  • the coordinates (0, 0) in the ab coordinate system of the floating window correspond to the coordinates (x1, y1) in the xy coordinate system of the main screen.
  • the electronic device 100 detects that the touch coordinates of the touch operation 3 include coordinates (x2, y2), the relative coordinates 2 of the electronic device 100 converted coordinates (x2, y2) in the floating window are (x2-x1, y2-y1), Then, based on the floating window ratio c and the relative coordinate 2, the relative coordinate 1 of the above-mentioned coordinates (x2, y2) on the full-screen displayed user interface 2 is converted to (c(x2-x1), c(y2-y1)).
  • the electronic device 200 detects the touch operation 4 on the display content 4 in the screen projection window, and the electronic device 200 sends the touch information of the touch operation 4 to the electronic device 100 .
  • the above-mentioned display content 4 may be the current display content of the home screen or the floating window of the electronic device 100 .
  • the electronic device 100 determines, based on the touch information of the touch operation 4, that the above-mentioned touch operation 4 is used to trigger the electronic device 100 to switch the projected screen content to the display content 5; in response to the above-mentioned touch operation 4, the electronic device 100 switches the display of the main screen or the floating window
  • the content is display content 5 , and the display content 5 is projected to the electronic device 200 .
  • the above-mentioned target floating object may be a designated application, for example, the target floating object is the aforementioned music application, and the display content 4 is the user interface 12 displayed on the screen of the electronic device 200 shown in FIG. 4D .
  • the control operation 4 is a touch operation acting on the control 302 in the user interface 12 displayed on the screen of the electronic device 200, and the display content 5 is the playlist interface 16;
  • the above-mentioned target floating object can also be a designated application program window 1 corresponding to an application
  • the target floating object is the aforementioned video display content 19
  • the display content 4 is the video display content 19 projected and displayed by the electronic device 200 shown in FIG.
  • the above touch operation 4 is to act on the display shown in FIG. 7F
  • the touch operation in the area 403B, the display content 5 is the video display content 19 shown in FIG. 7G and FIG. 7H .
  • the display content 4 is the user interface 2 of the main screen or the floating window, and the specific implementation process of the electronic device 100 may refer to FIG. 11E . in:
  • the relative coordinates of the touch operation 4 in the screen projection window are converted based on the display position of the screen projection window of the electronic device 200 on the display screen of the electronic device 200. 4 , and send the touch information of the touch operation 4 to the electronic device 100 , and the touch information of the touch operation 4 includes the relative coordinates 4 .
  • the electronic device 100 After receiving the touch information of the touch operation 4 sent by the electronic device 200, the electronic device 100 sends the touch information to the input system, and the input system processes the touch operation 4 into an original input event.
  • the event management module obtains the original input event from the kernel layer, and determines that the above-mentioned touch operation acts on the user interface 2 of the screen projection.
  • the event management module sends the relative coordinate 4 of the touch operation 4 to the window management module, instructing to obtain the relative coordinate 5 of the touch operation 4, and the relative coordinate 5 is the relative touch coordinate of the touch operation 4 on the user interface 2 displayed on the full screen.
  • the window management module sends the relative coordinates 4 to the conversion module, instructing to obtain the relative coordinates 5 of the touch operation 4;
  • the conversion module obtains the window ratio between the screen projection window displayed by the electronic device 200 and the window displayed in the full screen of the electronic device 100 from the application management module, And based on the window scale and relative coordinates 4, the relative coordinates 5 of the touch operation 4 are converted, and the conversion module sends the relative coordinates 5 of the touch operation 4 to the event management module;
  • the event management module is based on the relative coordinates 5 of the touch operation 4, and
  • the interface layout of the user interface 2 running in the Extentd Display1 of the main screen display area or the floating window it is determined that the touch operation 4 is a touch operation that acts on the control 1 of the user interface 2;
  • the electronic device 200 may also send the original touch coordinates of the touch operation 4 and the display position of the projection window on the display screen of the electronic device 200 to the electronic device 100, and then the electronic device 100 calculates the above-mentioned relative coordinates 4.
  • the relative coordinates 4 of the converted touch operation 4 in the screen projection window can refer to the calculation method of the relative coordinates 2 of the aforementioned touch operations 3, and the relative coordinates 5 of the converted touch operations 4 can be referred to the aforementioned relative coordinates 1 of the touch operation 3.
  • the calculation method will not be repeated here.
  • FIG. 10 is only an exemplary illustration of the software structural block diagram in the embodiment of the present application, and each layer of the software structural block diagram shown in FIG. 10 may also include other modules, which are not specifically limited here.
  • FIG. 12 exemplarily shows a screen projection method provided by an embodiment of the present application.
  • the above screen projection method includes but is not limited to steps S101 to S104, wherein:
  • the first electronic device superimposes and displays a floating window on the display content of the main screen, displays a first user interface in the floating window, the display content of the main screen is determined based on the image data of the display area of the main screen, and the display content of the floating window is based on the first The image data of the extended display area is determined.
  • the first electronic device may be the electronic device 100 in the foregoing embodiments
  • the second electronic device may be the electronic device 200 or the electronic device 300 in the foregoing embodiments.
  • the display content of the above-mentioned main screen may be the main interface 11 of the desktop application shown in FIG. 3C
  • the floating window may be the aforementioned floating window 1
  • the first user interface displayed by the floating window may be: User interface 12 of the music application shown in Figure 3C.
  • the above-mentioned main screen display area can be the aforementioned Default Display0
  • the above-mentioned main screen display area is used to run applications (such as desktop applications) other than the application running in the extended display area, and the main screen displays the main screen of the desktop application based on the image data of the application running in the main screen display area.
  • the above-mentioned first extended display area can be the aforementioned Extentd Display1, the first extended display area is used to run the music application, and the floating window 1 displays the user interface 12 based on the image data corresponding to the music application running in the first extended display area.
  • the display content of the above-mentioned main screen may be the video conference interface 18 of the conference application shown in FIG. 7B (the video conference interface 18 shown in FIG. 7B does not include the aforementioned video call content 19),
  • the floating window may be the aforementioned floating window 2
  • the first user interface displayed by the floating window may be the video call content 19 of the conference application shown in FIG. 7B .
  • the above-mentioned main screen display area can be the aforementioned Default Display0, and the above-mentioned main screen display area is used to run the application program window of the application except the application program window that the extended display area runs (for example, the application program window except the video call content 19 in the conference application, and the application program window of other applications except the conference application), the main screen displays the video conference interface 18 of the conference application based on the image data of the application that the main screen display area runs;
  • the above-mentioned first extended display area can be the aforementioned extended display area 1 (Extentd Display1) , the first extended display area is used to run the application window 1 corresponding to the video call content 19 in the conference application, and the floating window 1 displays the video call content 19 based on the image data corresponding to the application window 1 running in the first extended display area.
  • a first operation on the floating window is detected, and in response to the first operation, the first electronic device projects the display content of the floating window to the second electronic device based on the image data of the first extended display area.
  • the floating window (ie, the floating window 1) is used to display the music application based on the extended display area 1, and the first user operation may be the aforementioned screen projection operation.
  • the first user operation may be an input operation (eg, a touch operation) acting on the control 209 after the user selects the content option 208B corresponding to the floating window 1 and the electronic device 200 .
  • the electronic device 100 projects the image data of the music application running in the extended display area 1 corresponding to the floating window 1 to the electronic device. 200 ; if the user chooses to project the display content of the home screen to the electronic device 200 , the electronic device 200 projects the image data of the application running in the display area of the home screen to the electronic device 200 .
  • the floating window (ie, the floating window 2) is used to display the video call content 19 in the conference application based on the extended display area 1, and the first user operation may be the aforementioned screen projection operation.
  • the first user operation may be an input operation acting on the control 209 after the user selects the content option 208C corresponding to the floating window 2 and selects the electronic device 200 as the screen projection target.
  • the electronic device 100 projects the image data of the video call content 19 running in the extended display area 1 corresponding to the floating window 2 to the screen to the screen.
  • Electronic device 200 if the user chooses to project the display content of the home screen to the electronic device 200 , the electronic device 200 projects the image data of the application window of the application running in the display area of the home screen to the electronic device 200 .
  • the first electronic device switches the display content of the floating window to the second user interface based on the application window running in the first extended display area.
  • the second electronic device is the electronic device 200
  • the user interface 12 displayed on the screen of the electronic device 200 includes controls 302 .
  • the control 302 can receive a user's input operation (eg, a touch operation), and in response to the above-mentioned input operation, the electronic device 200 can send a first instruction to the electronic device 100, where the first instruction includes the touch information of the above-mentioned input operation.
  • the electronic device 100 switches the display content of the floating window 1 to the second user interface, that is, the playlist interface 16 of the music application shown in FIG. 4E ,
  • the image data corresponding to the playlist interface 16 is sent to the electronic device 200, and the electronic device 200 displays the playlist interface 16 shown in FIG. 4F.
  • the second electronic device is the electronic device 200
  • the video call content 19 projected and displayed by the electronic device 200 includes a display area 403B.
  • the display area 403B can receive the user's input operation (eg, touch operation), and in response to the above-mentioned input operation, the electronic device 200 can send a first instruction to the electronic device 100, where the first instruction includes the touch information of the above-mentioned input operation.
  • the electronic device 100 switches the video source of the display area 403A and the display area B in the video call content 19, that is, switches the display content of the floating window 1 to the first Second user interface (ie the video call content 19 shown in FIG. 7G ), and send the switched image data of the video call content 19 to the electronic device 200 , and the electronic device 200 displays the video call content 19 shown in FIG. 7H .
  • the above-mentioned first instruction includes a first coordinate acting on a second operation of the first user interface in the screen projection window displayed by the second electronic device; the above-mentioned first electronic device operates based on the first extended display area.
  • the application window switches the display content of the floating window to the second user interface, which specifically includes: the first electronic device determines, based on the first coordinates and the interface layout of the application window that has been run recently in the first extended display area, a second operation for switching The content displayed on the screen is the second user interface; the electronic device switches the display content of the floating window to the second user interface, and sends the image data of the second user interface to the second electronic device.
  • the second operation may be an input operation acting on the control 302 as shown in FIG. 4D
  • the most recently executed application window in the first extended display area is the user interface 12 of the music application. the corresponding application window.
  • the second operation may be an input operation acting on the display area 403B as shown in FIG. 7F , and the most recently executed application window in the first extended display area corresponds to the video call content 19. application window.
  • the first coordinates are the first original touch coordinates of the second operation on the display screen of the second electronic device; the first electronic device is based on the first coordinates and an application program recently run in the first extended display area
  • the interface layout of the window, determining that the second operation is used to switch the screen-casting display content to the second user interface specifically includes: based on the position of the screen-casting window on the display screen of the second electronic device, obtaining a first relative value of the first original touch coordinates Coordinates, the first relative coordinates are the relative coordinates of the first original touch coordinates in the screen projection window; based on the first relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device, it is determined that the first relative coordinates correspond to
  • the second relative coordinates are the relative coordinates of the first relative coordinates in the screen projection window in the full-screen display window of the first electronic device; based on the second relative coordinates and the most recently running application in the first extended display area
  • For the interface layout of the window it
  • the second operation may be the touch operation 4 described in FIG. 11E
  • the first coordinates are the original touch coordinates of the touch operation 4 detected by the electronic device 200
  • the first relative coordinates may be the aforementioned relative coordinates.
  • Coordinate 4 the second relative coordinate may be the aforementioned relative coordinate 5.
  • the first coordinates are the first relative coordinates of the first original touch coordinates of the second operation on the display screen of the second electronic device, and the first relative coordinates are the first original touch coordinates in the screen projection window relative coordinates;
  • the above-mentioned first electronic device based on the first coordinates and the interface layout of the application program window that has been run recently in the first extended display area, determines that the second operation is used to switch the screen-cast display content to the second user interface, which specifically includes: based on The first relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device, determine the second relative coordinates corresponding to the first relative coordinates, and the second relative coordinates are the first relative coordinates in the screen projection window in the first relative coordinates.
  • Relative coordinates in a full-screen display window of an electronic device based on the second relative coordinates and the interface layout of the application window that has been run recently in the first extended display area, determine that the second operation is used to switch the display content of the floating window to the second user interface.
  • the second electronic device after the second electronic device detects the touch operation 4, it can calculate the relative coordinates 4 of the original touch coordinates of the touch operation 4, and carry the above-mentioned first instruction in the first instruction sent to the first electronic device. Relative coordinate 4; then the first electronic device determines that the second operation is used to switch the display content of the floating window to the second user interface based on the above-mentioned relative coordinate 4 and the interface layout of the most recently run application window in the first extended display area.
  • the first coordinates are second relative coordinates corresponding to the first original touch coordinates of the second operation on the display screen of the second electronic device, and the second relative coordinates are the first relative coordinates based on the first original touch coordinates
  • the relative coordinates, and the window ratio of the screen projection window and the full-screen display window of the first electronic device are determined; wherein, the first relative coordinates are the relative coordinates of the first original touch coordinates in the screen projection window, and the second relative coordinates are the projection screen
  • the first relative coordinates within the window are relative coordinates within the full-screen display window of the first electronic device.
  • the second electronic device after the second electronic device detects the touch operation 4, it can calculate the relative coordinate 4 of the original touch coordinates of the touch operation 4, and calculate the relative coordinate 5 corresponding to the relative coordinate 4, and then send it to
  • the first instruction of the first electronic device carries the above-mentioned relative coordinates 5; the first electronic device determines, based on the above-mentioned relative coordinates 5 and the interface layout of the application window that has been run recently in the first extended display area, the second operation is used to switch the floating window.
  • the display content is switched to the second user interface.
  • the method further includes: the first electronic device displays the first user interface of the first application program window of the first application; A third operation on the target floating object is detected, and the target floating object is the first application or the first application window; in response to the third operation, the first electronic device creates a first extended display area, and displays the target running in the main screen.
  • the floating object is migrated to the first extended display area; the above-mentioned first electronic device superimposes and displays the floating window on the display content of the main screen, which specifically includes: the first electronic device determines the floating window based on the image data of the target floating object running in the first extended display area
  • the display content of the main screen is determined based on the image data in the display area of the main screen, and the display content of the main screen is superimposed on the display content of the main screen to display the floating window.
  • the target floating object is the first application
  • the first extended display area is used to run the first application
  • the floating window is used to display the user interface of the first application based on the image data of the first extended display area
  • the target floating object is the first application window
  • the first extended display area is used to run the first application window
  • the floating window is used to display the user interface of the first application window based on the image data of the first extended display area.
  • the target floating object is the first application
  • the first application may be the aforementioned music application
  • the above-mentioned first user interface may be the user interface 12 shown in FIG. 3B .
  • the above-mentioned third operation may be the above-mentioned application hovering operation, for example, as shown in FIG. 3B , the user slides two fingers on the display screen, and the two fingers gradually approach during the sliding process.
  • the electronic device 100 creates an extended display area 1 corresponding to the music application, and migrates the music application in the main screen display area to the extended display area 1, and the floating window is used for the music application running based on the extended display area 1.
  • the image data displays the user interface of the music application.
  • the floating window 1 shown in FIG. 3C displays the user interface 12 based on the extended display area 1 .
  • the target floating object is the first application window
  • the first application window may be the application window corresponding to the aforementioned video call content 19
  • the user interface of the first application window may be: It is the video call content 19 shown in FIG. 7A .
  • the above-mentioned third operation may be the above-mentioned interface hovering operation, for example, the touch operation acting on the control 404 in the video call content 19 shown in FIG. 7A .
  • the electronic device 100 creates an extended display area 1 corresponding to the video call content 19, and migrates the video call content 19 in the display area of the main screen to the extended display area.
  • the image data of the video call content 19 shows the video call content 19 .
  • the floating window 2 shown in FIG. 7B displays the video call content 19 based on the extended display area 1 .
  • the method further includes: detecting an effect acting on the display of the floating window.
  • the fourth operation of the first user interface in response to the fourth operation, the first electronic device switches the display content of the floating window to the third user interface based on the first extended display area.
  • the projected content can be positively controlled through the floating window displayed by the first electronic device.
  • the user interface 12 shown in FIG. 4A is displayed in the floating window 1, and the user interface 12 includes the control 301.
  • the above-mentioned fourth operation may be a touch operation acting on the control 301 shown in FIG. 4A .
  • the electronic device 100 displays the song playing interface 15 of the music application shown in FIG. 4B based on the music application running in the extended display area 1. .
  • the video call content 19 shown in FIG. 7I is displayed in the floating window 2, and the video call content 19 includes a display area 403A and a display area 403C.
  • the above-mentioned fourth operation may be a touch operation acting on the display area 403C shown in FIG. 7I .
  • the electronic device 100 displays the video call content 19 shown in FIG. 7J based on the video call content 19 running in the extended display area 1. .
  • the first electronic device switches the display content of the floating window to the third user interface based on the first extended display area, which specifically includes: acquiring the second original touch coordinates of the fourth operation
  • the third relative coordinates are the relative coordinates of the second original touch coordinates in the floating window; based on the third relative coordinates, and the window ratio of the floating window and the full-screen display window of the first electronic device, determine the third relative coordinates
  • the fourth relative coordinate corresponding to the coordinate, and the fourth relative coordinate is the relative coordinate of the third relative coordinate in the full-screen display window of the first electronic device; based on the fourth relative coordinate and the interface of the most recently running application window in the first extended display area Layout, and determine that the fourth operation is used to switch the display content of the floating window to the third user interface.
  • the fourth operation may be the touch operation 3 described in FIG. 11C
  • the second original coordinates may be the original touch coordinates of the touch operation 3
  • the third relative coordinates may be the aforementioned relative coordinates 2
  • the first The four relative coordinates may be the aforementioned relative coordinates 1.
  • the display content of the main screen is a fourth user interface
  • the method further includes: detecting a fifth operation on the main screen, responding to In the fifth operation, the first electronic device projects the display content of the main screen to the second electronic device based on the image data in the display area of the main screen; receives a second instruction sent by the second electronic device for the fourth user interface displayed by the projection screen; In response to the second instruction, the first electronic device switches the display content of the home screen to the fifth user interface based on the most recently executed application window in the display area of the home screen.
  • the display content of the main screen may also be projected to the screen projection target, and the display content of the main screen of the first electronic device may be reversely controlled through the projection target.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • 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 includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
  • the modules in the apparatus of the embodiment of the present application may be combined, divided and deleted according to actual needs.

Abstract

公开了一种投屏方法及相关装置,所述方法包括:第一电子设备在主屏的显示内容上叠加显示悬浮窗口,悬浮窗口内显示第一用户界面,主屏的显示内容是基于主屏显示区的图像数据确定的,悬浮窗口的显示内容是基于第一扩展显示区的图像数据确定的;检测到针对悬浮窗口的第一操作,响应于第一操作,第一电子设备基于第一扩展显示区的图像数据将悬浮窗口的显示内容投屏到第二电子设备;接收第二电子设备发送的针对投屏显示的第一用界面的第一指令;响应于第一指令,第一电子设备基于第一扩展显示区运行的应用程序窗口将悬浮窗口的显示内容切换为第二用户界面。这样,能够有效实现投屏后的反向控制。

Description

一种投屏方法及相关装置
本申请要求于2021年3月31日提交中国专利局、申请号为202110352845.7、申请名称为“一种投屏方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种投屏方法及相关装置。
背景技术
目前,投屏技术通常基于图层过滤实现镜像投屏的内容过滤。例如,响应于用户操作,可以将应用1投屏至平板电脑。具体的,手机将所有图层合成并显示在手机上,同时选择应用1对应的图层进行过滤和合成,并将合成后的应用1的图像数据发送到平板电脑;平板电脑根可以据上述图像数据进行投屏显示。
然而,上述通过对镜像投屏的内容过滤和图像合成来实现投屏的传统方案,在投屏后难以准确实现反向控制。例如,针对平板电脑侧的反向控制的输入操作,需要手机基于手机前台运行的应用的界面布局对上述输入操作进行响应;然而,由于用户的输入操作意图作用的应用和手机当前进行前台运行的应用可能不一致,因此,不能准确实现投屏后的反向控制。
发明内容
本申请实施例提供了一种投屏方法及相关装置,能够有效实现投屏后的反向控制。
第一方面,本申请提供了一种投屏方法,所述方法包括:第一电子设备在主屏的显示内容上叠加显示悬浮窗口,悬浮窗口内显示第一用户界面,主屏的显示内容是基于主屏显示区的图像数据确定的,悬浮窗口的显示内容是基于第一扩展显示区的图像数据确定的;检测到针对悬浮窗口的第一操作,响应于第一操作,第一电子设备基于第一扩展显示区的图像数据将悬浮窗口的显示内容投屏到第二电子设备;接收第二电子设备发送的针对投屏显示的第一用界面的第一指令;响应于第一指令,第一电子设备基于第一扩展显示区运行的应用程序窗口将悬浮窗口的显示内容切换为第二用户界面。
实施本申请实施例,第一电子设备可以将悬浮窗口叠加显示在主屏的显示内容上,主屏基于主屏显示区的图像数据进行显示,悬浮窗口基于扩展显示区的图像数据进行显示。并可以基于扩展显示区将悬浮窗口的显示内容投屏至投屏目标端,还可以通过悬浮窗口实时观察投屏内容,还可以有效实现在投屏目标端对投屏内容(即悬浮窗口的显示内容)的反向控制。此外,本申请实施例中,基于扩展显示区对应的图像数据进行投屏显示,有效避免了传统图层过滤的投屏方案中的漏投、多投的情况。
在一种实现方式中,上述第一指令包括作用于第二电子设备显示的投屏窗口内第一用界面的第二操作的第一坐标;上述第一电子设备基于第一扩展显示区运行的应用程序窗口将悬浮窗口的显示内容切换为第二用户界面,具体包括:第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面;电子设备将悬浮窗口的显示内容切换为第二用户界面,并将第二用户界面的图像数据发送到第二电子设备。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标;上述第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面,具体包括:基于投屏窗口在第二电子设备显示屏上的位置,获取第一原始触摸坐标的第一相对坐标,第一相对坐标是第一原始触摸坐标在投屏窗口内的相对坐标;基于第一相对坐标,以及投屏窗口和第一电子设备的全屏显示窗口的窗口比例,确定第一相对坐标对应的第二相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第二相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标的第一相对坐标,第一相对坐标为第一原始触摸坐标在投屏窗口内的相对坐标;上述第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面,具体包括:基于第一相对坐标,以及投屏窗口和第一电子设备的全屏显示窗口的窗口比例,确定第一相对坐标对应的第二相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第二相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标对应的第二相对坐标,第二相对坐标是基于第一原始触摸坐标的第一相对坐标,以及投屏窗口和第一电子设备的全屏显示窗口的窗口比例确定的;其中,第一相对坐标是第一原始触摸坐标在投屏窗口内的相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标。
在一种实现方式中,上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之前,所述方法还包括:第一电子设备显示第一应用的第一应用程序窗口的第一用户界面;检测到针对目标悬浮对象的第三操作,目标悬浮对象为第一应用或第一用于程序窗口;响应于第三操作,第一电子设备创建第一扩展显示区,并将主屏中运行的目标悬浮对象迁移至第一扩展显示区;上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口,具体包括:第一电子设备基于第一扩展显示区运行的目标悬浮对象的图像数据确定悬浮窗口的显示内容,基于主屏显示区的图像数据确定主屏的显示内容,并在主屏的显示内容上叠加显示悬浮窗口。
在一种实现方式中,目标悬浮对象为第一应用,第一扩展显示区用于运行第一应用,悬浮窗口用于基于第一扩展显示区的图像数据显示第一应用的用户界面;或者,目标悬浮对象为第一应用程序窗口,第一扩展显示区用于运行第一应用程序窗口,悬浮窗口用于基于第一扩展显示区的图像数据显示第一应用程序窗口的用户界面。
在一种实现方式中,上述第一电子设备基于第一扩展显示区的图像数据将悬浮窗口的显示内容投屏到第二电子设备之后,所述方法还包括:检测到作用于悬浮窗口显示的第一用户界面的第四操作;响应于第四操作,第一电子设备基于第一扩展显示区将悬浮窗口的显示内容切换为第三用户界面。
在一种实现方式中,上述响应于第四操作,第一电子设备基于第一扩展显示区将悬浮窗口的显示内容切换为第三用户界面,具体包括:获取第四操作的第二原始触摸坐标的第三相对坐标,第三相对坐标是第二原始触摸坐标在悬浮窗口内的相对坐标;基于第三相对坐标, 以及悬浮窗口和第一电子设备的全屏显示窗口的窗口比例,确定第三相对坐标对应的第四相对坐标,第四相对坐标为第三相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第四相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第四操作用于切换悬浮窗口的显示内容切换为第三用户界面。
在一种实现方式中,主屏的显示内容为第四用户界面,上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之后,所述方法还包括:检测到针对主屏的第五操作,响应于第五操作,第一电子设备基于主屏显示区的图像数据将主屏的显示内容投屏到第二电子设备;接收第二电子设备发送的针对投屏显示的第四用界面的第二指令;响应于第二指令,第一电子设备基于主屏显示区最近运行的应用程序窗口将主屏的显示内容切换为第五用户界面。
本申请实施例中,由于主屏和悬浮窗口对应两个独立的显示区,用户可以操控悬浮窗口的显示内容,且不影响主屏的显示内容;反之,用户也可以操控主屏的显示内容,且不影响悬浮窗口的显示内容。
第二方面,提供一种电子设备,包括:通信接口、存储器和处理器;所述通信接口、所述存储器与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,以使得所述电子设备执行如第一方面中任一种可能的实现方式。
第三方面,提供一种计算机可读存储介质,包括指令,其特征在于,当上述指令在电子设备上运行时,以使得电子设备执行如第一方面中任一种可能的实现方式。
第四方面,提供一种计算机产品当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面中任一种可能的实现方式。
附图说明
图1A为本申请实施例提供的一种通信系统的结构示意图;
图1B为本申请实施例提供的一种投屏通信的示意图;
图2为本申请实施例提供的一种电子设备的结构示意图;
图3A至图3I为本申请实施例提供的应用投屏的界面示意图;
图4A至图4C为本申请实施例提供的应用投屏的正向控制的界面示意图;
图4D至图4F为本申请实施例提供的应用投屏的反向控制的界面示意图;
图5A至图5B为本申请实施例提供的主屏控制的界面示意图;
图6A至图6B为本申请实施例提供的应用投屏的界面示意图;
图7A至图7E为本申请实施例提供的界面投屏的界面示意图;
图7F至图7H为本申请实施例提供的界面投屏的反向控制的界面示意图;
图7I至图7K为本申请实施例提供的界面投屏的正向控制的界面示意图;
图8A至图8D为本申请实施例提供的主屏控制的界面示意图;
图9A至图9B为本申请实施例提供的界面投屏的界面示意图;
图10为本申请实施例提供的一种电子设备的软件架构示意图;
图11A为本申请实施例提供的一种触发悬浮窗口的流程示意图;
图11B为本申请实施例提供的一种触发投屏的流程示意图;
图11C为本申请实施例提供的一种悬浮窗口的投屏控制的流程示意图;
图11D为本申请实施例提供的另一种悬浮窗口的投屏控制方法的流程示意图;
图11E为本申请实施例提供的另一种悬浮窗口的投屏控制方法的流程示意图;
图12为本申请实施例提供的一种投屏方法的流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
下面介绍本申请实施例提供涉及的通信系统10。图1A示例性地示出了本申请实施例中提供的一种通信系统10的结构示意图。如图1A所示,该通信系统10包括电子设备100,以及与电子设备100建立连接多个电子设备,例如电子设备200和电子设备300,下面以电子设备200为例进行介绍。
本申请的实施例中,电子设备100可以通过近距离无线通信连接或本地有线连接与电子设备200进行直接连接。示例性的,电子设备100和电子设备200可以具有无线保真(wireless fidelity,WiFi)通信模块、超宽带(ultra wide band,UWB)通信模块、蓝牙(bluetooth)通信模块、近场通信(near field communication,NFC)通信模块、ZigBee通信模块中的一项或多项近距离通信模块。以电子设备100为例,电子设备100可以通过近距离通信模块(例如蓝牙通信模块)发射信号来探测、扫描电子设备100附近的电子设备,使得电子设备100可以通过近距离无线通信协议发现附近的电子设备,并与附近的电子设备建立无线通信连接,以及传输数据至附近的电子设备。
在一些实施例中,电子设备100和电子设备200可以基于有线或无线保真(wireless fidelity,WiFi)连接的方式,通过电子设备400连接至局域网(local area network,LAN)。例如,电子设备400可以是路由器、网关、智能设备控制器等第三方设备。在一些实施例中,电子设备100和电子设备200还可以通过广域网中的至少一个电子设备500进行间接连接。例如,电子设备500可以是硬件服务器,也可以是植入虚拟化环境中的云端服务器。可以理解,通过电子设备400和/或电子设备500,电子设备100可以和电子设备200间接进行无线通信连接以及数据传输。
可以理解的,本实施例示出的结构并不构成对通信系统10的具体限定。在本申请另一些实施例中,通信系统10可以包括比图示更多或更少的设备。
本申请的实施例中,电子设备100和电子设备200建立连接后,电子设备100可以向电子设备200发送投屏的图像数据和/或音频数据等,电子设备200可以基于电子设备100发送的数据进行界面显示和/或音频输出。示例性的,图1B示出了一种电子设备100和电子设备200间的投屏通信示意图。
示例性的,电子设备100和电子设备200均包括显示管理模块和投屏管理模块。显示管理模块用于管理电子设备的界面显示的生命周期,决定如何根据当前连接的物理显示屏和/或虚拟显示屏控制其逻辑显示,并且在显示状态更改时,向系统和应用程序发送通知等等。如图1B所示,显示管理模块包括主屏显示区。电子设备的物理显示屏(也可以称为主屏)可 以根据主屏显示区(例如Default Display0)运行的应用的图像数据,进行界面显示。在一些实施例中,电子设备还可以利用显示管理模块创建至少一个扩展显示区,每个扩展显示区对应一个虚拟显示屏;并可以将主屏显示区中运行的指定应用或指定应用程序窗口迁移至扩展显示区(例如Extend Display1)。
投屏管理模块用于从显示管理模块获取投屏的图像数据。示例性的,如图1B所示,投屏管理模块从Extend Display1获取图像数据1,并确定投屏目标端为电子设备200后,投屏管理模块通过无线端口(或有线端口)向电子设备200发送图像数据1。在一些实施例中,电子设备200的投屏管理模块通过无线端口(或有线端口)接收到图像数据1,将上述图像数据1发送到电子设备200的显示模块的主屏显示区(或扩展显示区),电子设备200基于主屏显示区(或扩展显示区)中的图像数据1进行投屏显示。在一种实现方式中,电子设备200也可以没有扩展显示区,本申请实施例对此不作具体限定。
应用程序窗口可以是Android系统中的应用程序窗口,还可是IOS系统中的应用程序窗口,还可以是其他操作系统中的应用程序窗口,此处不作具体限定。一个应用包括多个应用程序窗口,一个应用程序窗口对应一个或多个用户界面。为便于描述,本申请实施例中可以将应用程序窗口简称为窗口。本申请实施例中,窗口也可以看作一个复合控件。
下面对本申请实施例涉及的电子设备的硬件结构进行介绍。
需要说明的是,本申请实施例对电子设备100和电子设备200的类型不做具体限定。在一些实施例中,本申请实施例中涉及的电子设备100和电子设备200可以是手机、可穿戴设备(例如,智能手环,智能手表)、平板电脑、膝上型计算机(laptop)、手持计算机、笔记本电脑、车载设备、智能电视机、超级移动个人计算机(ultra-mobile personal computer,UMPC)、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(Augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备。在一些实施例中,电子设备200还可以是投影仪等投影设备。电子设备100和电子设备200的示例性实施例包括但不限于搭载
Figure PCTCN2022083309-appb-000001
Figure PCTCN2022083309-appb-000002
或者其它操作系统。
参见图2,图2示出了本申请实施例提供的示例性电子设备100的结构示意图。本申请实施例中,电子设备200和电子设备300的硬件结构可以参考电子设备100的硬件结构的相关实施例,此处不再赘述。
电子设备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)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器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)接口等。
充电管理模块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)。随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。在一些实施例中,随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。
气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。
加速度传感器180E可检测电子设备100在各个方向上(例如,电子设备100的x、y、z三轴坐标系中的三轴指向的方向)加速度的大小。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。
指纹传感器180H用于采集指纹。
温度传感器180J用于检测温度。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触控操作。触摸传感器可以将检测到的触控操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触控操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
在一些实施例中,电子设备100的触摸屏可接收到用于触发应用或用户界面在悬浮窗口中显示的输入操作。在一些实施例中,电子设备100的触摸屏还可接收到用于触发针对应用、用户界面和/或悬浮窗口的投屏操作。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号、血压跳动信号。
按键190可以是机械按键,也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
下面对本申请实施例提供的示例性的主界面11进行介绍。
示例性的,图3A示出了电子设备100上的用于展示电子设备100安装的应用程序的主界面11。主界面11可以包括:状态栏201,日历指示符202,天气指示符203,具有常用应 用程序图标的托盘204,以及其他应用程序图标205。其中:
具有常用应用程序图标的托盘204可展示:电话图标、联系人图标、短信图标、相机图标。其他应用程序图标205可展示:支付的图标、相册的图标、音乐的图标205A、家居的图标、邮箱的图标、云共享的图标、备忘录的图标、设置的图标。用户界面10还可包括页面指示符206。其他应用程序图标可分布在多个页面,页面指示符206可用于指示用户当前查看的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来查看其他页面中的应用程序图标。
可以理解,图3A仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。
下面结合附图对本申请实施例涉及的投屏场景进行介绍。
场景1:该场景中,响应于用户的输入操作,电子设备100在主屏的显示内容上叠加显示悬浮窗口1,在悬浮窗口1显示应用1,并可以将悬浮窗口1内应用1的显示内容投屏至电子设备200。用户可以在悬浮窗口1中实时查看正在投屏的应用1,在电子设备100正向控制应用1,以及在电子设备200上反向控制应用1。
下面以应用1为音乐应用为例进行示例性说明。
示例性的,图3A所示的音乐的图标205A可以接收用户的输入操作(例如触摸操作),响应于上述输入操作,电子设备100可以显示图3B所示的音乐应用的用户界面12。
本申请实施例中,电子设备显示音乐应用的用户界面12时,电子设备100检测到作用于音乐应用的应用悬浮操作;如图3C所示,响应于上述应用悬浮操作,电子设备100以悬浮窗口形态运行音乐应用1,将音乐应用1对应的悬浮窗口1层叠显示在主界面11上,悬浮窗口1的显示内容为缩小的音乐应用的用户界面12。
在一些实施例中,上述应用悬浮操作可以是图3B所示的用户的两个手指在显示屏194上滑动,且在滑动过程中上述两个手指在显示屏上的触摸位置逐渐靠近。不限于图3B所示的应用悬浮操作,本申请实施例还可以通过其他输入操作触发电子设备100显示音乐应用对应的悬浮窗口1,此处不做具体限定。本申请实施例中,电子设备100还可以基于悬浮窗口1的尺寸,调整悬浮窗口1内显示的用户界面的尺寸,使得该用户界面适应悬浮窗口1的大小。
具体的,在一种实现方式中,如图3D所示,电子设备100基于主屏显示区(即Default Display0)对应的图像数据全屏显示音乐应用的用户界面12;电子设备100响应于针对音乐应用的应用悬浮操作,创建一个音乐应用对应的扩展显示区(例如Extend Display1),并将音乐应用从主屏显示区移至扩展显示区1;电子设备100在主屏显示区中运行除音乐应用外的余下应用(包括桌面应用)。电子设备100的主屏基于主屏显示区内最近运行的余下应用运行的应用程序窗口,确定上述主屏的显示内容(例如桌面应用的主界面11);电子设备100基于扩展显示区1中最近运行的音乐应用的应用程序窗口,确定悬浮窗口1的显示内容(即用户界面12);电子设备100将悬浮窗口1叠加显示在主屏的显示内容之上。需要说明的是,扩展显示区1用于运行音乐应用,即悬浮窗口1可以用于显示音乐应用的任意应用程序窗口对应的用户界面。
本申请实施例中,响应于接收到的输入操作,电子设备100还可以调整悬浮窗口1在显示屏194上的显示位置和/或尺寸。本申请实施例对上述输入操作不做具体限定。
本申请实施例中,电子设备100可以接收用户的投屏操作,响应于上述投屏操作,电子设备100可以将悬浮窗口1的显示内容或主屏的显示内容投屏至电子设备200。
示例性的,如图3C所示,电子设备100接收用户作用于状态栏201的向下滑动操作,响应于上述滑动操作,电子设备100显示图3E所示的通知栏界面13,通知栏界面包括多个常用的快捷图标207,例如图3E所示的WLAN的图标、蓝牙的图标、投屏的图标207A等。
投屏的图标207A可以接收用户的输入操作,响应于上述输入操作,电子设备100显示图3F所示的投屏选择界面14。投屏选择界面可以用于选择投屏内容和/或投屏目标端,还可以显示电子设备100当前已投屏的投屏内容以及该投屏内容对应的投屏目标端。
投屏选择界面14可以包括一或多个投屏内容选项以及一个多个投屏目标端选项。参见图3F,上述一或多个投屏内容选项可以包括主屏对应的内容选项208A,和/或至少一个悬浮窗口对应的内容选项(例如悬浮窗口1对应的内容选项208B);上述一或多个投屏目标端选项可以包括电子设备200和电子设备300。
本申请实施例中,电子设备100可以将至少一种投屏内容投屏到至少一个投屏目标端。例如,电子设备100也可以将内容选项208B对应的显示内容投屏至电子设备200和电子设备300;电子设备100可以将内容选项208A和内容选项208B对应的显示内容均投屏至电子设备200;电子设备100可以将内容选项208A和内容选项208B对应的显示内容均投屏至电子设备200和电子设备300。此处均不做具体限定。
如图3F所述,投屏选择界面14还可以包括确定控件209。参见图3F和图3G,用户选择主屏对应的内容选项208A和电子设备300后,电子设备100响应于针对确定控件209的输入操作(例如触摸操作),将主屏的显示内容(例如主界面11)发送至电子设备300,电子设备300显示图3G所示的主界面11。参见图3H和图3I,用户选择悬浮窗口1对应的内容选项208B和电子设备200后,电子设备100响应于针对确定控件209的输入操作,将悬浮窗口1的显示内容(例如用户界面12)发送至电子设备200,电子设备200显示图3I所示的用户界面12。在一种实现方式中,如图3H所示,电子设备将主屏的显示内容投屏至电子设备300后,电子设备100可以在投屏选择界面14显示当前已投屏至电子设备300的至少一个内容选项(例如主屏的内容选项210)。
具体的,在一种实现方式中,若用户选择将悬浮窗口1的显示内容投屏至电子设备200,则电子设备100将悬浮窗口1对应的扩展显示区1中运行的音乐应用的图像数据投屏至电子设备200;若用户选择将主屏的显示内容投屏至电子设备200,则电子设备200将主屏显示区中运行的应用的图像数据投屏至电子设备200。
下面以投屏目标端为电子设备200为例进行说明。在一种实现方式中,电子设备200可以根据本设备显示屏的尺寸对电子设备100发送的用户界面进行缩放,也可以对电子设备100发送的用户界面中的控件进行自适应布局,使得上述显示内容中的控件适应性的显示在电子设备200的显示屏中,此处不做具体限定。在一种实现方式中,电子设备100和电子设备200建立连接后,电子设备100可以获取电子设备200进行投屏显示的尺寸1,电子设备100将待投屏的用户界面调整至上述尺寸1后发送到电子设备200。
需要说明的是,不限于通过图3C和图3E所示的用户操作,本申请实施例还可以通过其他用户操作触发电子设备100显示投屏选择界面14。例如,电子设备100接收到用户在显示屏194上的双指向下滑动操作,响应于上述滑动操作,电子设备显示投屏选择界面14。
需要说明的是,不限于先显示投屏选择界面14,并在进行投屏内容和/或投屏目标端的选 择后,将投屏内容投屏至投屏目标端,本申请实施例中,图3C中电子设备100还可以直接响应于用户的投屏操作,将指定投屏内容投屏至投屏目标端。例如,图3C中响应于接收到的投屏操作1,电子设备100将悬浮窗口1的显示内容投屏至电子设备200;响应于接收到的投屏操作2,电子设备100将主屏的显示内容投屏至电子设备200。示例性的,投屏操作1可以为用户的指关节在显示屏194上画“Z”形,投屏操作2可以为用户的指关节在显示屏194上画“O”形。
本申请实施例中,用户可以通过电子设备100或电子设备200切换投屏到电子设备200上的内容选项。
示例性的,电子设备100将悬浮窗口1的显示内容投屏至电子设备200后,电子设备100可以响应于接收到的切换操作,将针对电子设备200的投屏内容切换为主屏的显示内容。示例性的,电子设备100将悬浮窗口1的显示内容投屏至电子设备200后,电子设备200可以响应于接收到的切换操作,向电子设备100发送指令1,指令1用于指示电子设备100切换投屏的内容选项为主屏的显示内容。
在一种实现方式中,上述指令1包括上述切换操作的触摸信息(例如触摸坐标、触摸时长和/或触摸轨迹等),电子设备100基于上述切换操作的触摸信息,确定上述切换操作触发的事件为切换投屏至电子设备200的内容选项。
本申请实施例中,用户可以在电子设备100通过悬浮窗口1正向控制音乐应用。
示例性的,如图4A所示,用户界面12包括控件301。控件301可以接收用户的输入操作(例如触摸操作),响应于上述输入操作,电子设备100在悬浮窗口1内显示图4B所示的音乐应用的歌曲播放界面15,并将歌曲播放界面15对应的图像数据发送到电子设备200。电子设备200显示图4C所示的歌曲播放界面15。
具体的,在一些实施例中,电子设备100接收到作用于悬浮窗口的显示区域内的输入操作后,折算上述输入操作在全屏显示的音乐应用上的相对坐标1;电子设备100确定扩展显示区1最近运行的音乐应用的应用程序窗口对应用户界面12,电子设备100基于上述相对坐标1和用户界面12的界面布局,确定上述输入操作是作用于用户界面12中的控件301的触摸操作;响应于上述触摸操作,电子设备100在扩展显示区1运行音乐应用的歌曲播放界面15,并基于扩展显示区1中运行的歌曲播放界面15的图像数据,在悬浮窗口内显示歌曲播放界面15;电子设备100将扩展显示区1中运行的歌曲播放界面15的图像数据发送到电子设备200。
本申请实施例中,用户可以在电子设备200通过投屏显示的用户界面反向控制音乐应用。
示例性的,如图4D所示,用户界面12还包括控件302。控件302可以接收用户的输入操作(例如触摸操作),响应于上述输入操作,电子设备200将上述输入操作的触摸信息发送给电子设备100。基于上述输入操作的触摸信息,响应于上述输入操作,电子设备100在悬浮窗口1内显示图4E所示的音乐应用的歌单界面16,并将歌单界面16对应的图像数据发送到电子设备200。电子设备200显示图4F所示的歌单界面16。
具体的,在一些实施例中,电子设备100接收到电子设备200发送的输入操作的触摸信息后,后,折算上述输入操作在电子设备100全屏显示的音乐应用上的相对坐标1;电子设备100确定扩展显示区1最近运行的音乐应用的应用程序窗口对应用户界面12,基于上述相对坐标1和用户界面12的界面布局,确定上述输入操作是作用于用户界面12中的控件302的触摸操作;进而,响应于上述触摸操作,电子设备100在扩展显示区1运行音乐应用的歌 单界面16,在悬浮窗口内显示歌单界面16,以及发送歌单界面16的图像数据发送到电子设备200。
参见图4A至图4F,本申请实施例中,由于主屏和悬浮窗口对应两个独立的显示区,用户可以操控悬浮窗口对应的应用的显示内容,且不影响主屏的显示内容;反之,用户也可以操控主屏的显示内容,且不影响悬浮窗口的显示内容。示例性的,参见图5A和图5B,主屏显示的主界面11显示有相册的图标205B,响应于针对相册的图标205B的输入操作,电子设备100显示相册应用的用户界面17,并在用户界面17上继续叠加显示悬浮窗口1。
此外,在一些应用场景中,用户也可以直接将电子设备100上的应用1直接投屏至电子设备200,无需先调出应用1对应的悬浮窗口,用户可以在电子设备100正向控制应用1,也可以在电子设备200上反向控制应用1。
示例性的,参考图6A,响应于用户的输入操作(例如作用于投屏的图标207A的点击操作),电子设备100显示投屏选择界面20,投屏选择界面20包括主屏对应的内容选项303A和至少一个应用对应的内容选项(例如音乐应用对应的内容选项303B和相册应用对应的内容选项303C)、至少一个投屏目标端对应的选项(例如电子设备200和电子设备300)以及确认控件207A。在一种实现方式中,上述至少一个应用为电子设备100当前正在前台和后台运行的应用。
用户选择音乐应用对应的内容选项303B和电子设备200,响应于针对确认控件207A的输入操作,电子设备100创建一个音乐应用对应的扩展显示区(例如Extend Display1),并将音乐应用从主屏显示区移至扩展显示区1,电子设备100在主屏显示区中运行除音乐应用外的余下应用(包括桌面应用);然后,电子设备100将扩展显示区运行的音乐应用的图像数据发送至电子设备200。上述音乐应用的图像数据可以是音乐应用最近运行的应用程序窗口对应的图像数据,还可是音乐应用的首页的图像数据。示例性的,电子设备200基于电子设备100发送的图像数据显示如图6B所示的音乐应用的首页,即用户界面12。
针对图6A至图6B所示的应用场景,用户可以在电子设备200通过投屏显示的用户界面12反向控制音乐应用,也可以在电子设备100打开音乐应用,进而正向控制音乐应用。具体实现可以参考图4A至图4F相关实施例的描述,此处不再赘述。
此外,不限于图6A所示的投屏方式,本申请实施例还可以通过其他投屏方式,直接将指定应用投屏至投屏目标端。
场景2:该场景中,响应于用户的输入操作,电子设备100可以叠加显示主屏的显示内容和悬浮窗口2,悬浮窗口2用于显示应用1的应用程序窗口1,并可以将悬浮窗口内应用程序窗口1的显示内容投屏至电子设备200。用户可以在悬浮窗口2中实时查看正在投屏的应用程序窗口1,在电子设备100正向控制应用程序窗口1,以及在电子设备200上反向控制应用程序窗口1。
其中,应用程序窗口1可以是应用1的应用程序窗口,也可以是应用1的应用程序窗口中内嵌的应用程序子窗口。本申请中,应用程序子窗口也可以被称为应用程序窗口。
下面以应用1为会议应用为例进行示例性说明。
示例性的,图7A示出了一种视频会议界面18,视频会议界面18包括会议名称401、菜单栏402和视频通话内容19。
其中,菜单栏402包括多个控制视频会议的控件,例如静音控件、扬声器控件、结束会 议控件、切换摄像头控件和录像控件等等。视频通话内容19包括至少一个显示区,例如显示区403A、显示区403B和显示区403C。显示区403A可以用于显示电子设备100的摄像头采集的图像;显示区403B可以用于显示视频联系人1的电子设备的摄像头采集的图像;显示区403C可以用于显示视频联系人2的电子设备的摄像头采集的图像。
本申请实施例中,电子设备显示视频会议界面18时,电子设备100可以接收用户作用于视频通话内容19的界面悬浮操作;如图7B所示,响应于上述界面悬浮操作,电子设备100以悬浮窗口形态运行会议应用的视频通话内容19,并将视频通话内容19对应的悬浮窗口2层叠显示在用户界面18上,悬浮窗口2的显示内容为缩小的视频通话内容19。图7B所示的视频会议界面18中的原本显示视频通话内容19的区域可以显示空白区域(例如黑色空白区或白色空白区)。
需要说明的是,视频通话内容19可以是视频会议界面18对应的应用程序窗口内嵌的一个应用程序子窗口。
在一些实施例中,视频通话内容19包括图7A所示的悬浮控件404,界面悬浮操作可以是作用于悬浮控件404的触摸操作。不限于图7A所示的界面悬浮操作,本申请实施例还可以通过其他输入操作触发电子设备100显示悬浮窗口2,此处不做具体限定。
具体的,在一种实现方式中,电子设备100响应于针对视频通话内容19的界面悬浮操作,创建一个视频通话内容19对应的扩展显示区1,将视频通话内容19对应的应用程序窗口1从主屏显示区移至扩展显示区1;电子设备100的主屏运行会议应用中除视频通话内容19对应的应用程序窗口1之外的应用程序窗口以及除会议应用外的余下应用(包括桌面应用)。电子设备100的主屏基于主屏显示区内最近运行的应用程序窗口对应的图像数据确定主屏的显示内容基于扩展显示区1中运行的视频通话内容19对应的图像数据(例如用户界面18),确定悬浮窗口2的显示内容;然后电子设备100在主屏的显示内容上叠加悬浮窗口2。可以理解,扩展显示区1用于运行会议应用的视频通话内容19对应的应用程序窗口1,悬浮窗口2可以用于显示上述应用程序窗口1对应的显示内容。
本申请实施例中,电子设备100可以接收用户的投屏操作,响应于上述投屏操作,电子设备100可以将悬浮窗口2的显示内容或主屏的显示内容投屏至电子设备200。
在一种实现方式中,类似于场景1,用户调出图7C所示的投屏选择界面14,投屏选择界面14包括悬浮窗口2对应的内容选项。示例性的,用户选择悬浮窗口2对应的内容选项208C,并选择电子设备200为投屏目标端后,电子设备100响应于针对控件209的输入操作,将悬浮窗口2内视频通话内容19的图像数据发送至电子设备200,电子设备200基于电子设备100发送的图像数据显示图7D所示的视频通话内容19。
在一种实现方式中,电子设备100显示如图7E所示的视频通话内容19的投屏控件405。投屏控件405可以接收用户的输入操作,响应于上述输入操作,电子设备可以直接将悬浮窗口2的显示内容投屏送至特定投屏目标端。
不限于图7C至图7E所示的投屏方式,本申请实施例还可以通过其他投屏方式进行投屏。
本申请实施例中,电子设备100可以基于悬浮窗口2的尺寸,调整悬浮窗口2内显示的视频通话内容19的尺寸,使得图7B显示的视频通话内容19适应悬浮窗口2的大小。电子设备100还可以基于电子设备200的尺寸调整投屏至电子设备200的视频通话内容19的尺寸,使得图7D显示的视频通话内容19适应电子设备200的显示屏的大小。
本申请实施例中,用户可以在电子设备200反向控制视频通话内容19。
示例性的,如图7F所示,用户点击电子设备200显示的视频通话内容19中的显示区403B,电子设备200检测到上述输入操作,将上述输入操作的触摸信息发送给电子设备100。电子设备100基于上述输入操作的触摸信息,确定上述输入操作是作用于显示区403B的点击操作;如图7G所示,响应于上述输入操作,电子设备100切换显示区403A和显示区B的视频源,即在显示区403A显示视频联系人1的电子设备的摄像头采集的图像,在显示区403B显示电子设备100的摄像头采集的图像;并将切换显示区后的视频通话内容19的图像数据实时发送给电子设备200;电子设备200显示如图7H所示的切换显示区后的视频通话内容19。
具体的,可以参考场景1的相关实施例中有关在电子设备200反向控制投屏内容的描述,此处不再赘述。
本申请实施例中,用户可以在电子设备100通过悬浮窗口2正向控制视频通话内容19。
示例性的,电子设备100可以检测到作用于图7I所示的显示区403C的输入操作;如图7J所示,响应于上述输入操作,电子设备100会切换显示区403A和显示区403C的视频源,即在显示区403A显示视频联系人2的电子设备的摄像头采集的图像,在显示区403B显示视频联系人1的电子设备的摄像头采集的图像;并将切换显示区后的视频通话内容19的图像数据发送至电子设备200;电子设备200显示图7K所示的视频通话内容19。
具体的,可以参考场景2的相关实施例中有关在电子设备100正向控制投屏内容的描述,此处不再赘述。
参见图7A至图7K,本申请实施例中,用户可以在电子设备100操控悬浮窗口2对应的显示内容,且不影响主屏的显示内容。反之,用户也可以操控主屏的显示,且不影响悬浮窗口的显示内容。示例性的,如图8A所示,响应于检测到的输入操作,电子设备100显示主界面11,并在主界面11上继续叠加显示悬浮窗口2。
在一些实施例中,悬浮窗口2用于显示视频会议应用的视频通话内容19,用户也可以通过主屏显示的视频会议应用的用户界面,正向控制视频通话内容19。
示例性的,电子设备100包括例如前置摄像头和后置摄像头,图8B所示的显示区403A显示电子设备100的前置摄像头采集的图像,图8B所示的菜单栏402包括转换摄像头控件402A。响应于针对转换摄像头控件402A的输入操作,电子设备100将视频通话的前置摄像头切换为后置摄像头,显示区403A显示图8C所示的后置摄像头采集的图像;并将切换摄像头后的视频通话内容19的图像数据投屏至电子设备200;电子设备200显示图8D所示的视频通话内容19。
类似于场景1,本申请实施例中,电子设备100可以将至少一种投屏内容投屏到至少一个投屏目标端;用户可以通过电子设备100或电子设备200切换投屏到电子设备200上的内容选项;用户可以调整悬浮窗口2在显示屏194上的显示位置和/或显示尺寸。具体的,均可以参考场景1的相关实施例,此处均不再赘述。
此外,在一些应用场景中,用户也可以直接将电子设备100上的应用1的特定应用程序窗口对应的图像数据直接投屏至电子设备200,无需先调出上述特定应用程序窗口对应的悬浮窗口,用户可以在电子设备100正向控制上述特定应用程序窗口对应的显示内容,也可以在电子设备200上反向控制上述特定应用程序窗口对应的显示内容。
示例性的,上述特定应用程序窗口为视频显示内容19对应的应用程序窗口1。参考图9A,视频会议界面18显示针对视频显示内容19的投屏控件406;响应于针对投屏控件406的输 入操作,电子设备100创建一个应用程序窗口1对应的扩展显示区(例如Extend Display1),并将应用程序窗口1从主屏显示区移至扩展显示区1,电子设备100在主屏显示区中运行除应用程序窗口1外的余下应用程序窗口;然后,电子设备100将扩展显示区运行的应用程序窗口1的图像数据发送至电子设备200;电子设备200基于电子设备100发送应用程序窗口1的图像数据显示如图9B所示的视频显示内容19。
针对图9A至图9B所示的直接将视频显示内容19至电子设备200的应用场景,用户可以在电子设备200通过投屏显示的视频显示内容19对其进行反向控制,也可以在电子设备100显示视频显示内容19,进而对其进行正向控制。具体实现可以参考图4A至图4F相关实施例的描述,此处不再赘述。
此外,不限于图9A至图9B所示的投屏方式,本申请实施例还可以通过其他投屏方式,直接将指定特定应用程序窗口对应的显示内容投屏至投屏目标端,此处均不再赘述。
参见上述场景1和场景2的相关描述,实施本申请实施例,电子设备100可以为指定应用1(或指定应用程序窗口1)创建扩展显示区,从而将应用1(或应用程序窗口1)与主屏显示区运行的其他内容隔离开。由于主屏的显示内容和应用1(或应用程序窗口1)对应两个独立的显示区,电子设备100响应于用户的输入操作,可以将应用1(或应用程序窗口1)通过悬浮窗口叠加显示在主屏的显示内容上,将应用1(或应用程序窗口1)对应的图像数据投屏至投屏目标端,并可以有效实现在电子设备100对悬浮窗口的显示内容的正向控制,以及在投屏目标端对投屏内容的反向控制。此外,通过对镜像投屏的内容过滤和图像合成来实现投屏的传统方案,需要被过滤应用提供图层标识适配,由于一个应用有多个图层,可能存在漏投、多投的情况。而本申请实施例电子设备100基于主屏显示区或扩展显示区对应的图像数据进行投屏显示,有效避免了漏投、多投的情况。
下面结合附图对本申请实施例涉及的电子设备100的软件系统进行介绍。
在本申请实施例中,电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
示例性的,图10示出了本申请实施例提供的电子设备100的软件架构框图。
如图10所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统从上至下分为应用程序层,应用程序框架层,硬件抽象层(hardware abstraction layer,HAL)层以及内核层(kernel)。其中:
应用程序层包括一系列应用程序包,例如即时通讯应用、音乐、图库等等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
如图10所示,本申请实施例中,应用程序框架层可以包括窗口管理模块、应用管理模块、 事件管理服务(input manager service,IMS)、显示管理模块、图像合成模块、投屏选择器、投屏管理模块和折算模块。
窗口管理模块用于管理应用程序窗口的创建、显示与隐藏。应用程序窗口可以是Android系统中的应用程序窗口,还可是IOS系统中的应用程序窗口,还可以是其他操作系统中的应用程序窗口,此处不作具体限定。一个应用包括多个应用程序窗口,一个应用程序窗口对应一个或多个用户界面。为便于描述,本申请实施例中可以将应用程序窗口简称为窗口。
在一些实施例中,窗口管理模块包括Window管理服务(Window Manager Service,WMS),WMS是android系统的系统服务,控制所有窗口的显示与隐藏。WMS为所有窗口分配界面(Surface),管理Surface的显示顺序、尺寸、位置等,控制窗口动画,是输入系统的重要的中转站。
应用管理模块可以用于获取应用当前运行的应用程序窗口的窗口比例。在一些实施例中,应用程序窗口以悬浮窗口的形式显示在显示屏194上,悬浮窗口的尺寸小于该应用程序窗口全屏显示的尺寸,该悬浮窗口的窗口比例可以指该悬浮窗口与全屏显示窗口的尺寸比例。
在一些实施例中,应用管理模块包括Activity管理服务(ActivityManagerService,AMS),AMS是安卓(android)系统的系统服务,用于控制系统中不同的应用程序之间合理的调度与运行,对Activity任务栈进行管理。AMS的主要职责包括统一调度各应用程序的Activity、管理应用程序的进程(process)、管理内存、调度服务(service)、调度任务(Task)、查询系统当前运行状态等等。应用管理模块根据Activity任务栈可以确定应用是否为前台运行的顶层应用、前台运行的应用或后台运行的应用。
事件管理模块用于管理整个系统的输入事件和事件分发。在一些实施例中,事件管理模块包括触控监控模块,触控监控模块用于监控和确定触摸屏上的输入事件。在一些实施例中,触控监控模块可以通过AMS确定前台运行的应用的顶层activity,结合上述顶层activity对应的界面布局以及触摸操作对应的原始事件,确定上述触摸操作对应的输入事件。
显示管理模块用于管理电子设备100的物理显示和/或虚拟显示。具体的,用于管理界面显示的生命周期,决定如何根据当前连接的物理显示屏和/或虚拟显示屏控制其逻辑显示,并且在显示状态更改时,向系统和应用程序发送通知等等。显示管理模块可以包括主屏显示区或扩展显示区,具体的,可以参考图1B的相关描述,此处不再赘述。
图像合成模块用于基于主屏显示区和/或扩展显示区中对应的图像数据合成图像。在一些实施例中,图像合成模块用于将悬浮窗口叠加显示在主屏的显示内容上,合成显示屏194最终的显示内容。
投屏选择器用于确定投屏内容,投屏内容可以是主屏显示区运行的应用程序窗口对应的图像数据,也可以是扩展显示区(例如Extend Display1)中运行的应用程序窗口对应的图像数据。在一些实施例中,投屏选择器还用于确定投屏目标端。在一种实现方式中,参见图1B,当投屏选择器确定投屏目标端时,电子设备100可以通过无线端口或有线端口向上述投屏目标端发送投屏请求,并在接收到投屏目标端投屏发送的同意投屏的投屏响应后,向上述投屏目标端发送上述投屏内容。
投屏管理模块用于从显示管理模块获取投屏内容的图像数据。
折算模块用于计算作用于悬浮窗口的触控操作的相对坐标,以便于用户正向控制悬浮窗口内的显示内容;还用于计算作用于电子设备200显示的投屏内容的触摸操作的相对坐标,以便于用户反向控制投屏内容。
内核层是硬件和软件之间的层。HAL层及内核层(kernel)可以响应于应用程序框架层调用的功能,执行对应的操作。如图10所示,内核层可以包括输入系统、触控芯片驱动、显示驱动等等。在一些实施例中,内核层还可以包含传感器驱动、摄像头驱动,音频驱动等等。各驱动用于将硬件抽象化,以隐藏硬件的特定通道,使应用可访问(或调用)硬件。
基于上述软件架构,下面对本申请实施例提供的投屏方法的具体实现进行示例性说明。
本申请实施例中,电子设备100检测到针对目标悬浮对象的悬浮操作,响应于上述悬浮操作,电子设备100在主屏的显示内容上叠加显示悬浮窗口,悬浮窗口用于显示目标悬浮对象对应的显示内容。参考场景1和场景2的相关描述,上述目标悬浮对象可以是指定应用(例如前述音乐应用),相应地,上述悬浮操作可以为前述应用悬浮操作;上述目标悬浮对象也可以是一个应用的指定应用程序窗口(例如前述视频显示区19),相应地,上述悬浮操作可以为前述界面悬浮操作。示例性的,电子设备100的具体实现流程可以参考图11A。其中:
在一些实施例中,触摸传感器180K接收到触控操作1(例如用户的悬浮操作),相应的硬件中断被发给触控芯片,触控芯片将触控操作的触摸信息发送给内核层的触控芯片驱动,触控芯片驱动将上述触摸信息发送给输入系统,输入系统将上述触控操作1加工成原始输入事件(包括触摸坐标、触摸时间和/或触摸轨迹等信息),原始输入事件被存储在内核层。事件管理模块从内核层获取原始输入事件,结合最近运行的应用程序窗口对应的界面布局确定上述原始输入事件用于触发目标悬浮对象的悬浮窗口。事件管理模块将该事件分发给窗口管理模块;窗口管理模块指示显示管理模块创建目标悬浮对象对应的扩展显示区。显示管理模块创建目标悬浮对象对应的扩展显示区,即Extentd Display1,并指示窗口管理服务完成目标悬浮对象的悬浮窗口的创建。显示管理模块从窗口管理模块获取目标悬浮对象对应的图像数据,缓存到Extentd Display1。图像合成模块从显示管理模块中的主屏显示区获取主屏的显示内容,从Extentd Display1获取悬浮窗口的显示内容,并将悬浮窗口叠加显示到主屏的显示内容上,合成显示内容1。图像合成模块将显示内容1发送给显示模块,显示模块调用显示驱动,将显示内容送显到显示屏194。
本申请实施例中,电子设备100检测到针对目标投屏内容的投屏操作,响应于上述投屏操作,电子设备从目标投屏内容对应的显示区获取目标投屏内容的图像数据,并发送到目标投屏端。参考场景1和场景2的相关描述,上述目标投屏内容可以是主屏,相应地,目标投屏内容对应的显示区为主屏显示区;上述目标投屏内容也可以是悬浮窗口,相应地,目标投屏内容对应的显示区为Extentd Display1。示例性的,电子设备100的具体实现流程可以参考图11B。其中:
触摸传感器180K接收到触控操作2(即用户的投屏操作),相应的硬件中断被发给触控芯片,触控芯片驱动将上述触控操作2的触摸信息发送给输入系统,输入系统将上述触控操作2加工成原始输入事件。事件管理模块从内核层获取原始输入事件,结合最近运行的应用程序窗口对应的界面布局确定上述原始输入事件用于触发对目标投屏内容进行投屏。事件管理模块向投屏选择器指示上述目标投屏内容;投屏选择器确定上述目标投屏内容对应的显示区1(即主屏显示区或Extentd Display1),并指示显示管理模块基于显示区1的图像数据进行投屏;显示管理模块向投屏管理模块发送显示区1的图像数据;投屏管理模块通过有线端口或无线端口将上述图像数据发送到投屏目标端。
本申请实施例中,电子设备100检测到针对悬浮窗口内目标悬浮对象的显示内容2的触控操作3,响应于上述触控操作3,电子设备100在悬浮窗口内显示目标悬浮对象对应的显示 内容3。参考场景1和场景2的相关描述,上述目标悬浮对象可以是指定应用,例如目标悬浮对象为前述音乐应用,显示内容2为用户界面12,上述触控操作3为作用于控件301的触控操作,显示内容3为歌单界面16;上述目标悬浮对象也可以是一个应用的指定应用程序窗口1对应的用户界面,例如目标悬浮对象为前述视频显示内容19,显示内容2为图7I所示的视频显示内容19,上述触控操作3为作用于图7I所示的显示区403C的触控操作,显示内容3为图7J所示的视频显示内容19。示例性的,悬浮窗口内显示用户界面2,电子设备100的具体实现流程可以参考图11C。其中:
在一些实施例中,触摸传感器180K接收到触控操作3,相应的硬件中断被发给触控芯片,触控芯片驱动将上述触控操作3的触摸信息发送给输入系统,输入系统将上述触控操作3加工成原始输入事件。事件管理模块从内核层获取原始输入事件,基于原始输入事件中的触摸坐标,确定上述触控操作3作用于悬浮窗口。事件管理模块向窗口管理模块发送触控操作3的触摸坐标,指示获取触控操作3的原始触摸坐标的相对坐标1,相对坐标1指触控操作3在全屏显示的用户界面2上的相对触摸坐标,用户界面2为悬浮窗口当前的显示内容。窗口管理模块基于悬浮窗口的坐标系和悬浮窗口在显示屏194上的显示位置计算触控操作3在悬浮窗口内的相对坐标2,并向折算模块发送相对坐标2;折算模块向应用管理模块获取悬浮窗口的窗口比例,并基于该窗口比例和相对坐标2,折算触控操作3的相对坐标1,折算模块向事件管理模块发送触控操作3的相对坐标1;事件管理模块基于触控操作3的相对坐标1,以及Extentd Display1中运行的用户界面2的界面布局,确定触控操作3是作用于用户界面2的控件1的触控操作;事件管理模块确定上述触控操作3用于触发悬浮窗口显示目标悬浮对象的显示内容3。
示例性的,主屏的坐标系为图11D所示xy坐标系,悬浮窗口的坐标系为图11D所示ab坐标系。悬浮窗口的ab坐标系中的坐标(0,0)对应主屏的xy坐标系中的坐标(x1,y1)。电子设备100检测到触控操作3的触摸坐标包括坐标(x2,y2)时,电子设备100折算坐标(x2,y2)在悬浮窗口内的相对坐标2为(x2-x1,y2-y1),然后基于悬浮窗口比例c和相对坐标2,折算上述坐标(x2,y2)在全屏显示的用户界面2上的相对坐标1为(c(x2-x1),c(y2-y1))。
本申请实施例中,电子设备200检测到针对投屏窗口内的显示内容4的触控操作4,电子设备200将上述触控操作4的触摸信息发送给电子设备100。上述显示内容4可以为电子设备100的主屏或悬浮窗口的当前显示内容。电子设备100基于触控操作4的触摸信息,确定上述触摸操4作用于触发电子设备100切换投屏内容为显示内容5;响应于上述触控操作4,电子设备100切换主屏或悬浮窗口的显示内容为显示内容5,并将显示内容5投屏至电子设备200。参考场景1和场景2的相关描述,上述目标悬浮对象可以是指定应用,例如目标悬浮对象为前述音乐应用,显示内容4为图4D所示的电子设备200投屏显示的用户界面12,上述触控操作4为作用于电子设备200投屏显示的用户界面12中的控件302的触控操作,显示内容5为歌单界面16;上述目标悬浮对象也可以是一个应用的指定应用程序窗口1对应的用户界面,例如目标悬浮对象为前述视频显示内容19,显示内容4为图7F所示的电子设备200投屏显示的视频显示内容19,上述触控操作4为作用于图7F所示的显示区403B的触控操作,显示内容5为图7G和图7H所示的视频显示内容19。示例性的,显示内容4为主屏或悬浮窗口的用户界面2,电子设备100的具体实现流程可以参考图11E。其中:
在一些实施例中,电子设备200检测到触控操作4后,基于电子设备200的投屏窗口在 电子设备200的显示屏上的显示位置,折算触控操作4在投屏窗口内的相对坐标4,并将触控操作4的触摸信息发送给电子设备100,触控操作4的触摸信息包括相对坐标4。电子设备100接收到电子设备200发送的触控操作4的触摸信息后,将上述触摸信息发送给输入系统,输入系统将上述触控操作4加工成原始输入事件。事件管理模块从内核层获取原始输入事件,确定上述触控操作作用于投屏的用户界面2。事件管理模块向窗口管理模块发送触控操作4的相对坐标4,指示获取触控操作4的相对坐标5,相对坐标5是触控操作4在全屏显示的用户界面2上的相对触摸坐标。窗口管理模块向折算模块发送相对坐标4,指示获取触控操作4的相对坐标5;折算模块向应用管理模块获取电子设备200显示的投屏窗口与电子设备100全屏显示的窗口间的窗口比例,并基于该窗口比例和相对坐标4,折算触控操作4的相对坐标5,折算模块向事件管理模块发送触控操作4的相对坐标5;事件管理模块基于触控操作4的相对坐标5,以及主屏显示区或悬浮窗口的Extentd Display1中运行的用户界面2的界面布局,确定触控操作4是作用于用户界面2的控件1的触控操作;事件管理模块确定上述触摸操作用于触发切换主屏或悬浮窗口的投屏内容为显示内容5。
在一些实施例中,电子设备200也可以将触控操作4的原始触摸坐标以及投屏窗口在电子设备200的显示屏上的显示位置发送给电子设备100,再由电子设备100计算上述相对坐标4。
折算触控操作4在投屏窗口内的相对坐标4可以参考前述触控操作3的相对坐标2的计算方式,折算触控操作4的相对坐标5可以参考前述触控操作3的相对坐标1的计算方式,此处不再赘述。需要说明的是,图10仅是本申请实施例对软件结构框图的示例性说明,图10所示的软件结构框图的各层还可以包括其他模块,此处不作具体限定。
图12示例性示出了本申请实施例提供的一种投屏方法,上述投屏方法包括但不限于步骤S101至S104,其中:
S101、第一电子设备在主屏的显示内容上叠加显示悬浮窗口,悬浮窗口内显示第一用户界面,主屏的显示内容是基于主屏显示区的图像数据确定的,悬浮窗口的显示内容是基于第一扩展显示区的图像数据确定的。
本申请实施例中,第一电子设备可以是前述实施例中的电子设备100,第二电子设备可以是前述实施例中的电子设备200或电子设备300。
示例性的,参见场景1的相关实施例,上述主屏的显示内容可以为图3C所示的桌面应用的主界面11,悬浮窗口可以是前述悬浮窗口1,悬浮窗口显示的第一用户界面可以为图3C所示的音乐应用的用户界面12。上述主屏显示区可以为前述Default Display0,上述主屏显示区用于运行除扩展显示区运行的应用之外的应用(例如桌面应用),主屏基于主屏显示区运行的应用的图像数据显示桌面应用的主界面11;上述第一扩展显示区可以为前述Extentd Display1,第一扩展显示区用于运行音乐应用,悬浮窗口1基于第一扩展显示区运行的音乐应用对应的图像数据显示用户界面12。
示例性的,参见场景2的相关实施例,上述主屏的显示内容可以为图7B所示的会议应用的视频会议界面18(图7B所示的视频会议界面18不包括前述视频通话内容19),悬浮窗口可以是前述悬浮窗口2,悬浮窗口显示的第一用户界面可以为图7B所示的会议应用的视频通话内容19。上述主屏显示区可以为前述Default Display0,上述主屏显示区用于运行除扩展显示区运行的应用程序窗口之外的应用的应用程序窗口(例如会议应用中除视频通话内容19 外的应用程序窗口,以及除会议应用外其他应用的应用程序窗口),主屏基于主屏显示区运行的应用的图像数据显示会议应用的视频会议界面18;上述第一扩展显示区可以为前述扩展显示区1(Extentd Display1),第一扩展显示区用于运行会议应用中的视频通话内容19对应的应用程序窗口1,悬浮窗口1基于第一扩展显示区运行的应用程序窗口1对应的图像数据显示视频通话内容19。
S102、检测到针对悬浮窗口的第一操作,响应于第一操作,第一电子设备基于第一扩展显示区的图像数据将悬浮窗口的显示内容投屏到第二电子设备。
示例性的,参见场景1的相关实施例,悬浮窗口(即悬浮窗口1)用于基于扩展显示区1显示音乐应用,第一用户操作可以是前述投屏操作。例如,参见图3H和图3I,第一用户操作可以是在用户选择悬浮窗口1对应的内容选项208B和电子设备200后,作用于控件209的输入操作(例如触摸操作)。
本申请实施例中,若用户选择将悬浮窗口1的显示内容投屏至电子设备200,则电子设备100将悬浮窗口1对应的扩展显示区1中运行的音乐应用的图像数据投屏至电子设备200;若用户选择将主屏的显示内容投屏至电子设备200,则电子设备200将主屏显示区中运行的应用的图像数据投屏至电子设备200。
示例性的,参见场景2的相关实施例,悬浮窗口(即悬浮窗口2)用于基于扩展显示区1显示会议应用中的视频通话内容19,第一用户操作可以是前述投屏操作。例如,参见图7C,第一用户操作可以是在用户选择悬浮窗口2对应的内容选项208C并选择电子设备200为投屏目标端后,作用于控件209的输入操作。
本申请实施例中,若用户选择将悬浮窗口2的显示内容投屏至电子设备200,则电子设备100将悬浮窗口2对应的扩展显示区1中运行的视频通话内容19的图像数据投屏至电子设备200;若用户选择将主屏的显示内容投屏至电子设备200,则电子设备200将主屏显示区中运行的应用的应用程序窗口的图像数据投屏至电子设备200。
S103、接收第二电子设备发送的针对投屏显示的第一用界面的第一指令。
S104、响应于第一指令,第一电子设备基于第一扩展显示区运行的应用程序窗口将悬浮窗口的显示内容切换为第二用户界面。
示例性的,如图4D所示,第二电子设备为电子设备200,电子设备200投屏显示的用户界面12包括控件302。控件302可以接收用户的输入操作(例如触摸操作),响应于上述输入操作,电子设备200可以向电子设备100发送第一指令,第一指令包括上述输入操作的触摸信息。基于第一指令中携带的上述输入操作的触摸信息,响应于上述输入操作,电子设备100切换悬浮窗口1的显示内容为第二用户界面,即图4E所示的音乐应用的歌单界面16,并将歌单界面16对应的图像数据发送到电子设备200,电子设备200显示图4F所示的歌单界面16。
示例性的,如图7F所示,第二电子设备为电子设备200,电子设备200投屏显示的视频通话内容19包括显示区403B。显示区403B可以接收用户的输入操作(例如触摸操作),响应于上述输入操作,电子设备200可以向电子设备100发送第一指令,第一指令包括上述输入操作的触摸信息。基于第一指令中携带的上述输入操作的触摸信息,响应于上述输入操作,电子设备100切换视频通话内容19中显示区403A和显示区B的视频源,即切换悬浮窗口1的显示内容为第二用户界面(即图7G所示的视频通话内容19),并将切换后的视频通话内容19的图像数据发送到电子设备200,电子设备200显示图7H所示的视频通话内容19。
需要说明的是,图7B和图7F所示的悬浮窗口内的具体显示内容不同,但均对应同一个应用程序窗口,即视频通话内容19对应的应用程序窗口。
在一种实现方式中,上述第一指令包括作用于第二电子设备显示的投屏窗口内第一用界面的第二操作的第一坐标;上述第一电子设备基于第一扩展显示区运行的应用程序窗口将悬浮窗口的显示内容切换为第二用户界面,具体包括:第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面;电子设备将悬浮窗口的显示内容切换为第二用户界面,并将第二用户界面的图像数据发送到第二电子设备。
示例性的,参考场景1的相关实施例,第二操作可以是如图4D所示的作用于控件302的输入操作,第一扩展显示区最近运行的应用程序窗口即为音乐应用的用户界面12对应的应用程序窗口。
示例性的,参考场景2的相关实施例,第二操作可以是如图7F所示的作用于显示区403B的输入操作,第一扩展显示区最近运行的应用程序窗口即为视频通话内容19对应的应用程序窗口。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标;上述第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面,具体包括:基于投屏窗口在第二电子设备显示屏上的位置,获取第一原始触摸坐标的第一相对坐标,第一相对坐标是第一原始触摸坐标在投屏窗口内的相对坐标;基于第一相对坐标,以及投屏窗口和第一电子设备的全屏显示窗口的窗口比例,确定第一相对坐标对应的第二相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第二相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
参考图11E的相关实施例,上述第二操作可以是图11E描述的触控操作4,第一坐标为电子设备200检测到的触控操作4的原始触摸坐标,第一相对坐标可以是前述相对坐标4,第二相对坐标可以是前述相对坐标5。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标的第一相对坐标,第一相对坐标为第一原始触摸坐标在投屏窗口内的相对坐标;上述第一电子设备基于第一坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换投屏显示内容为第二用户界面,具体包括:基于第一相对坐标,以及投屏窗口和第一电子设备的全屏显示窗口的窗口比例,确定第一相对坐标对应的第二相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第二相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
可以理解,在一种实现方式中,第二电子设备检测到触摸操作4后,可以计算触摸操作4的原始触摸坐标的相对坐标4,并在发送给第一电子设备的第一指令里携带上述相对坐标4;然后第一电子设备基于上述相对坐标4和第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
在一种实现方式中,第一坐标为第二操作在第二电子设备的显示屏上的第一原始触摸坐标对应的第二相对坐标,第二相对坐标是基于第一原始触摸坐标的第一相对坐标,以及投屏 窗口和第一电子设备的全屏显示窗口的窗口比例确定的;其中,第一相对坐标是第一原始触摸坐标在投屏窗口内的相对坐标,第二相对坐标为投屏窗口内的第一相对坐标在第一电子设备的全屏显示窗口内的相对坐标。
可以理解,在一种实现方式中,第二电子设备检测到触摸操作4后,可以计算触摸操作4的原始触摸坐标的相对坐标4,并计算相对坐标4对应的相对坐标5,然后在发送给第一电子设备的第一指令里携带上述相对坐标5;第一电子设备基于上述相对坐标5和第一扩展显示区最近运行的应用程序窗口的界面布局,确定第二操作用于切换悬浮窗口的显示内容切换为第二用户界面。
在一种实现方式中,上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之前,所述方法还包括:第一电子设备显示第一应用的第一应用程序窗口的第一用户界面;检测到针对目标悬浮对象的第三操作,目标悬浮对象为第一应用或第一用于程序窗口;响应于第三操作,第一电子设备创建第一扩展显示区,并将主屏中运行的目标悬浮对象迁移至第一扩展显示区;上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口,具体包括:第一电子设备基于第一扩展显示区运行的目标悬浮对象的图像数据确定悬浮窗口的显示内容,基于主屏显示区的图像数据确定主屏的显示内容,并在主屏的显示内容上叠加显示悬浮窗口。
在一种实现方式中,目标悬浮对象为第一应用,第一扩展显示区用于运行第一应用,悬浮窗口用于基于第一扩展显示区的图像数据显示第一应用的用户界面;或者,目标悬浮对象为第一应用程序窗口,第一扩展显示区用于运行第一应用程序窗口,悬浮窗口用于基于第一扩展显示区的图像数据显示第一应用程序窗口的用户界面。
示例性的,参见场景1的相关实施例,目标悬浮对象为第一应用,第一应用可以为前述音乐应用,上述第一用户界面可以为图3B所示的用户界面12。上述第三操作可以是前述应用悬浮操作,例如图3B所示的用户的双指在显示屏上滑动,且滑动过程中双指逐渐靠近。响应于上述应用悬浮操作,电子设备100创建音乐应用对应的扩展显示区1,并将主屏显示区中的音乐应用迁移至扩展显示区1,悬浮窗口用于基于扩展显示区1运行的音乐应用的图像数据显示音乐应用的用户界面。例如,图3C所示的悬浮窗口1基于扩展显示区1显示用户界面12。
示例性的,参见场景1的相关实施例,目标悬浮对象为第一应用程序窗口,第一应用程序窗口可以为前述视频通话内容19对应的应用程序窗口,上述第一应用程序窗口的用户界面可以为图7A所示的视频通话内容19。上述第三操作可以是前述界面悬浮操作,例如图7A所示的作用于视频通话内容19中的控件404的触摸操作。响应于上述界面悬浮操作,电子设备100创建视频通话内容19对应的扩展显示区1,并将主屏显示区中的视频通话内容19迁移至扩展显示区,悬浮窗口用于基于扩展显示区1运行的视频通话内容19的图像数据显示视频通话内容19。例如,图7B所示的悬浮窗口2基于扩展显示区1显示视频通话内容19。
在一种实现方式中,上述第一电子设备基于第一扩展显示区的图像数据将悬浮窗口的显示内容投屏到第二电子设备之后,所述方法还包括:检测到作用于悬浮窗口显示的第一用户界面的第四操作;响应于第四操作,第一电子设备基于第一扩展显示区将悬浮窗口的显示内容切换为第三用户界面。
本申请实施例中,将悬浮窗口的显示内容投屏到第二电子设备之后,可以通过第一电子设备显示的悬浮窗口对投屏内容进行正向控制。
示例性的,参见场景1正向控制的相关实施例,悬浮窗口1内显示图4A所示的用户界 面12,用户界面12包括控件301。上述第四操作可以是图4A所示的作用于控件301的触摸操作,响应于上述触摸操作,电子设备100基于扩展显示区1运行的音乐应用显示图4B所示的音乐应用的歌曲播放界面15。
示例性的,参见场景2正向控制的相关实施例,悬浮窗口2内显示图7I所示的视频通话内容19,视频通话内容19包括显示区403A和显示区403C。上述第四操作可以是图7I所示的作用于显示区403C的触摸操作,响应于上述触摸操作,电子设备100基于扩展显示区1运行的视频通话内容19显示图7J所示的视频通话内容19。
在一种实现方式中,上述响应于第四操作,第一电子设备基于第一扩展显示区将悬浮窗口的显示内容切换为第三用户界面,具体包括:获取第四操作的第二原始触摸坐标的第三相对坐标,第三相对坐标是第二原始触摸坐标在悬浮窗口内的相对坐标;基于第三相对坐标,以及悬浮窗口和第一电子设备的全屏显示窗口的窗口比例,确定第三相对坐标对应的第四相对坐标,第四相对坐标为第三相对坐标在第一电子设备的全屏显示窗口内的相对坐标;基于第四相对坐标以及第一扩展显示区最近运行的应用程序窗口的界面布局,确定第四操作用于切换悬浮窗口的显示内容切换为第三用户界面。
参考图11C的相关实施例,上述第四操作可以是图11C描述的触控操作3,第二原始坐标可以为触控操作3的原始触摸坐标,第三相对坐标可以是前述相对坐标2,第四相对坐标可以是前述相对坐标1。
在一种实现方式中,主屏的显示内容为第四用户界面,上述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之后,所述方法还包括:检测到针对主屏的第五操作,响应于第五操作,第一电子设备基于主屏显示区的图像数据将主屏的显示内容投屏到第二电子设备;接收第二电子设备发送的针对投屏显示的第四用界面的第二指令;响应于第二指令,第一电子设备基于主屏显示区最近运行的应用程序窗口将主屏的显示内容切换为第五用户界面。
本申请实施例中,还可以将主屏的显示内容投屏到投屏目标端,并可以通过投屏目标端反向控制第一电子设备的主屏的显示内容。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (13)

  1. 一种投屏方法,其特征在于,包括:
    第一电子设备在主屏的显示内容上叠加显示悬浮窗口,所述悬浮窗口内显示第一用户界面,所述主屏的显示内容是基于主屏显示区的图像数据确定的,所述悬浮窗口的显示内容是基于第一扩展显示区的图像数据确定的;
    检测到针对所述悬浮窗口的第一操作,响应于所述第一操作,所述第一电子设备基于第一扩展显示区的图像数据将所述悬浮窗口的显示内容投屏到第二电子设备;
    接收所述第二电子设备发送的针对投屏显示的第一用界面的第一指令;
    响应于所述第一指令,所述第一电子设备基于所述第一扩展显示区运行的应用程序窗口将所述悬浮窗口的显示内容切换为第二用户界面。
  2. 根据权利要求1所述的方法,其特征在于,所述第一指令包括作用于所述第二电子设备显示的投屏窗口内所述第一用界面的第二操作的第一坐标;所述第一电子设备基于所述第一扩展显示区运行的应用程序窗口将所述悬浮窗口的显示内容切换为第二用户界面,具体包括:
    所述第一电子设备基于所述第一坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第二操作用于切换投屏显示内容为所述第二用户界面;
    所述电子设备将所述悬浮窗口的显示内容切换为所述第二用户界面,并将所述第二用户界面的图像数据发送到第二电子设备。
  3. 根据权利要求2所述的方法,其特征在于,所述第一坐标为所述第二操作在所述第二电子设备的显示屏上的第一原始触摸坐标;所述第一电子设备基于所述第一坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第二操作用于切换投屏显示内容为所述第二用户界面,具体包括:
    基于所述投屏窗口在所述第二电子设备显示屏上的位置,获取所述第一原始触摸坐标的第一相对坐标,所述第一相对坐标是所述第一原始触摸坐标在所述投屏窗口内的相对坐标;
    基于所述第一相对坐标,以及所述投屏窗口和所述第一电子设备的全屏显示窗口的窗口比例,确定所述第一相对坐标对应的第二相对坐标,所述第二相对坐标为所述投屏窗口内的所述第一相对坐标在所述第一电子设备的全屏显示窗口内的相对坐标;
    基于所述第二相对坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第二操作用于切换所述悬浮窗口的显示内容切换为所述第二用户界面。
  4. 根据权利要求2所述的方法,其特征在于,所述第一坐标为所述第二操作在所述第二电子设备的显示屏上的第一原始触摸坐标的第一相对坐标,所述第一相对坐标为所述第一原始触摸坐标在所述投屏窗口内的相对坐标;所述第一电子设备基于所述第一坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第二操作用于切换投屏显示内容为所述第二用户界面,具体包括:
    基于所述第一相对坐标,以及所述投屏窗口和所述第一电子设备的全屏显示窗口的窗口比例,确定所述第一相对坐标对应的第二相对坐标,所述第二相对坐标为所述投屏窗口内的 所述第一相对坐标在所述第一电子设备的全屏显示窗口内的相对坐标;
    基于所述第二相对坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第二操作用于切换所述悬浮窗口的显示内容切换为所述第二用户界面。
  5. 根据权利要求2所述的方法,其特征在于,所述第一坐标为所述第二操作在所述第二电子设备的显示屏上的第一原始触摸坐标对应的第二相对坐标,所述第二相对坐标是基于所述第一原始触摸坐标的第一相对坐标,以及所述投屏窗口和所述第一电子设备的全屏显示窗口的窗口比例确定的;其中,所述第一相对坐标是所述第一原始触摸坐标在所述投屏窗口内的相对坐标,所述第二相对坐标为所述投屏窗口内的所述第一相对坐标在所述第一电子设备的全屏显示窗口内的相对坐标。
  6. 根据权利要求1所述的方法,其特征在于,所述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之前,所述方法还包括:
    所述第一电子设备显示第一应用的第一应用程序窗口的第一用户界面;
    检测到针对目标悬浮对象的第三操作,所述目标悬浮对象为所述第一应用或所述第一用于程序窗口;
    响应于所述第三操作,所述第一电子设备创建所述第一扩展显示区,并将所述主屏中运行的所述目标悬浮对象迁移至所述第一扩展显示区;
    所述第一电子设备在主屏的显示内容上叠加显示悬浮窗口,具体包括:
    所述第一电子设备基于所述第一扩展显示区运行的所述目标悬浮对象的图像数据确定所述悬浮窗口的显示内容,基于所述主屏显示区的图像数据确定所述主屏的显示内容,并在所述主屏的显示内容上叠加显示所述悬浮窗口。
  7. 根据权利要求1所述的方法,其特征在于,所述目标悬浮对象为所述第一应用,所述第一扩展显示区用于运行所述第一应用,所述悬浮窗口用于基于所述第一扩展显示区的图像数据显示所述第一应用的用户界面;
    或者,
    所述目标悬浮对象为所述第一应用程序窗口,所述第一扩展显示区用于运行所述第一应用程序窗口,所述悬浮窗口用于基于所述第一扩展显示区的图像数据显示所述第一应用程序窗口的用户界面。
  8. 根据权利要求1所述的方法,其特征在于,所述第一电子设备基于第一扩展显示区的图像数据将所述悬浮窗口的显示内容投屏到第二电子设备之后,所述还包括:
    检测到作用于所述悬浮窗口显示的所述第一用户界面的第四操作;
    响应于所述第四操作,所述第一电子设备基于所述第一扩展显示区将所述悬浮窗口的显示内容切换为第三用户界面。
  9. 根据权利要求8所述的方法,其特征在于,所述响应于所述第四操作,所述第一电子设备基于所述第一扩展显示区将所述悬浮窗口的显示内容切换为第三用户界面,具体包括:
    获取所述第四操作的第二原始触摸坐标的第三相对坐标,所述第三相对坐标是所述第二 原始触摸坐标在所述悬浮窗口内的相对坐标;
    基于所述第三相对坐标,以及所述悬浮窗口和所述第一电子设备的全屏显示窗口的窗口比例,确定所述第三相对坐标对应的第四相对坐标,所述第四相对坐标为所述第三相对坐标在所述第一电子设备的全屏显示窗口内的相对坐标;
    基于所述第四相对坐标以及所述第一扩展显示区最近运行的应用程序窗口的界面布局,确定所述第四操作用于切换所述悬浮窗口的显示内容切换为第三用户界面。
  10. 根据权利要求1所述的方法,其特征在于,所述主屏的显示内容为第四用户界面,所述第一电子设备在主屏的显示内容上叠加显示悬浮窗口之后,所述方法还包括:
    检测到针对所述主屏的第五操作,响应于所述第五操作,所述第一电子设备基于所述主屏显示区的图像数据将所述主屏的显示内容投屏到所述第二电子设备;
    接收所述第二电子设备发送的针对投屏显示的所述第四用界面的第二指令;
    响应于所述第二指令,所述第一电子设备基于所述主屏显示区最近运行的应用程序窗口将所述主屏的显示内容切换为第五用户界面。
  11. 一种电子设备,包括触控屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至10任一项所述的方法。
  12. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至10任一项所述的方法。
  13. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至10任一项所述的方法。
PCT/CN2022/083309 2021-03-31 2022-03-28 一种投屏方法及相关装置 WO2022206659A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22778841.1A EP4300284A1 (en) 2021-03-31 2022-03-28 Screencast method and related apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110352845.7A CN115145515A (zh) 2021-03-31 2021-03-31 一种投屏方法及相关装置
CN202110352845.7 2021-03-31

Publications (1)

Publication Number Publication Date
WO2022206659A1 true WO2022206659A1 (zh) 2022-10-06

Family

ID=83405347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083309 WO2022206659A1 (zh) 2021-03-31 2022-03-28 一种投屏方法及相关装置

Country Status (3)

Country Link
EP (1) EP4300284A1 (zh)
CN (1) CN115145515A (zh)
WO (1) WO2022206659A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493375A (zh) * 2017-06-30 2017-12-19 北京超卓科技有限公司 移动终端扩展式投屏方法及投屏系统
CN110377250A (zh) * 2019-06-05 2019-10-25 华为技术有限公司 一种投屏场景下的触控方法及电子设备
CN111324327A (zh) * 2020-02-20 2020-06-23 华为技术有限公司 投屏方法及终端设备
CN111634188A (zh) * 2020-05-29 2020-09-08 北京百度网讯科技有限公司 用于投屏的方法和装置
CN111880757A (zh) * 2020-06-30 2020-11-03 北京小米移动软件有限公司 投屏方法、投屏装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493375A (zh) * 2017-06-30 2017-12-19 北京超卓科技有限公司 移动终端扩展式投屏方法及投屏系统
CN110377250A (zh) * 2019-06-05 2019-10-25 华为技术有限公司 一种投屏场景下的触控方法及电子设备
CN111324327A (zh) * 2020-02-20 2020-06-23 华为技术有限公司 投屏方法及终端设备
CN111634188A (zh) * 2020-05-29 2020-09-08 北京百度网讯科技有限公司 用于投屏的方法和装置
CN111880757A (zh) * 2020-06-30 2020-11-03 北京小米移动软件有限公司 投屏方法、投屏装置及存储介质

Also Published As

Publication number Publication date
CN115145515A (zh) 2022-10-04
EP4300284A1 (en) 2024-01-03

Similar Documents

Publication Publication Date Title
JP7142783B2 (ja) 音声制御方法及び電子装置
EP3896946B1 (en) Display method for electronic device having flexible screen and electronic device
US11567623B2 (en) Displaying interfaces in different display areas based on activities
US11595566B2 (en) Camera switching method for terminal, and terminal
WO2022100315A1 (zh) 应用界面的生成方法及相关装置
WO2020224485A1 (zh) 一种截屏方法及电子设备
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021000881A1 (zh) 一种分屏方法及电子设备
US20210263564A1 (en) Display Method for Flexible Display, and Terminal
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2022042285A1 (zh) 一种应用程序界面显示的方法及电子设备
KR20210068097A (ko) 시스템 탐색 바 표시 제어 방법, 그래픽 사용자 인터페이스 및 전자 디바이스
WO2022199509A1 (zh) 应用执行绘制操作的方法及电子设备
WO2021057203A1 (zh) 一种操作方法和电子设备
WO2022078105A1 (zh) 内存管理方法、电子设备以及计算机可读存储介质
WO2021042878A1 (zh) 一种拍摄方法及电子设备
WO2021057699A1 (zh) 具有柔性屏幕的电子设备的控制方法及电子设备
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
US20240094858A1 (en) Window display method and electronic device
WO2023088459A1 (zh) 设备协同方法及相关装置
WO2022206681A1 (zh) 一种窗口的显示方法以及相关装置
WO2022228043A1 (zh) 显示方法、电子设备、存储介质和程序产品
WO2022206659A1 (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: 22778841

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022778841

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 18552854

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022778841

Country of ref document: EP

Effective date: 20230926

NENP Non-entry into the national phase

Ref country code: DE