WO2021018274A1 - Screen projection method and electronic device - Google Patents

Screen projection method and electronic device Download PDF

Info

Publication number
WO2021018274A1
WO2021018274A1 PCT/CN2020/106096 CN2020106096W WO2021018274A1 WO 2021018274 A1 WO2021018274 A1 WO 2021018274A1 CN 2020106096 W CN2020106096 W CN 2020106096W WO 2021018274 A1 WO2021018274 A1 WO 2021018274A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
screen
application
identification
user
Prior art date
Application number
PCT/CN2020/106096
Other languages
French (fr)
Chinese (zh)
Inventor
周星辰
范振华
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021018274A1 publication Critical patent/WO2021018274A1/en

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
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • This application relates to the field of terminal technology, and in particular to a screen projection method and electronic equipment.
  • Screen projection technology refers to the use of wireless communication technology to deliver the content on the electronic device A to the electronic device B, so that the electronic device B can display the content on the electronic device A.
  • content on electronic devices with smaller displays such as mobile phones, tablet computers, etc.
  • larger displays such as televisions, projectors, etc.
  • the content on the electronic device with the smaller display screen can be viewed on the electronic device with the larger display screen, so as to achieve a better viewing effect.
  • the embodiments of the present application provide a screen projection method and electronic device, which help reduce the complexity of the operation mode for triggering the electronic device to initiate the screen projection, and improve the efficiency of triggering the source device to initiate the screen projection.
  • a screen projection method is applied to a first electronic device, the first electronic device includes a first display screen, and the method includes:
  • the first electronic device receives the first operation
  • the first electronic device turns off the first display screen, and obtains screen projection content from a target application of at least one currently running application;
  • the first electronic device sends the projected content to the second electronic device.
  • the user can initiate a screen projection only by operating the first electronic device once, which helps to reduce the operation mode that triggers the electronic device to initiate a screen projection The complexity of triggering the first electronic device to initiate screen projection is improved.
  • the first operation is a screen-off operation.
  • the operation of clicking the power button the operation of closing the cover of the smart cover.
  • the first electronic device is a flip electronic device, and the first operation is an operation of the outer cover of the device.
  • the first operation may be an operation of folding the first display screen from an unfolded state to a closed state.
  • the first electronic device can turn off a part of the first display screen or turn off the entire first display screen in response to the operation of folding the first display screen from the unfolded state to the closed state. Turn off the screen.
  • the first operation may be an operation of shrinking the first display screen.
  • the first electronic device can turn off a part of the first display screen (ie, the contracted part) in response to the operation of shrinking the first display screen, or Turn off the entire first display screen.
  • the method in response to the first operation, after turning off the first display screen, and before acquiring the projected content from the target application in at least one currently running application, the method further includes:
  • the method before the first electronic device sends the projected content to the second electronic device, the method further includes:
  • the environment where the first electronic device is located is determined to identify whether the user intends to cast a screen. For example, when the first electronic device determines whether the display screen is blocked, for example, the first electronic device includes a first display screen, the first display screen is a foldable display screen and an inner screen, and the first electronic device also includes an outer screen. , The first electronic device can determine whether the external screen is blocked. As another example, the first electronic device only includes the first display screen, and the first electronic device can determine whether the first display screen is blocked. When the display screen of the first electronic device is not blocked, the first electronic device sends the projected content to the second electronic device. By judging whether the display screen is blocked, it can be recognized whether the user puts the first electronic device in the bag or pocket, etc.
  • the first electronic device when the user puts the first electronic device in the bag or pocket, the first electronic device is no longer used The device may not need to cast the screen. Further, the first electronic device can also learn the user's behavior habit of using the electronic device through the user's history of using the device, and further determine whether to send the screened content to the second electronic device according to the user's behavior habit of using the electronic device.
  • a control interface is displayed on the second display screen, and the control interface is used to implement quick operations on the target application.
  • the second display screen may be a part or all of the display area of the first display screen, or a display screen different from the first display screen. Thus, it is convenient for users to control the content of the screen.
  • the first electronic device determines a control interface corresponding to the type of the target application from a preset control interface corresponding to the type of the application, and displays it in the second The control interface corresponding to the target application type is displayed on the screen. Help simplify the implementation.
  • the first electronic device recognizes the virtual button with touch function in the target application, and displays the virtual button with touch function on the second display screen according to the virtual button with touch function.
  • the control interface for controlling the target application is displayed. It helps to improve the reliability of the displayed control interface.
  • the first electronic device when it does not recognize the virtual button with touch function in the target application, it determines from the preset control interface corresponding to the type of application A control interface corresponding to the type of the target application, and a control interface corresponding to the type of the target application is displayed on the external screen. Help simplify the implementation.
  • the first electronic device determines the target application from at least one currently running application, including:
  • the first electronic device displays the identification of at least one application that supports the screen projection function among the currently running at least one application on the second display screen; receiving an operation of selecting the identification of the application displayed on the external screen by the user Then, in response to the operation of the user selecting the identifier of the application displayed on the external screen, it is determined that the target application is the application identified by the identifier of the application selected by the user. Help improve the interaction between the device and the user.
  • the method further includes:
  • the first electronic device determines the identification of the target electronic device from the identification of the at least one electronic device, and the identification of the target electronic device is used to identify the second electronic device.
  • the first electronic device determining the identification of the target electronic device from the identification of the at least one electronic device includes:
  • the first electronic device determines, from the identification of the at least one electronic device, the identification used to identify the private electronic device as the identification of the target electronic device. Help reduce user operations.
  • the first electronic device determining the identification of the target electronic device from the identification of the at least one electronic device includes:
  • the first electronic device displays the identification of at least one electronic device on the second display screen; after receiving the user's operation to select the identification of the electronic device displayed on the second display screen, in response to the above operation, the The identification of the electronic device selected by the user is used as the identification of the target electronic device.
  • each of the identifications of the at least one electronic device is used to identify a public electronic device.
  • the method further includes:
  • the first electronic device receives the second operation, and in response to the second operation, stops projection. For example, after stopping the screen projection, the first electronic device displays the user interface where the screen projection content is located on the first display screen.
  • the second operation may be an unlocking operation.
  • the second operation may be an operation of unfolding the first display screen from a closed state to an unfolded state.
  • the first display screen is a retractable display screen
  • the second operation may be an operation of extending the first display screen, or the like.
  • an embodiment of the present application also provides a method for controlling projection, which is applied to a first electronic device, where the first electronic device includes a first application, and the method includes:
  • the first electronic device obtains the screencast content from the first application
  • the first electronic device sends the projected content to the second electronic device
  • the first electronic device determines a control interface corresponding to the type of the first application program from the preset control interface corresponding to the type of the application program after the screen projection is successful;
  • the first electronic device displays the determined control interface on a display screen, and the control interface includes a virtual button with a touch function. Wherein, after receiving an operation on a certain virtual button on the control interface, the first electronic device responds to the foregoing operation to realize the control of the projection content presented on the second electronic device.
  • control interface corresponding to the type of the application program is preset, which helps to simplify the way of displaying the control interface.
  • the first electronic device may configure a control interface corresponding to the type of application in the first electronic device before leaving the factory; or, the first electronic device may be installed in accordance with its own application Program, obtain the control interface corresponding to the type of application from the server.
  • the embodiments of the present application also provide another method of projection control, which is applied to a first electronic device, the first electronic device includes a first application, and the method includes:
  • the first electronic device obtains the screencast content from the first application
  • the first electronic device sends the projected content to the second electronic device
  • the first electronic device recognizes a virtual button with a touch function from the first application, and displays a control interface on the display screen according to the recognized virtual button.
  • the icons of the virtual buttons included on the control interface may be obtained by the first electronic device re-arranging, cropping and/or scaling the virtual buttons recognized from the first application.
  • the control interface includes a virtual button with the same function as the virtual button recognized by the first electronic device from the first application.
  • the first electronic device receives an operation on a certain virtual button on the control interface, in response to the above operation, it realizes the control of the projection content presented on the second electronic device.
  • the first electronic device recognizing the virtual button with touch function from the first application includes:
  • the first electronic device is based on the user's historical operation record of the first application, or a software development kit (SDK) interface provided by the first application, or a predefined in the first application
  • SDK software development kit
  • the position coordinates of the virtual button on the user interface, and the virtual button with touch function is recognized from the first application.
  • the first electronic device recognizes a virtual button with a touch function from the first application program by performing voice analysis on the first application program. Help simplify the implementation.
  • the first electronic device when it does not recognize the virtual button with touch function from the first application, it determines from the preset control interface corresponding to the type of application A control interface corresponding to the type of the first application program, and the determined control interface is displayed on the display screen. It helps to simplify the implementation while meeting user needs.
  • control interface further includes an identification of at least one alternative application program and an identification of at least one alternative screen projection device. It is helpful for users to switch screen-casting applications and/or screen-casting devices according to their needs.
  • control interface further includes a virtual button for canceling screen projection. It helps users to actively stop screencasting according to their needs and improve the interaction between the device and the user.
  • a chip provided by an embodiment of the present application is coupled with a memory in a device, so that the chip invokes program instructions stored in the memory during operation to implement the above-mentioned aspects and aspects of the embodiments of the present application. Any possible design method involved in all aspects.
  • a computer storage medium of an embodiment of the present application stores program instructions, when the program instructions run on an electronic device, the device executes the above aspects of the embodiments of the present application and the various aspects related to Any possible design method.
  • a computer program product of an embodiment of the present application when the computer program product runs on an electronic device, causes the electronic device to execute and implement the above-mentioned aspects of the embodiments of the present application and any possible aspects involved in each aspect Design method.
  • FIG. 1 is a schematic diagram of a scenario applied by an embodiment of this application
  • FIG. 2 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the application.
  • 3A is a schematic diagram of the physical form of an electronic device according to an embodiment of the application.
  • 3B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • 4A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application.
  • 4B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • 4C is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • 5A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application.
  • 5B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • 5C is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • 6A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application.
  • 6B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application.
  • FIG. 7 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the application.
  • FIG. 8 is a schematic flowchart of a screen projection method according to an embodiment of the application.
  • FIG. 9 is a schematic diagram of another scenario applied by an embodiment of this application.
  • FIG. 10 is a schematic diagram of a user interface according to an embodiment of the application.
  • 11A is a schematic diagram of another user interface according to an embodiment of the application.
  • FIG. 11B is a schematic diagram of another user interface according to an embodiment of the application.
  • 11C is a schematic diagram of another user interface according to an embodiment of the application.
  • 11D is a schematic diagram of another user interface according to an embodiment of the application.
  • FIG. 12A is a schematic diagram of another user interface according to an embodiment of the application.
  • 12B is a schematic diagram of another user interface according to an embodiment of the application.
  • FIG. 13 is a schematic diagram of another user interface according to an embodiment of the application.
  • 14A is a schematic diagram of a control interface according to an embodiment of the application.
  • 14B is a schematic diagram of another control interface according to an embodiment of the application.
  • 14C is a schematic diagram of another control interface according to an embodiment of the application.
  • 14D is a schematic diagram of another control interface according to an embodiment of the application.
  • 14E is a schematic diagram of another control interface according to an embodiment of the application.
  • 14F is a schematic diagram of another control interface according to an embodiment of the application.
  • 14G is a schematic diagram of another control interface according to an embodiment of the application.
  • 15 is a schematic diagram of another user interface according to an embodiment of the application.
  • 16 is a schematic flowchart of another screen projection method according to an embodiment of the application.
  • 17 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application.
  • FIG. 18 is a schematic flowchart of another screen projection method according to an embodiment of the application.
  • 19 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application.
  • 20 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application.
  • FIG. 21 is a schematic structural diagram of another electronic device according to an embodiment of the application.
  • FIG. 22 is a schematic structural diagram of another electronic device according to an embodiment of the application.
  • the at least two electronic devices include a source device and a target device.
  • the source device can also be referred to as the source device, which is an electronic device that initiates screen projection.
  • the source device is used to send screencast content.
  • the screencast content may be video, audio, image, document, game, etc., which is not limited.
  • the target device can also be referred to as a client device (client device) or a peer device, etc., and is an electronic device that receives projected screen content.
  • client device client device
  • the target device can present or display the projected content in a corresponding layout.
  • the layout of the projected content on the target device and the layout of the source device in the embodiment of the present application may be different or the same.
  • the source device may be a portable electronic device, such as a mobile phone, a tablet computer, a laptop computer (Laptop), a wearable device (such as a smart watch), and the like.
  • a portable electronic device such as a mobile phone, a tablet computer, a laptop computer (Laptop), a wearable device (such as a smart watch), and the like.
  • Exemplary embodiments of the aforementioned portable electronic devices include, but are not limited to, carrying Or other operating systems.
  • the embodiments of the present application do not limit the physical form of the portable electronic device.
  • the portable electronic device may be a foldable device, a candy bar device, a flip device, etc.
  • the portable electronic device in the embodiment of the present application may also be equipped with a smart protective cover.
  • the source device may also be an all-in-one computer, a desktop computer, or the like.
  • the target device may be an electronic device such as a tablet computer, an all-in-one computer, a desktop computer, a television, a monitor, a projector, a speaker, etc., which can be used to receive and present or display projected content.
  • Fig. 1 shows an application scenario of an embodiment of the present application.
  • the electronic device 10 is a source device, and the electronic device 20 is a target device.
  • the electronic device 10 can send the projected content to the electronic device 20, so that the projected content can be presented or displayed by the electronic device 20, thereby achieving a better viewing effect.
  • the electronic device 10 and the electronic device 20 may establish a connection in a wired manner (such as through a power cord) and/or wireless (such as wireless fidelity (wi-fi), Bluetooth, etc.).
  • a wired manner such as through a power cord
  • wireless such as wireless fidelity (wi-fi), Bluetooth, etc.
  • the embodiment of the present application does not limit the number of target end devices that receive the projection content sent by the source end device.
  • the electronic device 10 may send the screen content to two or more electronic devices including the electronic device 20, or it may only send the screen content ⁇ 20 ⁇ To the electronic device 20.
  • the embodiment of the present application provides a screen projection method so that the source device can initiate a screen projection in response to the first operation. That is, the user can operate the source-end device once to enable the source-end device to perform screen projection, thereby helping to reduce the complexity of the operation mode that triggers the source-end device to initiate the screen-casting, and improve the efficiency of triggering the source-end device to initiate the screen-casting.
  • the first operation may be used to control the screen to turn off the electronic device. In this case, the first operation may be referred to as a screen turning off operation.
  • the electronic device in the embodiment of the present application may display a black screen and not lock the screen, or display a black screen and lock the screen, or display the default user interface and not lock the screen, or display the default user interface and lock the screen , Or part of the black screen, part of the default user interface, etc., where the default user interface may include date and time information, and/or commonly used application icons, etc.
  • the content included in the default user interface can be set according to the user's needs, or the electronic device can be set before leaving the factory. For example, if the electronic device is in a locked screen state when the screen is turned off, the first operation may also be called a screen lock operation.
  • the source device can actively initiate a screen projection when the screen is off, and send the projected content to the target device for presentation or display, the user can continue to view the corresponding content on the target device, which helps to improve the user experience .
  • the first operation may also be other operations. Specifically, the implementation of the first operation may be related to the physical form of the electronic device.
  • the source device and target device and embodiments for using such source device and target device will be introduced in the following.
  • FIG. 2 shows a schematic diagram of the hardware structure of an electronic device 10 according to an embodiment of the present application.
  • the electronic device 10 includes a processor 110, an internal memory 121, an external memory interface 122, a camera 131, a first display screen 141, a sensor module 150, an audio module 160, a speaker 161, a receiver 162, a microphone 163, and a headset.
  • Interface 164 buttons 170, subscriber identification module (SIM) card interface 171, universal serial bus (USB) interface 172, charging management module 180, power management module 181, battery 182, mobile communication module 191 and wireless communication module 192.
  • SIM subscriber identification module
  • USB universal serial bus
  • the electronic device 10 further includes a second display screen 142.
  • the first display screen 141 and the second display screen 142 may be located on different faces of the electronic device 10.
  • the first display screen 141 is located on the first face of the electronic device 10 (for example, the front face of the electronic device 10)
  • the second The display screen 142 is located on the second side of the electronic device 10 (such as the back of the electronic device 10).
  • the electronic device 10 in the embodiment of the present application may also include a motor, an indicator, a mechanical shaft, and the like.
  • the hardware structure shown in FIG. 2 is only an example.
  • the source device of the embodiment of the present application may have more or fewer components than the electronic device 10 shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits. It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), and an image signal processor.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • video codec video codec
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 may also be provided with a buffer for storing part of the program and/or data.
  • the buffer in the processor 110 may be a cache memory.
  • the buffer may be used to store programs and/or data that have just been used, generated, or recycled by the processor 110. If the processor 110 needs to use the program and/or data, it can be directly called from the buffer. The time for the processor 110 to obtain programs and/or data is reduced, thereby helping to improve the efficiency of the system.
  • the internal memory 121 may be used to store programs and/or data. It should be noted that the program in the embodiment of the present application may also be referred to as a program instruction.
  • the internal memory 121 includes a program storage area and a data storage area.
  • the storage program area can be used to store an operating system (such as Android, IOS, and other operating systems), a computer program required for at least one function (such as screen lock, screen projection), and the like.
  • the storage data area may be used to store data created and/or acquired during the use of the electronic device (such as the identification and image of the target device).
  • the processor 110 may call the program and/or data stored in the internal memory 121 to enable the electronic device 10 to execute a corresponding method, thereby implementing one or more functions.
  • the processor 110 calls certain programs and/or data in the internal memory 121, so that the electronic device 10 executes the screen projection method provided in the embodiment of the present application, thereby improving the efficiency of the source device initiating the screen projection and improving the user experience .
  • the internal memory 121 may be a high-speed random access memory, and/or a non-volatile memory.
  • the non-volatile memory may include at least one of one or more disk storage devices, flash memory devices, and/or universal flash storage (UFS).
  • the external memory interface 122 can be used to connect an external memory card (for example, a Micro SD card) to expand the storage capacity of the electronic device 10.
  • the external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function.
  • the electronic device 10 may save files such as images, music, and videos in an external memory card through the external memory interface 122.
  • the camera 131 can be used to capture or collect moving and static images.
  • the camera 131 includes a lens and an image sensor.
  • the optical image generated by the object through the lens is projected onto the image sensor, and then converted into an electrical signal for subsequent processing.
  • the image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the image sensor converts the light signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • the camera 131 may include one or more cameras.
  • the first display screen 141 may include a display panel for displaying a graphical user interface (GUI).
  • GUI graphical user interface
  • the electronic device 10 displays a user interface on the first display screen 141 to present or display corresponding content to the user, such as videos, texts, images, virtual keys or virtual buttons for realizing interaction between the user and the electronic device 10, etc.
  • the display panel may adopt 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.
  • the electronic device 10 may implement a display function through a GPU, the first display screen 141, an application processor, and the like.
  • the first display screen 141 in the embodiment of the present application may be a foldable screen or a non-foldable screen, which is not limited.
  • the specific implementation manner of the second display screen 142 can be referred to the specific implementation manner of the first display screen 141, which is not repeated here.
  • the electronic device 10 is an electronic device with a foldable screen, and includes a first display screen 141 and a second display screen 142, where the first display screen 141 is a foldable screen, and the second display screen 142 is a non-foldable screen.
  • the first display screen 141 is located on the first surface of the electronic device 10
  • the second display screen 142 is located on the second surface of the electronic device 10
  • the first surface and the second surface are different.
  • the first side of the electronic device 10 may also be referred to as the front side of the electronic device 10.
  • the first display screen 141 is located on the first surface of the electronic device 10.
  • the included angle of 141 is ⁇ .
  • the second surface of the electronic device 10 can also be referred to as the back of the electronic device 10.
  • the second display screen 142 is located on the second surface of the electronic device 10.
  • the first display screen 141 The included angle is ⁇ . It should be noted that the value of the included angle of the first display screen 141 can be in the range of [0°, 180°]. When the angle of the first display screen 141 is 0°, the first display screen 141 is in the folded or closed state, and when the angle of the first display screen 141 is 180°, the first display screen 141 is in the Expanded state.
  • the first display screen 141 may also be referred to as an internal screen or a main screen
  • the second display screen 142 may also be referred to as an external screen or an auxiliary screen.
  • the electronic device 10 is an electronic device with a non-foldable screen, and includes a first display screen 141.
  • the electronic device 10 includes a first surface and a second surface, and the first display screen 141 is located on the first surface of the electronic device.
  • the first side of the electronic device 10 is shown in FIG. 4A
  • the second side of the electronic device 10 is shown in FIG. 4C.
  • the electronic device 10 only includes the first display screen 141.
  • the electronic device 10 may further include a second display screen 142.
  • the first display screen 141 is located on the first surface of the electronic device 10, and the second display screen 142 is located on the second surface of the electronic device 10.
  • the first side of the electronic device 10 is shown in FIG. 4A.
  • the second side of the electronic device 10 may be as shown in FIG. 4B.
  • the first display screen 141 may also be referred to as the main screen, and the second display screen 142 is again It can be called a secondary screen.
  • the electronic device 10 is an electronic device with a foldable screen, and includes a first display screen 141.
  • the first display screen 141 is an electronic device with a foldable screen.
  • the first display screen 141 When the first display screen 141 is in the unfolded state, it may be as shown in FIG. 5A, and the first display screen 141 in the closed state or the folded state may be as shown in FIG. 5B.
  • 5C is a schematic diagram when the included angle of the first display screen 141 is folded to ⁇ .
  • the electronic device 10 is an electronic device with a retractable screen, and includes a first display screen 141.
  • the state after the first display screen 141 is stretched may be as shown in FIG. 6A, and the state after the first display screen 141 is contracted may be as shown in FIG. 6B.
  • the sensor module 150 may include one or more sensors. For example, touch sensor 150A, pressure sensor 150B, distance sensor 150C, etc. In other embodiments, the sensor module 150 may also include a gyroscope, an acceleration sensor, a fingerprint sensor, an ambient light sensor, a proximity light sensor, a bone conduction sensor, a temperature sensor, and so on.
  • the touch sensor 150A may also be referred to as a “touch panel”.
  • the touch sensor 150A may be provided on the first display screen 141 and/or the second display screen 142. Take the touch sensor 150A provided on the first display screen 141 as an example.
  • the touch sensor 150A and the first display screen 141 form a first touch screen, also called "first touch screen”.
  • the touch sensor 150A is used to detect touch operations acting on or near it.
  • the touch sensor 150A may transmit the detected touch operation to the application processor to determine the type of touch event.
  • the electronic device 10 may provide visual output related to touch operations and the like through the first display screen 141.
  • the touch sensor 150A may also be disposed on the surface of the electronic device 10, which is different from the position of the first display screen 141.
  • the pressure sensor 150B is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 150B may be provided on the first display screen 141 and/or the second display screen 142. Among them, touch operations that act on the same touch position but have different touch operation strengths can correspond to different operation instructions.
  • the distance sensor 150C which can also be called a distance sensor 150C, etc., is used to measure distance.
  • the electronic device 10 may use the distance sensor 150C to measure the distance to achieve rapid focusing.
  • the distance sensor 150C may also be used to determine whether the first display screen 141 and/or the second display screen 142 is blocked. For example, when the first side of the electronic device 10 is shown in FIG. 3A and the second side of the electronic device 10 is shown in FIG. 3B, if the first display screen 141 is in the closed state or folded state, the distance sensor 150C can be used for It is determined whether the second display screen 142 is blocked.
  • the distance sensor 150C is used to determine whether the first display screen 141 and the second display screen 142 are Occlude.
  • the distance sensor 150C is used to determine whether the first display screen 141 is blocked.
  • the electronic device 10 may implement audio functions through the audio module 160, the speaker 161, the receiver 162, the microphone 163, the earphone interface 164, and the application processor. For example, audio playback function, recording function, voice wake-up function, etc.
  • the audio module 160 can be used to perform digital-to-analog conversion and/or analog-to-digital conversion on audio data, and can also be used to encode and/or decode audio data.
  • the audio module 160 may be provided in the processor 110, or part of the functional modules of the audio module 160 may be provided in the processor 110.
  • the speaker 161 also called a “speaker” is used to convert audio data into sound and play the sound.
  • the electronic device 100 may listen to music through the speaker 161, answer a hands-free call, or issue a voice prompt, etc.
  • the receiver 162 also called “earpiece” is used to convert audio data into sound and play the sound. For example, when the electronic device 100 answers a call, the receiver 162 may be brought close to the human ear to answer the call.
  • the microphone 163 also known as a "microphone” or a “microphone” is used to collect sounds (such as ambient sounds, including sounds made by people, sounds made by equipment, etc.), and convert the sounds into audio electrical data.
  • sounds such as ambient sounds, including sounds made by people, sounds made by equipment, etc.
  • the electronic device may be provided with at least one microphone 163.
  • two microphones 163 are provided in the electronic device, in addition to collecting sound, it can also achieve a noise reduction function.
  • three, four or more microphones 163 may be provided in the electronic device, so that in addition to sound collection and noise reduction, sound source identification or directional recording functions can also be realized.
  • the earphone interface 164 is used to connect wired earphones.
  • the earphone interface 164 may be a USB interface 170, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the button 170 may include a power button, a volume button, and the like.
  • the button 170 may be a mechanical button or a virtual button.
  • the electronic device 10 can generate signal inputs related to user settings and function control of the electronic device 10 in response to the operation of the keys.
  • the electronic device 10 may lock the screen of the first display screen 141 in response to pressing the power button, and trigger the execution of the screen projection method of the embodiment of the present application.
  • the power button in the embodiment of the present application may also be referred to as a power-on button, a side button, etc., and the name of the power button is not limited.
  • the SIM card interface 171 is used to connect to a SIM card.
  • the SIM card can be inserted into the SIM card interface 171 or pulled out from the SIM card interface 171 to achieve contact and separation with the electronic device 10.
  • the electronic device 10 may support 1 or K SIM card interfaces 171, and K is a positive integer greater than 1.
  • the SIM card interface 171 may support Nano SIM cards, Micro SIM cards, and/or SIM cards, etc.
  • the same SIM card interface 171 can insert multiple SIM cards at the same time.
  • the types of the multiple SIM cards can be the same or different.
  • the SIM card interface 171 can also be compatible with different types of SIM cards.
  • the SIM card interface 171 may also be compatible with external memory cards.
  • the electronic device 10 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 10 may also adopt an eSIM card, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
  • the USB interface 172 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 172 can be used to connect a charger to charge the electronic device 10, and can also be used to connect the electronic device 10 to earphones and play sounds through the earphones.
  • the USB interface 172 can be connected to a headset, it can be understood that the USB interface 172 is used as a headset interface.
  • the USB interface 172 can be used as a headphone interface, and can also be used to connect to other electronic devices, such as AR devices, computers, and so on.
  • the charging management module 180 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 180 may receive the charging input of the wired charger through the USB interface 170.
  • the charging management module 180 may receive the wireless charging input through the wireless charging coil of the electronic device 10. While the charging management module 180 charges the battery 182, it can also supply power to the electronic device 10 through the power management module 180.
  • the power management module 181 is used to connect the battery 182, the charging management module 180, and the processor 110.
  • the power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, the internal memory 121, the first camera 131, the second camera 132, the first display screen 141, and the like.
  • the power management module 181 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 181 may also be provided in the processor 110.
  • the power management module 181 and the charging management module 180 may also be provided in the same device.
  • the mobile communication module 191 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 10.
  • the mobile communication module 191 may include a filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • LNA low noise amplifier
  • the wireless communication module 192 can provide applications on the electronic device 10 including WLAN (such as Wi-Fi network), Bluetooth (bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) , Near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 192 may be one or more devices integrating at least one communication processing module.
  • the electronic device 10 may send screen projection content and/or screen projection instructions to the target device through the wireless communication module 192.
  • the antenna 1 of the electronic device 10 is coupled with the mobile communication module 191, and the antenna 2 is coupled with the wireless communication module 192, so that the electronic device 10 can communicate with other devices.
  • the mobile communication module 191 may communicate with other devices through the antenna 1
  • the wireless communication module 193 may communicate with other devices through the antenna 2.
  • FIG. 7 shows a schematic diagram of the software architecture of a source device and a target device in an embodiment of the present application.
  • the source device includes an input module 710A, a processing module 720A, and an output module 730A.
  • the input module 710A is used to detect the user's operation and report the user's operation to the processing module 720A.
  • the user's operation may be a touch operation or a non-touch operation.
  • the operation of displaying a certain user interface on the first display screen 141 or the second display screen 142, and folding the first display screen 142 The operation of a display screen 141, the operation of pressing the power button, the operation of closing the outer cover of the device, the operation of closing the cover of the smart protective cover, etc.
  • the input module 710A can detect the user's operation through a mechanical shaft, a touch sensor, a button, etc., which is not limited.
  • the processing module 720A is configured to receive the user's operation reported by the input module 710A, and identify the operation type of the user's operation reported by the input module 710A. For example, when the operation type of the user's operation is a screen-off operation, the screen is turned off on the first display screen 141, and after the screen is turned off on the first display screen 141, a screen projection is triggered.
  • the processing module 720A includes an operation recognition module 721A, a projection judgment module 722A, a content acquisition module 723A, a device acquisition module 724A, and the like.
  • the operation recognition module 721A is used to recognize the operation type of the user operation reported by the input module 710A.
  • the projection judgment module 722A is used to judge whether the smart projection function is turned on, or whether the first display screen 741 or the second display screen 742 is blocked, etc.
  • the content acquisition module 723A is used to acquire the projected content.
  • the device acquisition module 724A is used to determine the target device for receiving the screened content.
  • the output module 730A is used to establish a connection with the target device and send screen content to the target device. As another example, the output module 730A is also used to control the second display screen 742 or the first display screen 741 to display related information. For example, the output module 730A is used to control the second display screen 742 or the first display screen 741 to display a control interface.
  • the target device includes an input module 710B, a processing module 720B, and an output module 730B.
  • the input module 710A is used to establish a connection with the source-end device and receive screen projection content or screen-casting instructions sent by the source device.
  • the input module 710B includes a device connection module 711B, a content interaction module 712B, and an instruction interaction module 713B.
  • the device connection module 711B is used to establish a connection with the source device.
  • the content interaction module 720B is configured to receive the screencast content sent by the source device, and send the screencast content to the processing module 720B.
  • the instruction interaction module 713B is used to receive a screencasting instruction sent by the source device, for example, a screencasting cancellation instruction.
  • the processing module 720B is configured to, after receiving the projected content sent by the content interaction module 720B, re-layout or crop the projected content, and send the re-layout or cropped projected content to the output module 730B.
  • the output module 730B is configured to present or display the rearranged screencast content after receiving the rearranged screencast content sent by the processing module 720B.
  • the source device is an electronic device with a foldable screen.
  • the source device includes an internal screen and an external screen, the internal screen is a foldable screen, and the external screen is a non-foldable screen.
  • the inner screen of the source device may be the first display screen 141 shown in FIG. 3A or 3B, and the outer screen of the source device may be the second display screen 142 shown in FIG. 3B.
  • FIG. 8 it is a schematic flowchart of a screen projection method according to an embodiment of this application, which specifically includes the following steps.
  • step 801 the inner screen of the source device is in use, and an operation of folding the inner screen from the unfolded state to the closed state is received.
  • the internal screen of the source device is in use, which can be understood as:
  • the source device When the internal screen is in the expanded state and the screen is not locked, the source device displays the corresponding user interface on the internal screen, such as the main interface, one screen (-1 screen), the user interface of a certain application, etc.
  • the user can perform corresponding operations as needed when the internal screen displays the corresponding user interface, so that the source device responds to the user's operation and performs corresponding display on the internal screen. That is, when the inner screen of the source device is in the expanded state and the screen is not locked, when a user interface is displayed, the user can perform corresponding operations on the source device and control the inner screen to display accordingly, so as to satisfy the user Demand.
  • the source device Detecting that the user clicks on an icon of an application on the desktop (for example, the iQiyi icon), in response to the operation of clicking the iQiyi icon, the iQiyi user interface is displayed on the inner screen.
  • the user can press the virtual buttons (or virtual keys) included in the user interface Perform corresponding operations to achieve corresponding control.
  • the source device when the source device detects the user's operation on the iQiyi user interface when the internal screen displays the iQiyi user interface (for example, clicking the operation of the virtual button that controls the full-screen video display), it will respond to the above operation, The corresponding video is displayed in full screen on the internal screen and played, so that the user can watch the corresponding video.
  • the source device displays the user interface of Baidu Maps on the internal screen, it detects the user's operation of searching for routes on the user interface of Baidu Maps, and in response to the operation of searching for routes, displays the corresponding route search on the internal screen As a result, it is convenient for the user to reach the corresponding destination.
  • the user interface displayed on the internal screen of the source device is the user interface of the source device running the application in the foreground.
  • the source device can run one or more applications in the foreground.
  • the source device can run one or more applications in the background while running one or more applications in the foreground.
  • the application running in the foreground of the source device is iQiyi
  • the user interface of iQiyi is displayed on the internal screen.
  • the source device may also run other applications in the background, such as Alipay, WeChat, etc.
  • the external screen is locked and the screen is black, or the external screen is locked but the default user interface is displayed.
  • the default user interface can include information such as time and date. Specifically, the user can follow The information displayed on the default user interface needs to be set.
  • the first display screen 141 is the inner screen of the electronic device 10
  • the second display screen 142 is the outer screen of the electronic device 10.
  • the processor 110 of the source device can detect the rotation angle of the mechanical shaft of the first display screen 141. Change to determine whether the operation of folding the inner screen from the unfolded state to the closed state is received.
  • the included angle of the first display screen 141 is changed from 180° to 0°
  • the event reported to the processor 110 when the processor 110 receives the event that the angle of the first display screen 141 reported by the mechanical shaft changes from 180° to 0°, it determines to receive the folding of the inner screen from the unfolded state to the closed state Operation.
  • the processor 110 of the source device may also collect data from other sensors for sensing the angle change of the first display screen 141 to determine whether an operation of folding the inner screen from the unfolded state to the closed state is received. It should be noted that the embodiment of the present application does not limit the manner in which the source device specifically determines whether the operation of folding the inner screen from the unfolded state to the closed state is received.
  • Step 802 In response to receiving the operation of folding the inner screen from the unfolded state to the closed state, the source device turns off the inner screen.
  • the inner screen when the inner screen is folded into a closed state, the inner screen cannot display the user interface normally to the user. Therefore, in order to save the power consumption of the electronic device, turning off the inner screen can be understood as a black screen and The screen is locked, or the internal screen is black but the screen is not locked.
  • the source device folds the inner screen into a closed state, the user cannot use the inner screen normally, that is, the user cannot perform normal operations on the inner screen to achieve control of the source device. Taking the source device as the electronic device 10 in the application scenario shown in FIG.
  • the processor 110 of the electronic device 10 determines that it has received the operation of folding the first display screen 141 from the unfolded state to the closed state, according to the operation of folding the first display screen 141 from the unfolded state to the closed state, it determines that the operation type is off. Screen operation, and then turn off the first display screen 141.
  • the source device in response to receiving the operation of folding the inner screen from the expanded state to the closed state, can also automatically unlock the outer screen, and automatically map the user interface displayed on the inner screen to the outer screen for display.
  • the user interface of iQiyi is displayed on the internal screen
  • the external screen in response to the operation of folding the internal screen from the expanded state to the closed state, the external screen is unlocked, and the iQiyi user interface displayed on the internal screen is automatically mapped Display on the external screen.
  • the tablet responds to an operation of folding the inner screen from the unfolded state to the closed state, and the outer screen continues to remain black and/or locked, or the outer screen continues to remain locked and display the default user interface, etc., which is not limited.
  • Step 803 After turning off the inner screen in response to the operation of folding the inner screen from the expanded state to the closed state, the source device determines a target application from at least one currently running application.
  • the at least one currently running application program may include an application program currently running in the foreground and/or the background.
  • the target application program may be an application program that meets the first preset condition among at least one currently running application program.
  • the first preset condition can be set according to actual conditions, which is not limited.
  • the target application is an application identified in the whitelist among at least one currently running application.
  • the whitelist includes the identification of the application that supports the projection function, which can be set by the user according to their own needs, or set by the source device before leaving the factory, or generated by the source device according to a preset strategy.
  • the preset policy stipulates that the audio and video types, map types, reading types, and instant messaging (instant messaging, IM) types of applications are applications that support the screen projection function, and the source device can be based on the installed, and The identification of the type of application that meets the requirements of the preset policy generates a whitelist.
  • the whitelist generated according to the preset strategy includes the logo of iQiyi and the logo of WeChat. It should be understood that when a new application is detected on the source device, it can be judged whether the application meets the type specified by the preset policy. When the application meets the type specified by the preset policy, the identification of the application Add to the whitelist. Or, in other embodiments, the whitelist includes the identifiers of applications that do not support the screen projection function. In this case, the target application program may be an application program identified in at least one currently running application program that does not belong to the whitelist.
  • the identifier of the application program may be the package name of the application program, or the icon of the application program, or customized according to needs, which is not limited.
  • the target application is an application whose service is in progress among currently running applications.
  • video-type applications such as iYiqi, Youku, Tencent Video, etc.
  • music-playing applications such as Xiami Music, NetEase Cloud Music Etc.
  • map-type applications such as Baidu Maps, AutoNavi Maps, etc.
  • game-type applications such as Honor of Kings, Tetris, etc.
  • the service is in progress, which can be understood as being in the game.
  • the service is in progress, which can be understood as inputting, or voice call, or video call, or file transfer, etc.
  • the application program in which the service is in progress can be an application program running in the foreground or an application program running in the background.
  • the target application is an application that is identified in the whitelist and whose service is in progress among currently running applications.
  • the white list includes the identification of the application that supports the projection function.
  • the target application is an application currently running in the foreground.
  • the source device no longer casts a screen when at least one application program currently running does not meet the first preset condition. Or, the source device no longer casts a screen when the application is not currently running.
  • step 804 the source device obtains the screencast content from the target application, and sends the screencast content to the target device.
  • the source device may send the screencast content to the target device based on technologies such as Miracast, airplay, dlna, or Hicast.
  • the source device and the target device can establish the connection before receiving the user's operation to fold the inner screen from the expanded state to the closed state, or after receiving the user's operation to fold the inner screen from the expanded state to the closed state To establish a connection. For example, after turning off the internal screen, the source device determines the target device for receiving the projected content, and then initiates a connection establishment process to the target device. After the source device establishes a connection with the target device, when it obtains the screencast content from the target application, it sends the screencast content to the target device.
  • the source device can determine the target device that receives the projected content based on the following methods:
  • the source device can obtain the identification of the surrounding electronic devices that support the projection function based on communication technologies such as Bluetooth and/or Wi-Fi, and according to the acquired identification of the surrounding electronic devices that support the projection function, Determine the target device ID.
  • the electronic device identified by the target device identifier is the target device for receiving the projected content.
  • the target device identifier may be an identifier that meets the second preset condition among the identifiers of surrounding electronic devices that support the screen projection function.
  • the second preset condition can be set accordingly according to actual needs, which is not limited.
  • the target device identifier is an identifier in the trusted list among the identifiers of surrounding electronic devices that support the screen projection function.
  • the credited list includes the identification of at least one electronic device, which may be added by the user according to his own needs, or may be the identification of an electronic device that has been connected to the source device.
  • the identification of the electronic device included in the trusted list may be the identification of the private electronic device added by the user, or the identification of the private electronic device that has been connected to the source device.
  • private electronic devices refer to electronic devices in non-public places, such as TVs at home, desktop computers in dormitories, etc., while electronic devices in public places may be displays in conference rooms.
  • the source device can obtain its own geographic location information, and determine the current location based on its own geographic location information. Whether the place is a public place or not, when the geographical location of the place is not a public place, one of the obtained identifiers of the surrounding electronic devices that support the screen projection function is selected as the target device identifier.
  • the geographic location of the source device when the geographic location of the source device is a public place, it further determines whether the external screen of the source device is blocked. If the external screen is not blocked, the surrounding electronic devices that support the projection function are displayed on the external screen. logo. The user can select an identifier as the target device identifier among the identifiers of the surrounding electronic devices that support the screen projection function displayed on the external screen according to their own needs. Taking the source device as the electronic device 10 as an example, as shown in FIG.
  • the identification of the surrounding electronic devices that support the screen projection function acquired by the electronic device 10 includes the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 .
  • the electronic device 10 displays the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 on the external screen. For example, as shown in FIG. 10, the electronic device 10 displays the identification of the electronic device 20 and the electronic device on the external screen.
  • the identification of the electronic device 30 and the identification of the electronic device 40 When the user selects the identification of the electronic device 30, the electronic device 10 determines that the target device identification is the identification of the electronic device 30.
  • the electronic device 10 responds to the operation of folding the inner screen from the unfolded state to the closed state, turns off the inner screen, and continues to lock the outer screen. Based on the above scenario, in order to enable the user to view the electronic device 20 displayed on the outer screen To operate the identification, the identification of the electronic device 30, and the identification of the electronic device 40, the user needs to unlock the external screen of the electronic device 10 first.
  • the electronic device 10 can unlock the external screen of the electronic device 10 by recognizing the user's face or fingerprint.
  • the user operates the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 displayed on the external screen without being restricted by the external screen lock screen, that is, in the case of the external screen lock screen, the electronic device
  • the device 10 When the device 10 is locked on the external screen, it displays the identity of the electronic device 20, the identity of the electronic device 30, and the identity of the electronic device 40.
  • the user can check the identity of the electronic device 20, the identity of the electronic device 30, and the electronic device without unlocking the external screen.
  • the identification of the device 40 performs corresponding operations.
  • the electronic device 10 also displays a virtual button for controlling the cancellation of the screen projection on the external screen.
  • the user can click or touch the virtual button for controlling the cancellation of the screen projection to make the electronic device 10 cancel the screen projection. .
  • the electronic device 10 also displays on the external screen that the user has not selected a screen projection device for more than a preset time period, and the screen projection is automatically cancelled.
  • the preset duration can be 10s, 15s, etc., which can be set accordingly according to user needs.
  • the electronic device 10 may automatically black out the screen or display the default user interface after canceling the screen projection.
  • identification of the electronic device in the embodiment of the present application may include the icon of the electronic device, the name of the electronic device, etc., which is not limited.
  • the source device when the external screen is blocked, for example, the source device is placed in a bag or the external screen is placed facing the desktop, the source device no longer casts the screen.
  • the source device can also refer to device capability information (such as whether it can include a display screen, whether it includes a speaker, touch), device attribute information (such as the resolution and sound effects of the device display screen), and the current operating status of the device ( For example, whether it is playing video, audio, or whether it is communicating with other devices, etc.), the target device identification is determined from the identifications of electronic devices that support the screen projection function obtained from the surroundings.
  • the device capability information, device attribute information, and current operating status of the device may be obtained by the source device in the process of obtaining the identification of the electronic device that supports the screen projection function.
  • the electronic device identified by the target device identifier may be an electronic device that does not currently play a video, includes a display screen, and whose display screen resolution is greater than a first threshold. Wherein, the first threshold may be set according to actual needs.
  • the source device may scan and acquire nearby connectable electronic devices based on Bluetooth, and/or Wi-Fi.
  • Bluetooth as an example, when the source device obtains the identities of multiple electronic devices based on Bluetooth scanning, one or more device identities can be determined from the identities of the multiple electronic devices, then the source device and the determined one or more The target device identified by the device identifier establishes a connection, and sends the screencast content to the target device identified by the one or more device identifiers.
  • the source device may determine a device identifier from the device identifiers of multiple target devices, and send the screencast content to the target device identified by the determined device identifier.
  • the source device determines whether the smart screen projection function is enabled, and when the smart screen projection function is enabled, steps 803 and 804 are executed again. When the smart screen projection function is not enabled, step 803 and step 804 are no longer executed.
  • the smart screen projection function is turned on or off by the source device in response to the user's operation. For example, set a virtual button on the system settings interface to control turning on or off the smart screen projection function. When the user switches the virtual button from OFF to ON, the source device turns on the smart screen projection function. When the user turns the virtual button from ON When switched to OFF, the source device turns off the smart screen projection function.
  • the system setting interface may be a user interface 1100 as shown in FIG. 11A.
  • the user interface 1100 includes a virtual button 1101, where the virtual button 1101 is used to control turning on or off the smart screen projection function.
  • the virtual button used to control turning on or off the smart screen projection function can also be set on other user interfaces.
  • the virtual button used to control turning on or off the smart screen projection function is set on the pull-up interface or the drop-down interface.
  • Notification bar, or system toolbar, or control bar For example, the pull-up interface may be displayed by the source device in response to the user's operation of sliding down on the external screen or the internal screen.
  • the drop-down interface may be displayed by the source device in response to the user's operation of sliding up on the external screen or the internal screen.
  • the source device prompts the user whether to cast the screen after performing step 802 or after determining that the smart screen projection function is enabled.
  • the source device can display a prompt box 910 on the external screen, where the prompt box 1110 includes prompt information, and the confirmation option "Yes” and the denial option "No".
  • the prompt information is used to prompt the user whether to vote or not.
  • the prompt message can be "Please confirm whether to cast the screen?” etc.
  • the source device may continue to perform step 803 and step 804 in response to the user selecting the confirmation option "Yes", and the source device may not continue to perform step 803 and step 804 in response to the user selecting the denial option "No".
  • the source device displays the prompt box 1110 on the external screen
  • the user may default to the user's consent to the screen, or the default user to reject the screen-casting.
  • the preset duration can be 10s, 15s, etc., which is not limited.
  • the source device can continue to perform step 803 and step 804.
  • the source device displays a prompt box 1110 when the external screen is locked. In order to improve security, the user needs to pass fingerprint, password or facial recognition before operating the prompt box 1110 displayed by the source device. Unlock the external screen.
  • the source device may also display the user interface shown in FIG. 11C or FIG. 11D on the external screen, so that the user can cancel the screen cast at any time. It should also be noted that, in the embodiment of the present application, the order of judging whether the smart screen projection function has been turned on and prompting the user whether to cast the screen may not be limited.
  • the method may further include:
  • Step 805 After the source device locks the internal screen in response to the operation of folding the internal screen from the unfolded state to the closed state, it determines whether the smart screen projection function has been turned on. If the smart screen projection function is turned on, step 806 is executed. If the smart screen projection function is not enabled, this process ends.
  • step 806 the source device determines whether the external screen is blocked. If the external screen is not blocked, step 807 is executed. If the external screen is blocked, the process ends.
  • the source device can judge whether the external screen is blocked by distance sensors, cameras, etc., for example, when the source device is placed in a bag or pocket, or the source device is placed on a table, the external screen faces down.
  • the source device can detect that the external screen is blocked by a distance sensor or camera.
  • the source device is placed on a table with the external screen facing up, it can be determined that the external screen is not blocked by a camera on the same side as the external screen.
  • the source device can also determine whether the external screen is blocked by other means, for example, by artificial intelligence (AI). Whether it is blocked.
  • AI artificial intelligence
  • the purpose of judging whether the external screen is blocked is to detect whether the user has the intention to cast the screen. If it is recognized that the source device is put in the pocket or bag, the source device thinks that the user no longer uses the device, and no longer triggers Cast screen.
  • the embodiments of the present application can also combine other parameters (such as time, location, etc.) acquired by other sensors (such as positioning sensors) to learn the behavior habits of the user using the device, so as to more accurately determine whether the user has the intention to cast a screen. , Improve the reliability of the source device to trigger the screen.
  • the source device may prompt the user whether to cast the screen after performing step 806.
  • the prompt box 1110 shown in FIG. 11B is displayed on the external screen.
  • the source device may obtain the current running
  • the identification of at least one application program that supports the screen projection function and the identification of at least one electronic device used to receive screen projection content can prompt the user on the external screen of the current process, for example, the source device is currently running support
  • the identification of the application program of the screen projection function the content acquisition can be displayed on the external screen, for example, as shown in Figure 11C.
  • the source device obtains the identification of the electronic device used to receive the screen content, it can be displayed on the external screen.
  • the acquisition of the upper display device for example, as shown in FIG. 11D, after the source device acquires the identification of at least one currently running application that supports the screen projection function and the identification of at least one electronic device used to receive screen projection content , Go to step 807.
  • the source device displays on the external screen the identification of at least one currently running application supporting the screen projection function; and displays on the external screen the identification of at least one electronic device for receiving screen projection content.
  • the identifier of at least one currently running application that supports the screen projection function may be an identifier of the currently running application that identifies an application in the white list, and the white list includes the identification of at least one application that supports the projection function.
  • the identification of the at least one electronic device used to receive the projected content may be obtained by the source device based on a communication technology such as Bluetooth and/or Wi-Fi.
  • the logo of at least one currently running application that supports the screen projection function includes the logo of iQiyi, the logo of Kugou Music, and the logo of Douyin
  • the logo of at least one electronic device for receiving screen projection content is an electronic device 20, the logo of the electronic device 30, and the logo of the electronic device 40
  • the source device displays the iQiyi logo, the Kugou music logo, and the Douyin logo on the external screen, and displays the logo of the electronic device 20,
  • the identification of the electronic device 30 and the identification of the electronic device 40 may be displayed on the same user interface, for example, as shown in FIG. 12A.
  • the identification of at least one currently running application supporting the screen projection function and the identification of at least one electronic device for receiving screen projection content can be displayed on the same user interface or on different user interfaces, for example, as shown in the figure Shown in 12B.
  • performing step 807 displays on the external screen one or more of the currently running at least two applications that support the screen projection function. ID of each application.
  • the screen projection content may be obtained from the application that supports the screen projection function without prompting the user of the identification of the application program.
  • the user can also be prompted with the identification of the application, but the user can select the identification of the application without operating, and the source device can download the application from the application. Get screencast content in.
  • the source device in the case that the source device obtains the identifications of at least two electronic devices for receiving the projected content, perform step 807 to display at least two electronic devices for receiving the projected content on the external screen
  • the ID of at least one electronic device in the ID For example, if the source device only obtains the identification of an electronic device for receiving screencast content, there is no need to display the identification of the electronic device on the external screen, or display the identification of the electronic device on the external screen, but the user can No operation is required to select the identification of the electronic device.
  • Step 808 After the source device receives the user's selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content.
  • the application identified by the identifier of the application selected by the user may be referred to as a target application.
  • step 807 when the source device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device for receiving screen projection content, the user interface during delivery is displayed on the external screen, for example, the user interface shown in Figure 13 .
  • this embodiment of the application does not limit the sequence in which the source device obtains the identification of the application that supports the screen projection function and the identification of the electronic device used to receive the screen content.
  • the source device can simultaneously obtain the screen projection support.
  • the identification of the functional application and the identification of the electronic device used to receive the screened content, or the identification of the application that supports the screen-casting function can be obtained first, and then the identification of the electronic device used to receive the screened content, or, First obtain the identification of the electronic device used to receive the screencast content, and then obtain the identification of the application that supports the screencast function.
  • the source device may display the content acquisition on the external screen when acquiring the identification of at least one currently running application that supports the projection function (for example, as shown in FIG.
  • the identification of at least one application that supports the projection function is displayed on the external screen, and in response to the user selecting an application identification, the external screen displays the device acquisition (for example, as shown in the figure) 11D), and after acquiring the identification of at least one electronic device for receiving screencast content, the identification of at least one electronic device is displayed on the external screen, and in response to the user selecting a certain electronic device identification, the identification is displayed on the external screen Delivery (for example, as shown in Figure 13).
  • the source device can simultaneously obtain the screencast content and the identification of at least one electronic device for receiving the screencast content.
  • the source device when the source device does not obtain the identification of the application that supports the screen projection function, it can prompt the user that the screen projection fails. Further, the source device can also prompt the user the reason for the screen projection failure. As another example, when the source device fails to obtain the identification of the electronic device used to receive the screened content, it can prompt the user that the screen has failed. Furthermore, the source device can also prompt the user the reason for the failed screen.
  • step 806 can be located before step 805, after step 807, or after step 808, or step 806 can be executed simultaneously with step 807 or step 808, etc., which is not limited.
  • the source device detects that the external screen is blocked, it terminates the screen projection process.
  • the source device displays the control interface on the external screen after successfully sending the projected content to the target device.
  • the control interface includes virtual buttons with touch function.
  • the virtual buttons with touch functions are different.
  • the source device receives the user's operation on the control interface, it responds to the operation on the control interface to realize the control of the target application, so as to achieve the purpose of controlling the projected content.
  • the user's operation on the control interface can be an operation of a virtual button on the control interface for controlling a certain function, or can be a shortcut gesture operation on the control interface, etc., which is not limited.
  • the control interface can be as shown in Figure 14A, including a progress bar, a pause button, and a fast forward Button, selection button, and clarity button, etc.
  • the source device receives the user's operation on the definition button and sets the resolution from SD to HD, the voting content presented on the target device is switched from SD to HD.
  • the control interface may be as shown in Figure 14B, including a progress bar, a pause button, and a quick Enter button and menu button, etc.
  • the source device receives the user's operation of clicking the pause button, the audio is paused on the target device.
  • the control interface may be as shown in Figure 14C, including function buttons such as touch area, favorites, comments, and sharing. .
  • the user can switch videos by sliding up and down in the touch area, or click to pause or start playing the video in the touch area.
  • the control interface may be as shown in FIG. 14D, including up, down, left, and right function buttons. Among them, the user can control the movement direction of the snake through the up, down, left, and right function buttons.
  • the control interface can also be as shown in Figure 14E, that is, the control interface is a gamepad to present the user with virtual buttons for controlling the game, which is more vivid And vivid.
  • the control interface may be as shown in FIG. 14F or FIG. 14G, including an input method.
  • the control interface may be as shown in FIG. 14F.
  • voice input is adopted on the user interface of WeChat, the control interface may be as shown in FIG. 14G.
  • step 808 After performing step 803, or, in step 808, when the source device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, step 808 The application identified by the identifier of the application selected by the user is used as the target application, and the source device can display a corresponding control interface on the external screen according to the target application.
  • Example 1 The source device can determine the control interface corresponding to the type of the target application from preset control interfaces corresponding to different types of applications, and then display the control interface corresponding to the target application on the external screen.
  • the target application is iQiyi
  • the type of the application to which the target application belongs is the video type.
  • the source device may determine the control interface corresponding to the video type application from the preset control interfaces corresponding to the different types of applications, and then display the control interface corresponding to the type of application to which iQiyi belongs on the external screen. Help simplify the implementation.
  • the preset control interfaces for different types of applications may be different.
  • the preset control interface may be as shown in FIG. 14A.
  • the preset control interface may be different.
  • the set control interface can be as shown in Figure 14B.
  • the control interface corresponding to different types of applications may be pre-set in the electronic device before the device leaves the factory, or the electronic device may obtain it from the server in advance according to the application installed by itself.
  • the manner in which control interfaces corresponding to different types of application programs are preset in the electronic device is not limited.
  • this embodiment of the present application also provides a method for displaying a control interface on an external screen. method.
  • Example 2 The source device recognizes a virtual button with touch function from the user interface of the target application (for example, a virtual button can also be called a user interface (UI) element, virtual button, or control, etc.), Among them, the virtual button with touch function can be clicked, touched or pressed by the user to realize the corresponding function (such as pause playback, fast forward, etc.). Then, the electronic device rearranges, cuts, and/or zooms the identified virtual buttons with touch functions, generates a control interface corresponding to the target application, and displays the control interface on the external screen.
  • the control interface includes at least one virtual button, which is used to enable the user to implement shortcut operations on the target application.
  • the at least one virtual button may include a button with the same function as all the virtual buttons recognized by the source device from the user interface of the target application, or may include the same button as the source device from the user interface of the target application. Some of the recognized virtual buttons have the same functions.
  • control interface includes a virtual button with the same function as the virtual button recognized on the user interface of the target application, which can be implemented in the following ways:
  • mapping the virtual buttons on the control interface to the user interface of the target application For example, the position coordinates of the virtual button on the control interface that has the same function as the virtual button recognized on the user interface of the target application are mapped to the position coordinates of the virtual button recognized on the user interface of the target application.
  • the function of the virtual button is the same as the virtual button recognized on the user interface of the target application.
  • the at least one virtual button may also include other function buttons other than the button with the same function as the virtual button recognized on the user interface of the target application, such as a cancel projection button, a switch for receiving The button of the target device of the projected content and/or the button of switching the target application for projecting, etc.
  • a cancel projection button a switch for receiving The button of the target device of the projected content and/or the button of switching the target application for projecting, etc.
  • the electronic device receives the user's operation of clicking the canceling screen-casting button, and in response to the user's clicking the screen-casting cancel button, ends the screen projection.
  • the user interface of the target application can be as shown in A in Figure 15.
  • the source device recognizes the virtual button 1501 in A in Figure 15, and then performs the icon of the virtual button 1501. Re-cut and layout to obtain the virtual button 1502 shown in Figure 15 B, where the virtual button 1502 is a virtual button included on the control interface corresponding to the glory of the king, and its function is the same as that of the virtual button 1501.
  • the virtual button 1502 is a virtual button included on the control interface corresponding to the glory of the king, and its function is the same as that of the virtual button 1501.
  • the position coordinates of the virtual button 1502 are associated with the position coordinates of the virtual button 1501.
  • the source device can identify the virtual button with touch function based on the related records of the historical usage of the target application (for example, the historical record of the user's click on the screen, etc.).
  • the source device can identify a virtual button with a touch function according to a software development kit (SDK) interface provided by the target application.
  • SDK software development kit
  • the source device may also use a location area for laying out virtual buttons with touch functions from the user interface of a predefined target application, and identify the virtual buttons with touch functions.
  • the embodiments of the present application may also identify virtual buttons with touch functions in other ways.
  • the source device may perform semantic analysis on the user interface of the target application (for example, register information for virtual buttons with touch functions). Perform semantic analysis, etc.), perform image recognition on the user interface of the target application, and recognize virtual buttons with touch functions.
  • the display on the external screen The user interface can meet the needs of users. If the source device does not recognize a virtual button with touch function on the user interface of the target application, it can be configured according to the control interface corresponding to different application types in advance. Determine the control interface corresponding to the target application type, and display the control interface on the external screen. For the specific implementation manner, refer to the related introduction in Example 1, which will not be repeated here.
  • the user interface of the target application can be as shown in A in Figure 15.
  • the source device does not recognize the virtual button with touch function on the user interface shown in A in Figure 15, if the preset application
  • the control interface corresponding to the game type is shown as C in Fig. 15, and the source device displays the control interface shown in C in Fig. 15 on the external screen.
  • the control interface includes a touch area. Users can swipe up, down, left, and right in the touch area to control the game.
  • steps 801 to 803, or based on steps 801, 802, and steps 805 to 807 after the source device sends the screened content to the target device, if the user receives that the screen is closed from the closed state Expanded to expanded state, in response to receiving that the user expands the inner screen from the closed state to the expanded state, no more screen content is sent to the target device, and the user interface of the application where the screened content is displayed on the inner screen .
  • the video on the user interface of iQiyi is sent to the smart TV.
  • the inner screen of the electronic device When the inner screen of the electronic device is expanded to the expanded state by the user, it responds to the user When the screen is expanded from the closed state to the expanded state, the screen projection is stopped, and the iQiyi user interface is mapped to the inner screen for display. Furthermore, the external screen no longer displays the control interface corresponding to iQiyi, for example, the external screen can be turned off.
  • the target device after the target device receives the projected content sent by the source device, it can crop or re-layout the projected content, Present on the target device.
  • the source device can also crop or re-layout the content obtained from the target application according to the device attributes (such as resolution, touch capability, etc.) of the target device before sending the projected content
  • the projection content is then sent to the target device. This helps to enable the target device to display the projected content normally.
  • the method for the source device to display the control interface corresponding to the target application on the external screen in the embodiment of this application can also be applied to other screen projection methods except the embodiment of this application. limited.
  • the source device is an electronic device that only includes the first display screen, such as a tablet computer, a mobile phone, etc.
  • the first display screen of the source device may be the first display screen 141 shown in FIG. 4A, which is located on the front of the source device, and the back of the source device does not include a display screen.
  • FIG. 16 it is a schematic flowchart of another screen projection method according to an embodiment of this application, which specifically includes the following steps.
  • Step 1601 The first display screen of the source device is in use, and a screen-off operation on the first display screen is received.
  • the first display screen of the source device is in use for specific introduction, please refer to the related introduction about the inner screen of the source device in use in step 1601, which will not be repeated here.
  • the screen-off operation of the first display screen may be an operation of the user pressing the power button, or a voice instruction of the user, or an operation of the user clicking a virtual button for controlling the screen-off, etc., which is not limited.
  • step 1602 the source device turns off the first display screen in response to the turn-off operation on the first display screen.
  • Step 1603 After turning off the first display screen, the source device judges whether the smart screen projection function is turned on. If the smart screen projection function is turned on, step 1604 is executed. If the smart screen projection function is not turned on, the process ends .
  • Step 1604 The source device judges whether the first display screen is blocked. If the first display screen is blocked, the flow ends. If the first display screen is not blocked, step 1605 is executed.
  • Step 1605 The source device determines the target application from a currently running application. Among them, the source-end device determines the specific implementation manner of the target application from a currently running application, please refer to the related introduction in step 803, which will not be repeated here.
  • Step 1606 The source device obtains the screencast content from the target application, and sends the screencast content to the target device.
  • step 1606 refer to the relevant implementation of step 804, which will not be repeated here.
  • the source device may skip step 1603 and step 1604, and perform step 1605 and step 1606.
  • the method may further include:
  • Step 1607 The source device displays the identification of at least one currently running application supporting the screen projection function and the identification of at least one electronic device for receiving screen projection content on a partial area of the first display screen.
  • the user can set on the first display screen as needed to display the identification of at least one currently running application that supports the projection function, and display at least one for receiving projection content.
  • the size and position of the area of the identification of the electronic device, or, on the first display screen, used to display the identification of at least one currently running application program supporting the screen projection function, and display at least one electronic device for receiving screen projection content are set by the source device before leaving the factory, and there is no limitation on this.
  • the source device displays the identification of at least one currently running application supporting the projection function on the area 1700 of the first display screen 141; and displays at least An identification of an electronic device used to receive screencast content.
  • Example 1 the display of the identification of at least one currently running application supporting the screen projection function in a partial area of the first display screen, and the manner of displaying the identification of at least one electronic device for receiving screen projection content can be referred to in Example 1. Relevant introduction will not be repeated here.
  • the source device may also display the identification of at least one currently running application supporting the screen projection function on a partial area of the first display screen, and when displaying the identification of at least one electronic device for receiving screen projection content, The time and date are also displayed on the first display screen.
  • Step 1608 After the source device receives the user’s selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content.
  • the user can perform corresponding operations on the identification of the application program and the identification of the electronic device displayed on a partial area of the first display screen when the first display screen is turned off, which is helpful To reduce the steps of user operation.
  • step 1608 when the source-end device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device used to receive screen projection content, it displays the user interface being posted on a part of the first display screen, for example, The user interface shown in Figure 13.
  • the first display screen The control interface is displayed on part of the area.
  • the specific introduction of displaying the control interface on a partial area of the first display screen please refer to the related introduction of displaying the control interface on the external screen in Example 1.
  • the area used to display the control interface on the first display screen and the area used to display the identification of the application program and the identification of the electronic device in step 1607 may be the same or different, which is not limited.
  • the source device sends the screened content to the target device
  • the user receives Reuse the first display screen operation (for example, unlocking operation)
  • the screen projection content is no longer sent to the target device, and the screen projection is displayed on the first display screen
  • the unlocking operation of the user on the first display screen may be an operation of inputting a fingerprint, an operation of inputting a password, etc., which is not limited.
  • the video on the user interface of iQiyi is sent to the smart TV.
  • the screen projection is stopped and the love The user interface of Qiyi is mapped to the first display screen for display.
  • the target device after the target device receives the screen content sent by the source device, it can crop the screen content Or after re-layout, it is presented on the target device.
  • the source device can also crop or re-layout the content obtained from the target application according to the device attributes (such as resolution, touch capability, etc.) of the target device before sending the projected content
  • the projection content is then sent to the target device. This helps to enable the target device to display the projected content normally.
  • the source device is an electronic device including a first display screen and a second display screen.
  • the first display screen of the source device may be the first display screen 141 shown in FIG. 4A, which is located on the front of the source device, and the second display screen of the source device may be the second display screen 142 shown in FIG. 4B. Located on the back of the source device.
  • FIG. 18 it is a schematic flowchart of another screen projection method according to an embodiment of this application, which specifically includes the following steps 1601 and 1602, and after performing step 1602, the following steps are also performed:
  • Step 1803 After turning off the first display screen, the source device judges whether the smart screen projection function is turned on. If the smart screen projection function is turned on, step 1804 is executed. If the smart screen projection function is not turned on, the process ends .
  • Step 1804 The source device judges whether the first display screen and the second display screen are blocked. If both the first display screen and the second display screen are blocked, the flow ends. If one of the first display screen or the second display screen is not blocked, step 1805 is executed.
  • the source device first determines whether the second display screen is blocked. If the second display screen is not blocked, then step 1805 is executed. If the second display screen is blocked, then it determines whether the first display screen is blocked. If the first display screen is not blocked, step 1805 is executed. If the first display screen is blocked, the process ends.
  • Step 1805 The source device determines the target application from a currently running application. Among them, the source-end device determines the specific implementation manner of the target application from a currently running application, please refer to the related introduction in step 803, which will not be repeated here.
  • Step 1806 The source device obtains the screencast content from the target application, and sends the screencast content to the target device.
  • step 1806, refer to the relevant implementation of step 604, which will not be repeated here.
  • the source device may skip step 1803 and step 1804, and perform step 1805 and step 1806.
  • step 1805 and step 1806, after step 1803 or step 1804, the method may further include:
  • Step 1807 When the second display screen is not blocked, the source device displays the identification of at least one currently running application program supporting the projection function on the second display screen, and displays at least one electronic device for receiving projection content.
  • the identification of the device When the second display screen of the source device is blocked and the first display screen is not blocked, a partial area of the first display screen displays the identification of at least one currently running application that supports the projection function, and displays at least one The identification of the electronic device that receives the projected content.
  • the specific implementation of displaying the identification of at least one currently running application supporting the screen projection function and displaying the identification of at least one electronic device for receiving screen projection content on the second display screen can be found in the example The related description of the first one will not be repeated here.
  • the identification of at least one currently running application that supports the screen projection function is displayed, and the way of displaying the identification of at least one electronic device for receiving screen projection content can refer to the related introduction in Example 2. I will not repeat them here.
  • Step 1808 After the source device receives the user’s selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content.
  • step 1808 when the source-end device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device for receiving screen projection content, it displays the user interface being posted on a part of the first display screen, for example, The user interface shown in Figure 13.
  • control interface is displayed on a partial area of the first display screen or on the second display screen.
  • the control interface includes virtual buttons with touch function. It should be noted that, for the specific implementation of displaying the control interface on a partial area of the first display screen or on the second display screen, refer to the related introduction in Example 1.
  • the area used to display the control interface on the first display screen and the area used to display the identification of the application program and the identification of the electronic device in step 1808 may be the same or different, which is not limited.
  • the source device is an electronic device that includes a flip cover, such as a flip phone. As shown in Figure 19, it includes an inner screen and an outer screen. The inner screen is located inside the mobile phone cover, not shown in the figure, and the outer screen is located outside the mobile phone cover.
  • the following takes the source device as a flip phone as an example. In this scenario, compared with the electronic device with a foldable screen in the example 1, the only difference in the projection method is that the source device is a flip phone.
  • the source device receives the user's operation to close the cover of the mobile phone and turns off the internal screen.
  • the source device can unlock the internal screen in response to the user outputting a password or long pressing a preset key (for example, # key or * key or combination key, etc.). That is, in the scenario of a flip phone, when the source device receives the user's operation to close the phone cover when using the internal screen normally, it will respond to the user closing the phone cover to lock the internal screen, and then trigger the screen projection. Refer to Example 1, where the source device executes the steps after step 802, which will not be repeated here.
  • a preset key for example, # key or * key or combination key, etc.
  • the source device may also be an electronic device installed with a smart protective cover.
  • the electronic device 10 includes a first display screen 141, and the electronic device 10 is carded to the smart In the protective cover 20, the smart protective cover 20 includes a visualization area 18.
  • the user closes the cover 16 of the smart protective cover 20, it can be as shown in C in FIG. 20.
  • the user opens the cover 16 of the smart protective sleeve 20, it can be shown as B in FIG. 20.
  • the only difference in the screen projection method is that in the scenario of an electronic device with a smart protective cover, the source device receives When the user closes the cover of the smart protective sleeve, the first display screen is turned off. After opening the cover of the smart protective cover, the source device can unlock the first display screen in response to the user's output of a password, fingerprint, etc. That is, in the scenario of an electronic device equipped with a smart protective cover, when the source device receives the user's operation to close the cover of the smart protective cover when using the first display screen normally, it will respond to the user's closing of the mobile phone cover. A screen locks the screen and then triggers screen projection. For details, please refer to Example 1, where the source device executes the steps after step 602, which will not be repeated here.
  • the identification of the application can be displayed in the visualization area 17 of the smart protective cover 20.
  • the specific display mode please refer to the related introduction in Example 1. This will not be repeated here.
  • the smart cover when the source device does not need to prompt the user with the identification of the application program, the identification of the electronic device, or the control interface, the smart cover may not include the visualization area.
  • the source device can also be another electronic device with a foldable screen.
  • the source device includes a first display screen, and the first display screen is a foldable screen.
  • the first display screen 141 as shown in FIG. 5A may be used, and when the first display screen of the source device is in the closed state, it may be as shown in FIG. 5B.
  • the source device can present a corresponding interface to the user through the area 500 in the first display screen 141.
  • the first display screen of the source device is in the unfolded state and is in use, and an operation to fold the first display screen from the unfolded state to the closed state is received, triggering a screen projection to the target device.
  • the source device receives an operation to fold the first display screen 141 from the unfolded state to the closed state. If the projection fails, it can map the content displayed on the first display screen 141 before receiving the operation to the folded state. It is displayed in the area 500 of the first display screen 141. If the projection is successful, the control interface can be displayed in the area 1500 of the first display screen 141. The control interface can be displayed in the area 1500 of the first display screen 141. See the related introduction in Example 1.
  • the first display screen of the source device when the first display screen of the source device is in the closed state, it receives an operation to expand the first display screen from the closed state to the unfolded state, and in response to the foregoing operation, stops projection. For example, after the source device stops the screen projection, it can automatically display the user interface where the screen projection content is located on the first display screen.
  • the source device may also be an electronic device with a retractable screen, including a first display screen, where the first display screen is a retractable display screen.
  • the state of the first display screen of the source device after being stretched may be as shown in FIG. 6A
  • the state of the first display screen after being contracted may be as shown in FIG. 6B.
  • the first display screen of the source device is in the extended state and is in use, and the contraction operation of the first display screen is received, which triggers projection to the target device.
  • the specific projection method see Related introduction in example one.
  • the source device may map the content displayed on the first display screen 141 before receiving the operation to the shrinking first display screen 141 If the projection is successful, the control interface can be displayed in the area 600 of the first display screen 141.
  • the manner of displaying the control interface in the area 600 of the first display screen 141 see Example 1 Related introduction.
  • the first display screen of the source device receives the stretching operation of the first display screen in the retracted state, and in response to the above operation, the screen projection is stopped. For example, after the source device stops the screen projection, it can automatically display the user interface where the screen projection content is located on the first display screen.
  • the method provided in the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • FIG. 21 shows a device 2100 provided by this application for executing the screen projection method shown in FIG. 8, FIG. 16, or FIG. 18.
  • the device 2100 includes a processing module 2101 and a transceiver module 2102.
  • the processing module 2101 is configured to detect user operations, and in response to the user operations, trigger the transceiver module 2102 to send the screened content to the target device.
  • FIG. 22 shows a device 2200 provided in this application.
  • the device 2200 includes at least one processor 2210, a memory 2220, and a transceiver 2230.
  • the processor 2210 is coupled with the memory 2220 and the transceiver 2230.
  • the coupling in the embodiment of the present application is an indirect coupling or a communication connection between devices, units or modules, which can be electrical, mechanical or other forms for the device , Information exchange between units or modules.
  • the embodiment of the present application does not limit the connection medium between the transceiver 2230, the processor 2210, and the memory 2220.
  • the memory 2220, the processor 2210, and the transceiver 2230 may be connected by a bus, and the bus may be divided into an address bus, a data bus, and a control bus.
  • the memory 2220 is used to store program instructions.
  • the transceiver 2230 is used to send screen content, control instructions, etc. to the target device.
  • the processor 2210 is configured to call program instructions stored in the memory 2220, so that the device 2200 executes the screen projection method shown in FIG. 8, FIG. 16, or FIG. 18.
  • the processor 2210 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
  • the memory 2220 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory (volatile memory). For example, random-access memory (RAM).
  • the memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory in the embodiments of the present application may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
  • the device 1300 and the device 2200 may be used to implement the method shown in FIG. 8, FIG. 16, or FIG. 18 in the embodiment of the present application.
  • the device 1300 and the device 2200 may be used to implement the method shown in FIG. 8, FIG. 16, or FIG. 18 in the embodiment of the present application.
  • the embodiments of the present application can be implemented by hardware, firmware, or a combination of them.
  • the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD- ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other media that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer.
  • EEPROM electrically erasable programmable read-only memory
  • CD- ROM compact disc read-only memory
  • Any connection can suitably become a computer-readable medium.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (digital video discs, DVDs), floppy discs, and Blu-ray discs. Disks usually copy data magnetically, while disks use lasers to copy data optically. The above combination should also be included in the protection scope of the computer-readable medium.

Abstract

A screen projection method and an electronic device, which relate to the technical field of terminals, which are applied to a device having a folding screen, and which are conducive to implementing smart screen projection. The method is applied to a first electronic device, which comprises an internal screen and an external screen, the internal screen being a foldable screen. The method comprises: after receiving an operation of folding the internal screen from an unfolded state to a closed state, the first electronic device locking the internal screen in response to the operation of folding the internal screen from the unfolded state to the closed state, acquiring screen projection content of a target application program among at least one application program that is currently running, and then sending the screen projection content to a second electronic device. The described technical solution is conducive to triggering an electronic device to project a screen by means of a user performing only one operation, thus simplifying the means of operation of screen projection and improving the efficiency of screen projection.

Description

一种投屏方法及电子设备Screen projection method and electronic equipment
相关申请的交叉引用Cross references to related applications
本申请要求在2019年07月31日提交中国专利局、申请号为201910704758.6、申请名称为“一种投屏方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910704758.6, and the application name is "a projection method and electronic equipment" on July 31, 2019, the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本申请涉及终端技术领域,特别涉及一种投屏方法及电子设备。This application relates to the field of terminal technology, and in particular to a screen projection method and electronic equipment.
背景技术Background technique
投屏技术是指利用无线通信技术,将电子设备A上的内容投送到电子设备B上,使得电子设备B能够显示电子设备A上的内容。例如,通过投屏技术,可以将显示屏较小的电子设备(例如手机、平板电脑等)上的内容投送到显示屏较大的电子设备(例如电视机、投影仪等)上,使得用户可以在显示屏较大的电子设备上观看显示屏较小的电子设备上的内容,从而达到更好的观看效果。Screen projection technology refers to the use of wireless communication technology to deliver the content on the electronic device A to the electronic device B, so that the electronic device B can display the content on the electronic device A. For example, through projection technology, content on electronic devices with smaller displays (such as mobile phones, tablet computers, etc.) can be delivered to electronic devices with larger displays (such as televisions, projectors, etc.), so that users The content on the electronic device with the smaller display screen can be viewed on the electronic device with the larger display screen, so as to achieve a better viewing effect.
随着投屏技术的不断推广,对于智能投屏的研究具有重要的实用价值。With the continuous promotion of screen projection technology, the research on smart screen projection has important practical value.
发明内容Summary of the invention
本申请实施例提供一种投屏方法及电子设备,有助于降低触发电子设备发起投屏的操作方式的复杂性,提高触发源端设备发起投屏的效率。The embodiments of the present application provide a screen projection method and electronic device, which help reduce the complexity of the operation mode for triggering the electronic device to initiate the screen projection, and improve the efficiency of triggering the source device to initiate the screen projection.
第一方面,本申请实施例的一种投屏方法,所述方法应用于第一电子设备,所述第一电子设备包括第一显示屏,所述方法包括:In a first aspect, a screen projection method according to an embodiment of the present application is applied to a first electronic device, the first electronic device includes a first display screen, and the method includes:
第一电子设备接收到第一操作;The first electronic device receives the first operation;
响应于所述第一操作,所述第一电子设备将所述第一显示屏熄屏,并从当前运行的至少一个应用程序的目标应用程序中获取投屏内容;In response to the first operation, the first electronic device turns off the first display screen, and obtains screen projection content from a target application of at least one currently running application;
第一电子设备将该投屏内容发送给第二电子设备。The first electronic device sends the projected content to the second electronic device.
本申请实施例中由于第一电子设备能够响应于第一操作发起投屏,因此用户只需对第一电子设备操作一次就可以发起投屏,有助于降低触发电子设备发起投屏的操作方式的复杂性,提高触发第一电子设备发起投屏的效率。In the embodiment of the application, since the first electronic device can initiate a screen projection in response to the first operation, the user can initiate a screen projection only by operating the first electronic device once, which helps to reduce the operation mode that triggers the electronic device to initiate a screen projection The complexity of triggering the first electronic device to initiate screen projection is improved.
在一种可能的设计中,所述第一操作为熄屏操作。例如,点击电源键的操作、合上智能保护套的盖子的操作。再例如,第一电子设备为翻盖电子设备,第一操作为设备外盖的操作。再例如,第一显示屏为可折叠的显示屏,则第一操作可以为将第一显示屏由展开状态折叠为闭合状态的操作。对于外折叠的显示屏来说,第一电子设备响应于将第一显示屏由展开状态折叠为闭合状态的操作,可以将第一显示屏的部分区域熄屏,也可以将整个第一显示屏熄屏。再例如,第一显示屏为可伸缩的显示屏,则第一操作可以为收缩第一显示屏的操作。对于可伸缩的显示屏来说,与外折叠的显示屏类似,第一电子设备响应于收缩第一显示屏的操作,可以将第一显示屏的部分区域(即收缩部分)熄屏,也可以将整个第 一显示屏熄屏。In a possible design, the first operation is a screen-off operation. For example, the operation of clicking the power button, the operation of closing the cover of the smart cover. For another example, the first electronic device is a flip electronic device, and the first operation is an operation of the outer cover of the device. For another example, if the first display screen is a foldable display screen, the first operation may be an operation of folding the first display screen from an unfolded state to a closed state. For an externally foldable display screen, the first electronic device can turn off a part of the first display screen or turn off the entire first display screen in response to the operation of folding the first display screen from the unfolded state to the closed state. Turn off the screen. For another example, if the first display screen is a retractable display screen, the first operation may be an operation of shrinking the first display screen. For a retractable display screen, similar to an externally foldable display screen, the first electronic device can turn off a part of the first display screen (ie, the contracted part) in response to the operation of shrinking the first display screen, or Turn off the entire first display screen.
在一种可能的设计中,响应于第一操作,将所述第一显示屏熄屏之后,从当前运行的至少一个应用程序中的目标应用程序获取投屏内容之前,所述方法还包括:In a possible design, in response to the first operation, after turning off the first display screen, and before acquiring the projected content from the target application in at least one currently running application, the method further includes:
确定智能投屏功能已开启;和/或,Make sure that the smart screen projection function is turned on; and/or,
向用户提示是否允许投屏,并接收到用户允许投屏的操作。Prompt the user whether to allow screen projection, and receive the user's permission to cast screen operation.
通过上述技术方案,有助于提高与用户的交互。Through the above technical solutions, it is helpful to improve the interaction with users.
在另一种可能的设计中,第一电子设备将投屏内容发送给第二电子设备之前,还包括:In another possible design, before the first electronic device sends the projected content to the second electronic device, the method further includes:
判断第一电子设备所处的环境,以识别出用户是否想投屏的意图。示例的,第一电子设备判断显示屏是否被遮挡,例如,第一电子设备包括第一显示屏,第一显示屏为可折叠的显示屏且为内屏,第一电子设备还包括外屏时,第一电子设备可以判断外屏是否被遮挡。又示例的,第一电子设备只包括第一显示屏,第一电子设备可以判断第一显示屏是否被遮挡。当第一电子设备的显示屏未被遮挡时,第一电子设备再将投屏内容发送给第二电子设备。通过判断显示屏是否被遮挡可以识别出用户是否将第一电子设备放置包里或兜里等,一般来说,用户将第一电子设备放置到包里或兜里时,不再使用第一电子设备,可能无需在投屏。进一步的,第一电子设备还可以通过用户使用设备的历史记录,学习用户使用电子设备的行为习惯,根据用户使用电子设备的行为习惯进一步判断是否将投屏内容发送给第二电子设备。The environment where the first electronic device is located is determined to identify whether the user intends to cast a screen. For example, when the first electronic device determines whether the display screen is blocked, for example, the first electronic device includes a first display screen, the first display screen is a foldable display screen and an inner screen, and the first electronic device also includes an outer screen. , The first electronic device can determine whether the external screen is blocked. As another example, the first electronic device only includes the first display screen, and the first electronic device can determine whether the first display screen is blocked. When the display screen of the first electronic device is not blocked, the first electronic device sends the projected content to the second electronic device. By judging whether the display screen is blocked, it can be recognized whether the user puts the first electronic device in the bag or pocket, etc. Generally speaking, when the user puts the first electronic device in the bag or pocket, the first electronic device is no longer used The device may not need to cast the screen. Further, the first electronic device can also learn the user's behavior habit of using the electronic device through the user's history of using the device, and further determine whether to send the screened content to the second electronic device according to the user's behavior habit of using the electronic device.
在一种可能的设计中,第一电子设备将投屏内容发送给第二电子设备之后,在第二显示屏上显示控制界面,所述控制界面用于实现对目标应用程序的快捷操作。第二显示屏可以为第一显示屏的部分或全部显示区域,或者为不同于第一显示屏的一个显示屏。从而便于用户实现对投屏内容的控制。In a possible design, after the first electronic device sends the projected content to the second electronic device, a control interface is displayed on the second display screen, and the control interface is used to implement quick operations on the target application. The second display screen may be a part or all of the display area of the first display screen, or a display screen different from the first display screen. Thus, it is convenient for users to control the content of the screen.
在一种可能的设计中,所述第一电子设备从预先设置的与应用程序的类型对应的控制界面中,确定与所述目标应用程序的类型对应的控制界面,并在所述第二显示屏上显示与所述目标应用程序的类型对应的控制界面。有助于简化实现方式。In a possible design, the first electronic device determines a control interface corresponding to the type of the target application from a preset control interface corresponding to the type of the application, and displays it in the second The control interface corresponding to the target application type is displayed on the screen. Help simplify the implementation.
在一种可能的设计中,所述第一电子设备识别所述目标应用程序中的具有触控功能的虚拟按钮,并根据所述具有触控功能的虚拟按钮,在所述第二显示屏上显示用于控制所述目标应用程序的所述控制界面。有助于提高显示的控制界面的可靠性。In a possible design, the first electronic device recognizes the virtual button with touch function in the target application, and displays the virtual button with touch function on the second display screen according to the virtual button with touch function. The control interface for controlling the target application is displayed. It helps to improve the reliability of the displayed control interface.
在一种可能的设计中,所述第一电子设备未识别出所述目标应用程序中的具有触控功能的虚拟按钮时,则从预先设置的与应用程序的类型对应的控制界面中,确定与所述目标应用程序的类型对应的控制界面,并在所述外屏上显示与所述目标应用程序的类型对应的控制界面。有助于简化实现方式。In a possible design, when the first electronic device does not recognize the virtual button with touch function in the target application, it determines from the preset control interface corresponding to the type of application A control interface corresponding to the type of the target application, and a control interface corresponding to the type of the target application is displayed on the external screen. Help simplify the implementation.
在一种可能的设计中,所述第一电子设备从当前运行的至少一个应用程序中,确定目标应用程序,包括:In a possible design, the first electronic device determines the target application from at least one currently running application, including:
所述第一电子设备在所述第二显示屏上显示当前运行的至少一个应用程序中支持投屏功能的至少一个应用程序的标识;接收到用户选中外屏上显示的应用程序的标识的操作后,则响应于所述用户选中外屏上显示的应用程序的标识的操作,确定所述目标应用程序为用户选中的应用程序的标识所标识的应用程序。有助于提高设备与用户之间的交互。The first electronic device displays the identification of at least one application that supports the screen projection function among the currently running at least one application on the second display screen; receiving an operation of selecting the identification of the application displayed on the external screen by the user Then, in response to the operation of the user selecting the identifier of the application displayed on the external screen, it is determined that the target application is the application identified by the identifier of the application selected by the user. Help improve the interaction between the device and the user.
在一种可能的设计中,所述第一电子设备将所述第一显示屏熄屏之后,将投屏内容发送到所述第二电子设备之前,所述方法还包括:In a possible design, after the first electronic device turns off the first display screen, before sending the projected content to the second electronic device, the method further includes:
所述第一电子设备获取至少一个电子设备的标识;Acquiring the identification of at least one electronic device by the first electronic device;
所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,所述目标电子设备的标识用于标识所述第二电子设备。The first electronic device determines the identification of the target electronic device from the identification of the at least one electronic device, and the identification of the target electronic device is used to identify the second electronic device.
在一种可能的设计中,所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,包括:In a possible design, the first electronic device determining the identification of the target electronic device from the identification of the at least one electronic device includes:
所述第一电子设备从所述至少一个电子设备的标识中,确定用于标识私有电子设备的标识为目标电子设备的标识。有助于减少用户操作。The first electronic device determines, from the identification of the at least one electronic device, the identification used to identify the private electronic device as the identification of the target electronic device. Help reduce user operations.
在一种可能的设计中,所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,包括:In a possible design, the first electronic device determining the identification of the target electronic device from the identification of the at least one electronic device includes:
所述第一电子设备在第二显示屏上显示至少一个电子设备的标识;接收到用户选中所述第二显示屏上显示的电子设备的标识的操作后,则响应于上述操作,将所述用户选中的电子设备的标识作为所述目标电子设备的标识。The first electronic device displays the identification of at least one electronic device on the second display screen; after receiving the user's operation to select the identification of the electronic device displayed on the second display screen, in response to the above operation, the The identification of the electronic device selected by the user is used as the identification of the target electronic device.
在一种可能的设计中,所述至少一个电子设备的标识中每个标识用于标识公共电子设备。In a possible design, each of the identifications of the at least one electronic device is used to identify a public electronic device.
在一种可能的设计中,所述第一电子设备将所述投屏内容发送到第二电子设备之后,所述方法还包括:In a possible design, after the first electronic device sends the projected content to the second electronic device, the method further includes:
所述第一电子设备接收到第二操作,并响应于所述第二操作,停止投屏。示例的,第一电子设备在停止投屏后,在第一显示屏上呈现投屏内容所在的用户界面。示例的,第二操作可以为解锁操作。或者,在第一显示屏为可折叠的显示屏的情况下,第二操作可以为将第一显示屏由闭合状态展开为展开状态的操作。或者,在第一显示屏为可伸缩的显示屏的情况下,第二操作可以为将第一显示屏伸展开的操作等。The first electronic device receives the second operation, and in response to the second operation, stops projection. For example, after stopping the screen projection, the first electronic device displays the user interface where the screen projection content is located on the first display screen. For example, the second operation may be an unlocking operation. Or, when the first display screen is a foldable display screen, the second operation may be an operation of unfolding the first display screen from a closed state to an unfolded state. Or, when the first display screen is a retractable display screen, the second operation may be an operation of extending the first display screen, or the like.
第二方面,本申请实施例还提供了一种投屏控制的方法,应用于第一电子设备,所述第一电子设备包括第一应用程序,所述方法包括:In a second aspect, an embodiment of the present application also provides a method for controlling projection, which is applied to a first electronic device, where the first electronic device includes a first application, and the method includes:
所述第一电子设备从第一应用程序中获取投屏内容;The first electronic device obtains the screencast content from the first application;
所述第一电子设备将所述投屏内容发送给第二电子设备;The first electronic device sends the projected content to the second electronic device;
所述第一电子设备在投屏成功后,从预先设置的与应用程序的类型对应的控制界面中,确定与所述第一应用程序的类型对应的控制界面;The first electronic device determines a control interface corresponding to the type of the first application program from the preset control interface corresponding to the type of the application program after the screen projection is successful;
所述第一电子设备在显示屏上显示确定的所述控制界面,所述控制界面上包括具有触控功能的虚拟按钮。其中,第一电子设备在接收到对所述控制界面上的某一虚拟按钮的操作后,响应于上述操作,实现对第二电子设备上呈现投屏内容的控制。The first electronic device displays the determined control interface on a display screen, and the control interface includes a virtual button with a touch function. Wherein, after receiving an operation on a certain virtual button on the control interface, the first electronic device responds to the foregoing operation to realize the control of the projection content presented on the second electronic device.
本申请实施例由于通过预先设置与应用程序的类型对应的控制界面,因此有助于简化显示控制界面的方式。In the embodiment of the present application, the control interface corresponding to the type of the application program is preset, which helps to simplify the way of displaying the control interface.
在一种可能的设计中,所述第一电子设备可以在出厂之前将与应用程序的类型对应的控制界面配置在所述第一电子设备中;或者,第一电子设备根据安装在自身的应用程序,从服务器中获取与应用程序的类型对应的控制界面。In a possible design, the first electronic device may configure a control interface corresponding to the type of application in the first electronic device before leaving the factory; or, the first electronic device may be installed in accordance with its own application Program, obtain the control interface corresponding to the type of application from the server.
第三方面,本申请实施例还提供了另一种投屏控制的方法,应用于第一电子设备,所述第一电子设备包括第一应用程序,所述方法包括:In the third aspect, the embodiments of the present application also provide another method of projection control, which is applied to a first electronic device, the first electronic device includes a first application, and the method includes:
所述第一电子设备从第一应用程序中获取投屏内容;The first electronic device obtains the screencast content from the first application;
所述第一电子设备将所述投屏内容发送给第二电子设备;The first electronic device sends the projected content to the second electronic device;
所述第一电子设备在投屏成功后,从第一应用程序中识别具有触控功能的虚拟按钮,根据识别到的虚拟按钮,在显示屏上显示控制界面。After the screen projection is successful, the first electronic device recognizes a virtual button with a touch function from the first application, and displays a control interface on the display screen according to the recognized virtual button.
示例的,所述控制界面上包括的虚拟按钮的图标可以是所述第一电子设备对从第一应用程序中识别到的虚拟按钮进行重新布局、裁剪和/或缩放得到的。For example, the icons of the virtual buttons included on the control interface may be obtained by the first electronic device re-arranging, cropping and/or scaling the virtual buttons recognized from the first application.
所述控制界面上包括与所述第一电子设备从第一应用程序中识别到的虚拟按钮的功能相同的虚拟按钮。The control interface includes a virtual button with the same function as the virtual button recognized by the first electronic device from the first application.
需要说明的是,第一电子设备在接收到对所述控制界面上的某一虚拟按钮的操作后,响应于上述操作,实现对第二电子设备上呈现投屏内容的控制。It should be noted that, after the first electronic device receives an operation on a certain virtual button on the control interface, in response to the above operation, it realizes the control of the projection content presented on the second electronic device.
通过上述技术方案,有助于使得第一电子设备显示的控制界面更为准确,提高用户体验。Through the above technical solutions, it is helpful to make the control interface displayed by the first electronic device more accurate and improve user experience.
在一种可能的设计中,所述第一电子设备从第一应用程序中识别具有触控功能的虚拟按钮,包括:In a possible design, the first electronic device recognizing the virtual button with touch function from the first application includes:
所述第一电子设备根据用户对所述第一应用程序的历史操作记录、或者第一应用程序提供的软件开发程序包(software development kit,SDK)接口、或者所述第一应用程序中预定义的虚拟按钮在用户界面上的位置坐标,从第一应用程序中识别具有触控功能的虚拟按钮。或者,所述第一电子设备通过对第一应用程序进行语音分析,从第一应用程序中识别具有触控功能的虚拟按钮。有助于简化实现方式。The first electronic device is based on the user's historical operation record of the first application, or a software development kit (SDK) interface provided by the first application, or a predefined in the first application The position coordinates of the virtual button on the user interface, and the virtual button with touch function is recognized from the first application. Alternatively, the first electronic device recognizes a virtual button with a touch function from the first application program by performing voice analysis on the first application program. Help simplify the implementation.
在一种可能的设计中,所述第一电子设备在从第一应用程序中未识别到具有触控功能的虚拟按钮时,则从预先设置的与应用程序的类型对应的控制界面中,确定与所述第一应用程序的类型对应的控制界面,并在显示屏上显示确定的控制界面。有助于简化实现方式的同时,满足用户需求。In a possible design, when the first electronic device does not recognize the virtual button with touch function from the first application, it determines from the preset control interface corresponding to the type of application A control interface corresponding to the type of the first application program, and the determined control interface is displayed on the display screen. It helps to simplify the implementation while meeting user needs.
在一种可能的设计中,所述控制界面还包括备选的至少一个应用程序的标识、以及备选的至少一个投屏设备的标识。有助于用户可以根据自身需要切换投屏的应用程序和/或投屏设备。In a possible design, the control interface further includes an identification of at least one alternative application program and an identification of at least one alternative screen projection device. It is helpful for users to switch screen-casting applications and/or screen-casting devices according to their needs.
在一种可能的设计中,所述控制界面还包括用于取消投屏的虚拟按钮。有助于用户可以根据需求主动停止投屏,提高设备与用户之间的交互。In a possible design, the control interface further includes a virtual button for canceling screen projection. It helps users to actively stop screencasting according to their needs and improve the interaction between the device and the user.
第四方面,本申请实施例提供的一种芯片,所述芯片与设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In a fourth aspect, a chip provided by an embodiment of the present application is coupled with a memory in a device, so that the chip invokes program instructions stored in the memory during operation to implement the above-mentioned aspects and aspects of the embodiments of the present application. Any possible design method involved in all aspects.
第五方面,本申请实施例的一种计算机存储介质,该计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得设备执行本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In the fifth aspect, a computer storage medium of an embodiment of the present application, the computer storage medium stores program instructions, when the program instructions run on an electronic device, the device executes the above aspects of the embodiments of the present application and the various aspects related to Any possible design method.
第六方面,本申请实施例的一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In a sixth aspect, a computer program product of an embodiment of the present application, when the computer program product runs on an electronic device, causes the electronic device to execute and implement the above-mentioned aspects of the embodiments of the present application and any possible aspects involved in each aspect Design method.
另外,第四方面至第六方面中任一种可能设计方式所带来的技术效果可参见方法部分相关中不同设计方式所带来的技术效果,此处不再赘述。In addition, the technical effects brought about by any of the possible design methods of the fourth aspect to the sixth aspect can be referred to the technical effects brought about by different design methods in the related method section, which will not be repeated here.
附图说明Description of the drawings
图1为本申请实施例应用的一种场景示意图;FIG. 1 is a schematic diagram of a scenario applied by an embodiment of this application;
图2为本申请实施例的一种电子设备的硬件结构示意图;2 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the application;
图3A为本申请实施例的电子设备的物理形态的示意图;3A is a schematic diagram of the physical form of an electronic device according to an embodiment of the application;
图3B为本申请实施例的电子设备的另一物理形态的示意图;3B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图4A为本申请实施例的电子设备的另一物理形态的示意图;4A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application;
图4B为本申请实施例的电子设备的另一物理形态的示意图;4B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图4C为本申请实施例的电子设备的另一物理形态的示意图;4C is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图5A为本申请实施例的电子设备的另一物理形态的示意图;5A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application;
图5B为本申请实施例的电子设备的另一物理形态的示意图;5B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图5C为本申请实施例的电子设备的另一物理形态的示意图;5C is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图6A为本申请实施例的电子设备的另一物理形态的示意图;6A is a schematic diagram of another physical form of an electronic device according to an embodiment of the application;
图6B为本申请实施例的电子设备的另一物理形态的示意图;6B is a schematic diagram of another physical form of the electronic device according to an embodiment of the application;
图7为本申请实施例一种电子设备的软件架构的示意图;FIG. 7 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the application;
图8为本申请实施例的一种投屏方法的流程示意图;FIG. 8 is a schematic flowchart of a screen projection method according to an embodiment of the application;
图9为本申请实施例应用的另一场景示意图;FIG. 9 is a schematic diagram of another scenario applied by an embodiment of this application;
图10为本申请实施例的一种用户界面的示意图;FIG. 10 is a schematic diagram of a user interface according to an embodiment of the application;
图11A为本申请实施例的另一用户界面的示意图;11A is a schematic diagram of another user interface according to an embodiment of the application;
图11B为本申请实施例的另一用户界面的示意图;FIG. 11B is a schematic diagram of another user interface according to an embodiment of the application;
图11C为本申请实施例的另一用户界面的示意图;11C is a schematic diagram of another user interface according to an embodiment of the application;
图11D为本申请实施例的另一用户界面的示意图;11D is a schematic diagram of another user interface according to an embodiment of the application;
图12A为本申请实施例的另一用户界面的示意图;12A is a schematic diagram of another user interface according to an embodiment of the application;
图12B为本申请实施例的另一用户界面的示意图;12B is a schematic diagram of another user interface according to an embodiment of the application;
图13为本申请实施例的另一用户界面的示意图;FIG. 13 is a schematic diagram of another user interface according to an embodiment of the application;
图14A为本申请实施例的一种控制界面的示意图;14A is a schematic diagram of a control interface according to an embodiment of the application;
图14B为本申请实施例的另一控制界面的示意图;14B is a schematic diagram of another control interface according to an embodiment of the application;
图14C为本申请实施例的另一控制界面的示意图;14C is a schematic diagram of another control interface according to an embodiment of the application;
图14D为本申请实施例的另一控制界面的示意图;14D is a schematic diagram of another control interface according to an embodiment of the application;
图14E为本申请实施例的另一控制界面的示意图;14E is a schematic diagram of another control interface according to an embodiment of the application;
图14F为本申请实施例的另一控制界面的示意图;14F is a schematic diagram of another control interface according to an embodiment of the application;
图14G为本申请实施例的另一控制界面的示意图;14G is a schematic diagram of another control interface according to an embodiment of the application;
图15为本申请实施例的另一用户界面的示意图;15 is a schematic diagram of another user interface according to an embodiment of the application;
图16为本申请实施例的另一投屏方法的流程示意图;16 is a schematic flowchart of another screen projection method according to an embodiment of the application;
图17为本申请实施例的另一电子设备的物理形态示意图;17 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application;
图18为本申请实施例的另一投屏方法的流程示意图;FIG. 18 is a schematic flowchart of another screen projection method according to an embodiment of the application;
图19为本申请实施例的另一电子设备的物理形态示意图;19 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application;
图20为本申请实施例的另一电子设备的物理形态示意图;20 is a schematic diagram of the physical form of another electronic device according to an embodiment of the application;
图21为本申请实施例的另一电子设备的结构示意图;FIG. 21 is a schematic structural diagram of another electronic device according to an embodiment of the application;
图22为本申请实施例的另一电子设备的结构示意图。FIG. 22 is a schematic structural diagram of another electronic device according to an embodiment of the application.
具体实施方式Detailed ways
应理解,在本申请中除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个” 是指一个或者多个,“多个”是指两个或两个以上。It should be understood that unless otherwise specified in this application, "/" means or, for example, A/B can mean A or B; "and/or" in this application is merely an association relationship describing related objects , Indicates that there can be three relationships, for example, A and/or B, which can indicate: A alone exists, A and B exist at the same time, and B exists alone. "At least one" means one or more, and "plurality" means two or more.
在本申请中,“示例的”、“在一些实施例中”、“在另一些实施例中”等用于表示作例子、例证或说明。本申请中被描述为“示例”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用示例的一词旨在以具体方式呈现概念。In this application, "exemplary", "in some embodiments", "in other embodiments", etc. are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as an "example" in this application should not be construed as being more preferable or advantageous than other embodiments or design solutions. Rather, the term example is used to present the concept in a concrete way.
另外,本申请中涉及的“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量,也不能理解为指示或暗示顺序。In addition, the terms "first" and "second" mentioned in this application are only used for the purpose of distinguishing description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Not to be understood as indicating or implying order.
应理解,本申请实施例中涉及至少两个电子设备。具体的,所述至少两个电子设备包括源端设备和目标端设备。其中,源端设备又可以称之为source端设备,为发起投屏的电子设备。示例的,源端设备用于发送投屏内容。例如,投屏内容可以为视频、音频、图像、文档、游戏等,对此不作限定。目标端设备又可以称之为client设备(客户端设备)或对端设备等,为接收投屏内容的电子设备。示例的,目标端设备接收到投屏内容后,可以以相应的布局呈现或显示投屏内容。需要说明的是,本申请实施例中投屏内容在目标端设备的布局与在源端设备的布局可以不同,也可以相同。It should be understood that at least two electronic devices are involved in the embodiments of the present application. Specifically, the at least two electronic devices include a source device and a target device. Among them, the source device can also be referred to as the source device, which is an electronic device that initiates screen projection. For example, the source device is used to send screencast content. For example, the screencast content may be video, audio, image, document, game, etc., which is not limited. The target device can also be referred to as a client device (client device) or a peer device, etc., and is an electronic device that receives projected screen content. For example, after receiving the projected content, the target device can present or display the projected content in a corresponding layout. It should be noted that the layout of the projected content on the target device and the layout of the source device in the embodiment of the present application may be different or the same.
在一些实施例中,源端设备可以为便携式电子设备,诸如手机、平板电脑、膝上型计算机(Laptop)、可穿戴设备(如智能手表)等。上述便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020106096-appb-000001
或者其它操作系统。需要说明的是,本申请实施例对便携式电子设备的物理形态不作限定。例如,便携式电子设备可以为可折叠设备、直板设备、翻盖设备等。还需要说明的是,本申请实施例中的便携式电子设备上还可以安装有智能保护套。在本申请的另一些实施例中,源端设备也可以为一体机、台式机等。
In some embodiments, the source device may be a portable electronic device, such as a mobile phone, a tablet computer, a laptop computer (Laptop), a wearable device (such as a smart watch), and the like. Exemplary embodiments of the aforementioned portable electronic devices include, but are not limited to, carrying
Figure PCTCN2020106096-appb-000001
Or other operating systems. It should be noted that the embodiments of the present application do not limit the physical form of the portable electronic device. For example, the portable electronic device may be a foldable device, a candy bar device, a flip device, etc. It should also be noted that the portable electronic device in the embodiment of the present application may also be equipped with a smart protective cover. In other embodiments of the present application, the source device may also be an all-in-one computer, a desktop computer, or the like.
在一些实施例中,目标端设备可以为平板电脑、一体机、台式机、电视机、显示器、投影仪、音响等可以用于接收并呈现或显示投屏内容的电子设备。In some embodiments, the target device may be an electronic device such as a tablet computer, an all-in-one computer, a desktop computer, a television, a monitor, a projector, a speaker, etc., which can be used to receive and present or display projected content.
示例的,图1示出了本申请实施例的一种应用场景。如图1所示,电子设备10为源端设备,电子设备20为目标端设备。电子设备10可以将投屏内容发送给电子设备20,使得投屏内容可以通过电子设备20呈现或显示,从而达到更好地观看效果。其中,电子设备10和电子设备20可以通过有线(比如通过电源线)和/或无线(比如无线保真(wireless fidelity,wi-fi)、蓝牙等)的方式建立连接。需要说明的是,图1仅为本申请实施例的一种应用场景的示例,本申请实施例不限定接收源端设备发送的投屏内容的目标端设备的个数。以源端设备为图1所示的电子设备10为例,电子设备10可以将投屏内容发送给包括电子设备20在内的两个或两个以上电子设备,也可以只将投屏内容发送给电子设备20。By way of example, Fig. 1 shows an application scenario of an embodiment of the present application. As shown in FIG. 1, the electronic device 10 is a source device, and the electronic device 20 is a target device. The electronic device 10 can send the projected content to the electronic device 20, so that the projected content can be presented or displayed by the electronic device 20, thereby achieving a better viewing effect. Wherein, the electronic device 10 and the electronic device 20 may establish a connection in a wired manner (such as through a power cord) and/or wireless (such as wireless fidelity (wi-fi), Bluetooth, etc.). It should be noted that FIG. 1 is only an example of an application scenario of the embodiment of the present application, and the embodiment of the present application does not limit the number of target end devices that receive the projection content sent by the source end device. Taking the source device as the electronic device 10 shown in FIG. 1 as an example, the electronic device 10 may send the screen content to two or more electronic devices including the electronic device 20, or it may only send the screen content给电子设备20。 To the electronic device 20.
然而,由于目前触发源端设备发起投屏的操作方式较为繁琐,用户体验不佳,因此本申请实施例提供了一种投屏方法,使得源端设备可以响应于第一操作,发起投屏。即用户可以对源端设备操作一次,就能够使得源端设备实现投屏,从而有助于降低触发源端设备发起投屏的操作方式的复杂性,提高触发源端设备发起投屏的效率。在一些实施例中,第一操作可以用于控制电子设备熄屏,在这种情况下,第一操作可以称之为熄屏操作。需要说明的是,本申请实施例中电子设备在熄屏时,可以显示黑屏且未锁屏、或者显示黑屏且锁屏、或者显示默认用户界面且未锁屏、或者显示默认用户界面且锁屏、或者部分黑屏、部分显示默认用户界面等,其中,默认用户界面中可以包括日期和时间信息、和/或常用应用图标等。示例的,默认用户界面上包括的内容可以根据用户的需求进行相应的设置,也可以是电子设备在出厂之前设置好的。例如,电子设备在熄屏时处于锁屏状态,第一操作 也可以称之为锁屏操作。由于当源端设备在熄屏时,能够主动发起投屏,将投屏内容发送到目标端设备进行呈现或显示,使得用户可以在目标端设备继续查看相应的内容,从而有助于提高用户体验。此外,在本申请的另一些实施例中,第一操作还可以为其他操作,具体的,第一操作的实现方式可以与电子设备的物理形态相关。However, since the current operation mode of triggering the source device to initiate a screen projection is cumbersome and the user experience is poor, the embodiment of the present application provides a screen projection method so that the source device can initiate a screen projection in response to the first operation. That is, the user can operate the source-end device once to enable the source-end device to perform screen projection, thereby helping to reduce the complexity of the operation mode that triggers the source-end device to initiate the screen-casting, and improve the efficiency of triggering the source-end device to initiate the screen-casting. In some embodiments, the first operation may be used to control the screen to turn off the electronic device. In this case, the first operation may be referred to as a screen turning off operation. It should be noted that, when the electronic device in the embodiment of the present application turns off the screen, it may display a black screen and not lock the screen, or display a black screen and lock the screen, or display the default user interface and not lock the screen, or display the default user interface and lock the screen , Or part of the black screen, part of the default user interface, etc., where the default user interface may include date and time information, and/or commonly used application icons, etc. For example, the content included in the default user interface can be set according to the user's needs, or the electronic device can be set before leaving the factory. For example, if the electronic device is in a locked screen state when the screen is turned off, the first operation may also be called a screen lock operation. Since the source device can actively initiate a screen projection when the screen is off, and send the projected content to the target device for presentation or display, the user can continue to view the corresponding content on the target device, which helps to improve the user experience . In addition, in other embodiments of the present application, the first operation may also be other operations. Specifically, the implementation of the first operation may be related to the physical form of the electronic device.
以下对源端设备和目标端设备、以及用于使用这样的源端设备和目标端设备的实施例进行相应的介绍。The source device and target device, and embodiments for using such source device and target device will be introduced in the following.
以源端设备为图1所示的应用场景中的电子设备10为例。示例的,图2示出了本申请实施例的一种电子设备10的硬件结构示意图。如图2所示,电子设备10包括处理器110、内部存储器121、外部存储器接口122、摄像头131、第一显示屏141、传感器模块150、音频模块160、扬声器161、受话器162、麦克风163、耳机接口164、按键170、用户标识模块(subscriber identification module,SIM)卡接口171、通用串行总线(universal serial bus,USB)接口172、充电管理模块180、电源管理模块181、电池182、移动通信模块191和无线通信模块192。在另一些实施例中,电子设备10还包括第二显示屏142。其中,第一显示屏141和第二显示屏142可以位于电子设备10的不同面上,例如,第一显示屏141位于电子设备10的第一面(如电子设备10的正面)上,第二显示屏142位于电子设备10的第二面(如电子设备10的背面)上。此外,本申请实施例中电子设备10还可以包括马达、指示器、机械转轴等。Take the source device as the electronic device 10 in the application scenario shown in FIG. 1 as an example. By way of example, FIG. 2 shows a schematic diagram of the hardware structure of an electronic device 10 according to an embodiment of the present application. As shown in FIG. 2, the electronic device 10 includes a processor 110, an internal memory 121, an external memory interface 122, a camera 131, a first display screen 141, a sensor module 150, an audio module 160, a speaker 161, a receiver 162, a microphone 163, and a headset. Interface 164, buttons 170, subscriber identification module (SIM) card interface 171, universal serial bus (USB) interface 172, charging management module 180, power management module 181, battery 182, mobile communication module 191 and wireless communication module 192. In other embodiments, the electronic device 10 further includes a second display screen 142. Wherein, the first display screen 141 and the second display screen 142 may be located on different faces of the electronic device 10. For example, the first display screen 141 is located on the first face of the electronic device 10 (for example, the front face of the electronic device 10), and the second The display screen 142 is located on the second side of the electronic device 10 (such as the back of the electronic device 10). In addition, the electronic device 10 in the embodiment of the present application may also include a motor, an indicator, a mechanical shaft, and the like.
应理解,图2所示的硬件结构仅是一个示例。本申请实施例的源端设备可以具有比图中所示电子设备10更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。可以理解的是,本申请实施例示意的结构并不构成对电子设备10的具体限定。在本申请另一些实施例中,电子设备10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that the hardware structure shown in FIG. 2 is only an example. The source device of the embodiment of the present application may have more or fewer components than the electronic device 10 shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits. It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP)、调制解调器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem, a graphics processing unit (GPU), and an image signal processor. , ISP), video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors.
在一些实施例中,处理器110中还可以设置缓存器,用于存储部分程序和/或数据。示例的,处理器110中的缓存器可以为高速缓冲存储器。该缓存器可以用于保存处理器110刚用过的、生成的、或循环使用的程序和/或数据。如果处理器110需要使用该程序和/或数据,可从该缓存器中直接调用。减少了处理器110获取程序和/或数据的时间,从而有助于提高系统的效率。In some embodiments, the processor 110 may also be provided with a buffer for storing part of the program and/or data. For example, the buffer in the processor 110 may be a cache memory. The buffer may be used to store programs and/or data that have just been used, generated, or recycled by the processor 110. If the processor 110 needs to use the program and/or data, it can be directly called from the buffer. The time for the processor 110 to obtain programs and/or data is reduced, thereby helping to improve the efficiency of the system.
内部存储器121可以用于存储程序和/或数据。需要说明的是,本申请实施例中程序又可以称之为程序指令。在一些实施例中,内部存储器121包括存储程序区和存储数据区。其中,存储程序区可以用于存储操作系统(如Android、IOS等操作系统)、至少一个功能(比如锁屏、投屏)所需的计算机程序等。存储数据区可以用于存储电子设备使用过程中所创建、和/或获取的数据(比如目标端设备的标识、图像)等。示例的,处理器110可以通过调用内部存储器121中存储的程序和/或数据,使得电子设备10执行相应的方法,从 而实现一种或多种功能。例如,处理器110调用内部存储器121中的某些程序和/或数据,使得电子设备10执行本申请实施例中所提供的投屏方法,从而提高源端设备发起投屏的效率,提高用户体验。其中,内部存储器121可以采用高速随机存取存储器、和/或非易失性存储器等。例如,非易失性存储器可以包括一个或多个磁盘存储器件、闪存器件、和/或通用闪存存储器(universal flash storage,UFS)等中的至少一个。The internal memory 121 may be used to store programs and/or data. It should be noted that the program in the embodiment of the present application may also be referred to as a program instruction. In some embodiments, the internal memory 121 includes a program storage area and a data storage area. Among them, the storage program area can be used to store an operating system (such as Android, IOS, and other operating systems), a computer program required for at least one function (such as screen lock, screen projection), and the like. The storage data area may be used to store data created and/or acquired during the use of the electronic device (such as the identification and image of the target device). For example, the processor 110 may call the program and/or data stored in the internal memory 121 to enable the electronic device 10 to execute a corresponding method, thereby implementing one or more functions. For example, the processor 110 calls certain programs and/or data in the internal memory 121, so that the electronic device 10 executes the screen projection method provided in the embodiment of the present application, thereby improving the efficiency of the source device initiating the screen projection and improving the user experience . Among them, the internal memory 121 may be a high-speed random access memory, and/or a non-volatile memory. For example, the non-volatile memory may include at least one of one or more disk storage devices, flash memory devices, and/or universal flash storage (UFS).
外部存储器接口122可以用于连接外部存储卡(例如,Micro SD卡),实现扩展电子设备10的存储能力。外部存储卡通过外部存储器接口122与处理器110通信,实现数据存储功能。例如电子设备10可以通过外部存储器接口122将图像、音乐、视频等文件保存在外部存储卡中。The external memory interface 122 can be used to connect an external memory card (for example, a Micro SD card) to expand the storage capacity of the electronic device 10. The external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, the electronic device 10 may save files such as images, music, and videos in an external memory card through the external memory interface 122.
摄像头131可以用于捕获或采集动、静态图像等。通常情况下,摄像头131包括镜头和图像传感器。其中,物体通过镜头生成的光学图像投射到图像传感器上,然后转换为电信号,在进行后续处理。示例的,图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。需要说明的是,本申请实施例中,摄像头131可以包括一个或多个摄像头。The camera 131 can be used to capture or collect moving and static images. Generally, the camera 131 includes a lens and an image sensor. Among them, the optical image generated by the object through the lens is projected onto the image sensor, and then converted into an electrical signal for subsequent processing. For example, the image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The image sensor converts the light signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. It should be noted that, in this embodiment of the present application, the camera 131 may include one or more cameras.
第一显示屏141可以包括显示面板,用于显示图形用户界面(graphical user interface,GUI)。以下为描述方便,将图形用户界面简称为用户界面。电子设备10通过在第一显示屏141显示用户界面,向用户呈现或显示相应的内容,例如视频、文字、图像、用于实现用户与电子设备10交互的虚拟按键或虚拟按钮等。在一些实施例中,显示面板可以采用液晶显示屏(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)等。示例的,电子设备10可以通过GPU、第一显示屏141、应用处理器等实现显示功能。应理解,本申请实施例中第一显示屏141可以为可折叠屏幕,也可以为不可折叠屏幕,对此不作限定。需要说明的是,第二显示屏142的具体实现方式可以参见第一显示屏141的具体实现方式,在此不再赘述。The first display screen 141 may include a display panel for displaying a graphical user interface (GUI). For convenience of description below, the graphical user interface is referred to as the user interface for short. The electronic device 10 displays a user interface on the first display screen 141 to present or display corresponding content to the user, such as videos, texts, images, virtual keys or virtual buttons for realizing interaction between the user and the electronic device 10, etc. In some embodiments, the display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode, or an active matrix organic light-emitting diode. (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. For example, the electronic device 10 may implement a display function through a GPU, the first display screen 141, an application processor, and the like. It should be understood that the first display screen 141 in the embodiment of the present application may be a foldable screen or a non-foldable screen, which is not limited. It should be noted that the specific implementation manner of the second display screen 142 can be referred to the specific implementation manner of the first display screen 141, which is not repeated here.
示例的,电子设备10为屏幕可折叠的电子设备,包括第一显示屏141和第二显示屏142,其中,第一显示屏141为可折叠的屏幕,第二显示屏142为不可折叠的屏幕。其中,第一显示屏141位于电子设备10的第一面上,第二显示屏142位于电子设备10的第二面上,第一面和第二面不同。例如,电子设备10的第一面又可以称之为电子设备10的正面,可以如图3A所示,第一显示屏141位于电子设备10的第一面上,在图3A中第一显示屏141的夹角为β。电子设备10的第二面又可以称之为电子设备10的背面,可以如图3B所示,第二显示屏142位于电子设备10的第二面上,在图3B中第一显示屏141的夹角为α,需要说明的是,第一显示屏141的夹角的取值可以在[0°,180°]的范围内。当第一显示屏141的夹角取值为0°时,第一显示屏141处于折叠状态或者闭合状态,当第一显示屏141的夹角取值为180°时,第一显示屏141处于展开状态。需要说明的是,第一显示屏141又可以称之为内屏或主屏幕,第二显示屏142又可以称之为外屏或辅屏幕等。For example, the electronic device 10 is an electronic device with a foldable screen, and includes a first display screen 141 and a second display screen 142, where the first display screen 141 is a foldable screen, and the second display screen 142 is a non-foldable screen. . The first display screen 141 is located on the first surface of the electronic device 10, the second display screen 142 is located on the second surface of the electronic device 10, and the first surface and the second surface are different. For example, the first side of the electronic device 10 may also be referred to as the front side of the electronic device 10. As shown in FIG. 3A, the first display screen 141 is located on the first surface of the electronic device 10. In FIG. The included angle of 141 is β. The second surface of the electronic device 10 can also be referred to as the back of the electronic device 10. As shown in FIG. 3B, the second display screen 142 is located on the second surface of the electronic device 10. In FIG. 3B, the first display screen 141 The included angle is α. It should be noted that the value of the included angle of the first display screen 141 can be in the range of [0°, 180°]. When the angle of the first display screen 141 is 0°, the first display screen 141 is in the folded or closed state, and when the angle of the first display screen 141 is 180°, the first display screen 141 is in the Expanded state. It should be noted that the first display screen 141 may also be referred to as an internal screen or a main screen, and the second display screen 142 may also be referred to as an external screen or an auxiliary screen.
又示例的,电子设备10为屏幕不可折叠的电子设备,包括第一显示屏141。示例的,电子设备10包括第一面和第二面,第一显示屏141位于电子设备的第一面上。例如,电 子设备10的第一面如图4A所示,电子设备10的第二面如图4C所示。当电子设备10的第一面如图4A所示,电子设备10的第二面如图4C所示时,电子设备10只包括第一显示屏141。在另一些实施例中,电子设备10还可以包括第二显示屏142。其中,第一显示屏141位于电子设备10的第一面上,第二显示屏142位于电子设备10的第二面上。例如,电子设备10的第一面如图4A所示。电子设备10的第二面可以如图4B所示。应理解,当电子设备10的第一面如图4A所示、电子设备10的第二面如图4B所示时,第一显示屏141又可以称之为主屏幕,第二显示屏142又可以称之为辅屏幕。In another example, the electronic device 10 is an electronic device with a non-foldable screen, and includes a first display screen 141. For example, the electronic device 10 includes a first surface and a second surface, and the first display screen 141 is located on the first surface of the electronic device. For example, the first side of the electronic device 10 is shown in FIG. 4A, and the second side of the electronic device 10 is shown in FIG. 4C. When the first side of the electronic device 10 is shown in FIG. 4A and the second side of the electronic device 10 is shown in FIG. 4C, the electronic device 10 only includes the first display screen 141. In other embodiments, the electronic device 10 may further include a second display screen 142. The first display screen 141 is located on the first surface of the electronic device 10, and the second display screen 142 is located on the second surface of the electronic device 10. For example, the first side of the electronic device 10 is shown in FIG. 4A. The second side of the electronic device 10 may be as shown in FIG. 4B. It should be understood that when the first side of the electronic device 10 is shown in FIG. 4A and the second side of the electronic device 10 is shown in FIG. 4B, the first display screen 141 may also be referred to as the main screen, and the second display screen 142 is again It can be called a secondary screen.
又示例的,电子设备10为屏幕可折叠的电子设备,包括第一显示屏141。其中,第一显示屏141为屏幕可折叠的电子设备。第一显示屏141处于展开状态时可以如图5A所示,第一显示屏141处于闭合状态或者折叠状态可以如图5B所示。其中,图5C为将第一显示屏141的夹角折叠为β时的示意图。As another example, the electronic device 10 is an electronic device with a foldable screen, and includes a first display screen 141. Among them, the first display screen 141 is an electronic device with a foldable screen. When the first display screen 141 is in the unfolded state, it may be as shown in FIG. 5A, and the first display screen 141 in the closed state or the folded state may be as shown in FIG. 5B. 5C is a schematic diagram when the included angle of the first display screen 141 is folded to β.
又示例的,电子设备10为屏幕可伸缩的电子设备,包括第一显示屏141。其中,第一显示屏141伸展后的状态可以如图6A所示,第一显示屏141收缩后的状态可以如图6B所示。As another example, the electronic device 10 is an electronic device with a retractable screen, and includes a first display screen 141. The state after the first display screen 141 is stretched may be as shown in FIG. 6A, and the state after the first display screen 141 is contracted may be as shown in FIG. 6B.
传感器模块150可以包括一个或多个传感器。例如,触摸传感器150A、压力传感器150B、距离传感器150C等。在另一些实施例中,传感器模块150还可以包括陀螺仪、加速度传感器、指纹传感器、环境光传感器、接近光传感器、骨传导传感器、温度传感器等。The sensor module 150 may include one or more sensors. For example, touch sensor 150A, pressure sensor 150B, distance sensor 150C, etc. In other embodiments, the sensor module 150 may also include a gyroscope, an acceleration sensor, a fingerprint sensor, an ambient light sensor, a proximity light sensor, a bone conduction sensor, a temperature sensor, and so on.
其中,触摸传感器150A,也可称为“触控面板”。触摸传感器150A可以设置于第一显示屏141和/或第二显示屏142。以触摸传感器150A设置于第一显示屏141为例。由触摸传感器150A与第一显示屏141组成第一触摸屏,也称“第一触控屏”。触摸传感器150A用于检测作用于其上或附近的触摸操作。触摸传感器150A可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。电子设备10可以通过第一显示屏141提供与触摸操作相关的视觉输出等。在另一些实施例中,触摸传感器150A也可以设置于电子设备10的表面,与第一显示屏141所处的位置不同。Among them, the touch sensor 150A may also be referred to as a “touch panel”. The touch sensor 150A may be provided on the first display screen 141 and/or the second display screen 142. Take the touch sensor 150A provided on the first display screen 141 as an example. The touch sensor 150A and the first display screen 141 form a first touch screen, also called "first touch screen". The touch sensor 150A is used to detect touch operations acting on or near it. The touch sensor 150A may transmit the detected touch operation to the application processor to determine the type of touch event. The electronic device 10 may provide visual output related to touch operations and the like through the first display screen 141. In other embodiments, the touch sensor 150A may also be disposed on the surface of the electronic device 10, which is different from the position of the first display screen 141.
压力传感器150B用于感受压力信号,可以将压力信号转换成电信号。示例的,压力传感器150B可以设置于第一显示屏141和/或第二显示屏142。其中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 150B is used to sense the pressure signal and can convert the pressure signal into an electrical signal. For example, the pressure sensor 150B may be provided on the first display screen 141 and/or the second display screen 142. Among them, touch operations that act on the same touch position but have different touch operation strengths can correspond to different operation instructions.
距离传感器150C,又可以称之为距离感应器150C等,用于测量距离。示例的,在拍摄场景中,电子设备10可以利用距离传感器150C测距以实现快速对焦。再示例的,当第一显示屏141锁屏后,距离传感器150C还可以用于判断第一显示屏141和/或第二显示屏142是否被遮挡。例如,当电子设备10的第一面如图3A所示,电子设备10的第二面如图3B所示时,如果第一显示屏141处于闭合状态或折叠状态,则距离传感器150C可以用于判断第二显示屏142是否被遮挡。再例如,当电子设备10的第一面如图4A所示、电子设备10的第二面如图4B所示时,距离传感器150C用于判断第一显示屏141和第二显示屏142是否被遮挡。再例如,当电子设备10的第一面如图4A所示、电子设备10的第二面如图4C所示时,距离传感器150C用于判断第一显示屏141是否被遮挡。The distance sensor 150C, which can also be called a distance sensor 150C, etc., is used to measure distance. For example, in a shooting scene, the electronic device 10 may use the distance sensor 150C to measure the distance to achieve rapid focusing. For another example, after the first display screen 141 is locked, the distance sensor 150C may also be used to determine whether the first display screen 141 and/or the second display screen 142 is blocked. For example, when the first side of the electronic device 10 is shown in FIG. 3A and the second side of the electronic device 10 is shown in FIG. 3B, if the first display screen 141 is in the closed state or folded state, the distance sensor 150C can be used for It is determined whether the second display screen 142 is blocked. For another example, when the first side of the electronic device 10 is shown in FIG. 4A and the second side of the electronic device 10 is shown in FIG. 4B, the distance sensor 150C is used to determine whether the first display screen 141 and the second display screen 142 are Occlude. For another example, when the first side of the electronic device 10 is shown in FIG. 4A and the second side of the electronic device 10 is shown in FIG. 4C, the distance sensor 150C is used to determine whether the first display screen 141 is blocked.
电子设备10可以通过音频模块160、扬声器161、受话器162、麦克风163、耳机接口164以及应用处理器等实现音频功能。例如,音频播放功能、录音功能、语音唤醒功能等。The electronic device 10 may implement audio functions through the audio module 160, the speaker 161, the receiver 162, the microphone 163, the earphone interface 164, and the application processor. For example, audio playback function, recording function, voice wake-up function, etc.
音频模块160可以用于对音频数据进行数模转换、和/或模数转换,还可以用于对音频 数据进行编码和/或解码。示例的,音频模块160可以设置于处理器110中,或将音频模块160的部分功能模块设置于处理器110中。The audio module 160 can be used to perform digital-to-analog conversion and/or analog-to-digital conversion on audio data, and can also be used to encode and/or decode audio data. For example, the audio module 160 may be provided in the processor 110, or part of the functional modules of the audio module 160 may be provided in the processor 110.
扬声器161,也称“喇叭”,用于将音频数据转换为声音,并播放声音。例如,电子设备100可以通过扬声器161收听音乐、接听免提电话、或者发出语音提示等。The speaker 161, also called a "speaker", is used to convert audio data into sound and play the sound. For example, the electronic device 100 may listen to music through the speaker 161, answer a hands-free call, or issue a voice prompt, etc.
受话器162,也称“听筒”,用于将音频数据转换成声音,并播放声音。例如,当电子设备100接听电话时,可以通过将受话器162靠近人耳进行接听。The receiver 162, also called "earpiece", is used to convert audio data into sound and play the sound. For example, when the electronic device 100 answers a call, the receiver 162 may be brought close to the human ear to answer the call.
麦克风163,也称“话筒”、“传声器”,用于采集声音(例如周围环境声音,包括人发出的声音、设备发出的声音等),并将声音转换为音频电数据。当拨打电话或发送语音时,用户可以通过人嘴靠近麦克风163发出声音,麦克风163采集用户发出的声音。需要说明的是,电子设备可以设置至少一个麦克风163。例如,电子设备中设置两个麦克风163,除了采集声音,还可以实现降噪功能。又示例如,电子设备中还可以设置三个、四个或更多个麦克风163,从而可以在实现声音采集、降噪的基础上,还可以实现声音来源的识别、或定向录音功能等。The microphone 163, also known as a "microphone" or a "microphone", is used to collect sounds (such as ambient sounds, including sounds made by people, sounds made by equipment, etc.), and convert the sounds into audio electrical data. When making a call or sending a voice, the user can approach the microphone 163 through the mouth to make a sound, and the microphone 163 collects the sound made by the user. It should be noted that the electronic device may be provided with at least one microphone 163. For example, two microphones 163 are provided in the electronic device, in addition to collecting sound, it can also achieve a noise reduction function. For another example, three, four or more microphones 163 may be provided in the electronic device, so that in addition to sound collection and noise reduction, sound source identification or directional recording functions can also be realized.
耳机接口164用于连接有线耳机。耳机接口164可以是USB接口170,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The earphone interface 164 is used to connect wired earphones. The earphone interface 164 may be a USB interface 170, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
按键170可以包括电源键、音量键等。按键170可以是机械按键,也可以是虚拟按键。电子设备10可以响应于对按键的操作,产生与电子设备10的用户设置以及功能控制有关的信号输入。例如,电子设备10可以响应于到对电源键的按压操作,将第一显示屏141锁屏,并触发执行本申请实施例的投屏方法。需要说明的是,本申请实施例中电源键又可以称之为开机键、侧边按键等,对电源键的名称不作限定。The button 170 may include a power button, a volume button, and the like. The button 170 may be a mechanical button or a virtual button. The electronic device 10 can generate signal inputs related to user settings and function control of the electronic device 10 in response to the operation of the keys. For example, the electronic device 10 may lock the screen of the first display screen 141 in response to pressing the power button, and trigger the execution of the screen projection method of the embodiment of the present application. It should be noted that the power button in the embodiment of the present application may also be referred to as a power-on button, a side button, etc., and the name of the power button is not limited.
SIM卡接口171用于连接SIM卡。SIM卡可以通过插入SIM卡接口171,或从SIM卡接口171拔出,实现和电子设备10的接触和分离。电子设备10可以支持1个或K个SIM卡接口171,K为大于1的正整数。SIM卡接口171可以支持Nano SIM卡、Micro SIM卡、和/或SIM卡等。同一个SIM卡接口171可以同时插入多张SIM卡。所述多张SIM卡的类型可以相同,也可以不同。SIM卡接口171也可以兼容不同类型的SIM卡。SIM卡接口171也可以兼容外部存储卡。电子设备10通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备10还可以采用eSIM卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备10中,不能和电子设备10分离。The SIM card interface 171 is used to connect to a SIM card. The SIM card can be inserted into the SIM card interface 171 or pulled out from the SIM card interface 171 to achieve contact and separation with the electronic device 10. The electronic device 10 may support 1 or K SIM card interfaces 171, and K is a positive integer greater than 1. The SIM card interface 171 may support Nano SIM cards, Micro SIM cards, and/or SIM cards, etc. The same SIM card interface 171 can insert multiple SIM cards at the same time. The types of the multiple SIM cards can be the same or different. The SIM card interface 171 can also be compatible with different types of SIM cards. The SIM card interface 171 may also be compatible with external memory cards. The electronic device 10 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 10 may also adopt an eSIM card, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
USB接口172是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口172可以用于连接充电器为电子设备10充电,也可以用于电子设备10连接耳机,通过耳机播放声音。当USB接口172可以连接耳机时,可以理解为:将USB接口172作为耳机接口。示例的,USB接口172除了可以作为耳机接口以外,还可以用于连接其他电子设备,例如AR设备、计算机等。The USB interface 172 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 172 can be used to connect a charger to charge the electronic device 10, and can also be used to connect the electronic device 10 to earphones and play sounds through the earphones. When the USB interface 172 can be connected to a headset, it can be understood that the USB interface 172 is used as a headset interface. For example, the USB interface 172 can be used as a headphone interface, and can also be used to connect to other electronic devices, such as AR devices, computers, and so on.
充电管理模块180用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块180可以通过USB接口170接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块180可以通过电子设备10的无线充电线圈接收无线充电输入。充电管理模块180为电池182充电的同时,还可以通过电源管理模块180为电子设备10供电。The charging management module 180 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 180 may receive the charging input of the wired charger through the USB interface 170. In some embodiments of wireless charging, the charging management module 180 may receive the wireless charging input through the wireless charging coil of the electronic device 10. While the charging management module 180 charges the battery 182, it can also supply power to the electronic device 10 through the power management module 180.
电源管理模块181用于连接电池182、充电管理模块180与处理器110。电源管理模块 181接收电池182和/或充电管理模块180的输入,为处理器110、内部存储器121、第一摄像头131、第二摄像头132、第一显示屏141等供电。电源管理模块181还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块181也可以设置于处理器110中。在另一些实施例中,电源管理模块181和充电管理模块180也可以设置于同一个器件中。The power management module 181 is used to connect the battery 182, the charging management module 180, and the processor 110. The power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, the internal memory 121, the first camera 131, the second camera 132, the first display screen 141, and the like. The power management module 181 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 181 may also be provided in the processor 110. In other embodiments, the power management module 181 and the charging management module 180 may also be provided in the same device.
移动通信模块191可以提供应用在电子设备10上的包括2G/3G/4G/5G等无线通信的解决方案。示例的,移动通信模块191可以包括滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 191 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 10. For example, the mobile communication module 191 may include a filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
无线通信模块192可以提供应用在电子设备10上的包括WLAN(如Wi-Fi网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块192可以是集成至少一个通信处理模块的一个或多个器件。示例的,电子设备10可以通过无线通信模块192向目标端设备发送投屏内容和/或投屏指令。The wireless communication module 192 can provide applications on the electronic device 10 including WLAN (such as Wi-Fi network), Bluetooth (bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) , Near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 192 may be one or more devices integrating at least one communication processing module. For example, the electronic device 10 may send screen projection content and/or screen projection instructions to the target device through the wireless communication module 192.
在一些实施例中,电子设备10的天线1和移动通信模块191耦合,天线2和无线通信模块192耦合,使得电子设备10可以与其他设备通信。具体的,移动通信模块191可以通过天线1与其它设备通信,无线通信模块193可以通过天线2与其它设备通信。In some embodiments, the antenna 1 of the electronic device 10 is coupled with the mobile communication module 191, and the antenna 2 is coupled with the wireless communication module 192, so that the electronic device 10 can communicate with other devices. Specifically, the mobile communication module 191 may communicate with other devices through the antenna 1, and the wireless communication module 193 may communicate with other devices through the antenna 2.
需要说明的是,本申请实施例中目标端设备的硬件架构可以参见上述图3中对电子设备10的硬件架构的相关介绍,在此不再赘述。It should be noted that, for the hardware architecture of the target device in the embodiment of the present application, refer to the related introduction of the hardware architecture of the electronic device 10 in FIG. 3, which is not repeated here.
示例的,图7示出了本申请实施例一种源端设备和目标端设备的软件架构示意图。如图5所示,源端设备包括输入模块710A、处理模块720A和输出模块730A。By way of example, FIG. 7 shows a schematic diagram of the software architecture of a source device and a target device in an embodiment of the present application. As shown in FIG. 5, the source device includes an input module 710A, a processing module 720A, and an output module 730A.
输入模块710A用于检测到用户的操作,并将用户的操作上报给处理模块720A。需要说明的是,本申请实施例中,用户的操作可以为触摸操作,也可以为非触摸操作,例如,对第一显示屏141或第二显示屏142显示某一用户界面的操作、折叠第一显示屏141的操作、按压电源键的操作、合上设备外盖的操作、合上智能保护套的盖子的操作等。具体的,输入模块710A可以通过机械转轴、触摸传感器、按键等检测用户的操作,对此不作限定。The input module 710A is used to detect the user's operation and report the user's operation to the processing module 720A. It should be noted that, in the embodiments of the present application, the user's operation may be a touch operation or a non-touch operation. For example, the operation of displaying a certain user interface on the first display screen 141 or the second display screen 142, and folding the first display screen 142 The operation of a display screen 141, the operation of pressing the power button, the operation of closing the outer cover of the device, the operation of closing the cover of the smart protective cover, etc. Specifically, the input module 710A can detect the user's operation through a mechanical shaft, a touch sensor, a button, etc., which is not limited.
处理模块720A用于接收输入模块710A上报的用户的操作,识别输入模块710A上报的用户的操作的操作类型。例如,当用户的操作的操作类型为熄屏操作时,对第一显示屏141熄屏,并在对第一显示屏141熄屏后,触发投屏。示例的,处理模块720A包括操作识别模块721A、投屏判断模块722A、内容获取模块723A、设备获取模块724A等。其中,操作识别模块721A用于识别输入模块710A上报的用户操作的操作类型。投屏判断模块722A用于判断智能投屏功能是否已开启,或者判断第一显示屏741或第二显示屏742是否被遮挡等。内容获取模块723A用于获取投屏内容。设备获取模块724A用于确定用于接收投屏内容的目标端设备。The processing module 720A is configured to receive the user's operation reported by the input module 710A, and identify the operation type of the user's operation reported by the input module 710A. For example, when the operation type of the user's operation is a screen-off operation, the screen is turned off on the first display screen 141, and after the screen is turned off on the first display screen 141, a screen projection is triggered. For example, the processing module 720A includes an operation recognition module 721A, a projection judgment module 722A, a content acquisition module 723A, a device acquisition module 724A, and the like. The operation recognition module 721A is used to recognize the operation type of the user operation reported by the input module 710A. The projection judgment module 722A is used to judge whether the smart projection function is turned on, or whether the first display screen 741 or the second display screen 742 is blocked, etc. The content acquisition module 723A is used to acquire the projected content. The device acquisition module 724A is used to determine the target device for receiving the screened content.
输出模块730A用于与目标端设备建立连接,以及向目标端设备发送投屏内容。又示例的,输出模块730A还用于控制第二显示屏742或第一显示屏741显示相关信息。例如,输出模块730A用于控制第二显示屏742或第一显示屏741显示控制界面。The output module 730A is used to establish a connection with the target device and send screen content to the target device. As another example, the output module 730A is also used to control the second display screen 742 or the first display screen 741 to display related information. For example, the output module 730A is used to control the second display screen 742 or the first display screen 741 to display a control interface.
示例的,如图7所示,目标端设备包括输入模块710B、处理模块720B和输出模块730B。For example, as shown in FIG. 7, the target device includes an input module 710B, a processing module 720B, and an output module 730B.
其中,输入模块710A用于与源端设备建立连接,以及接收源端设备发送的投屏内容 或投屏指令。示例的,输入模块710B包括设备连接模块711B、内容交互模块712B、指令交互模块713B。设备连接模块711B用于与源端设备建立连接。内容交互模块720B用于接收源端设备发送的投屏内容,并将投屏内容发送给处理模块720B。指令交互模块713B用于接收源端设备发送的投屏指令,例如取消投屏指令。Wherein, the input module 710A is used to establish a connection with the source-end device and receive screen projection content or screen-casting instructions sent by the source device. For example, the input module 710B includes a device connection module 711B, a content interaction module 712B, and an instruction interaction module 713B. The device connection module 711B is used to establish a connection with the source device. The content interaction module 720B is configured to receive the screencast content sent by the source device, and send the screencast content to the processing module 720B. The instruction interaction module 713B is used to receive a screencasting instruction sent by the source device, for example, a screencasting cancellation instruction.
处理模块720B用于当接收到内容交互模块720B发送的投屏内容后,对投屏内容进行重新布局或裁剪,并将重新布局或裁剪后的投屏内容发送给输出模块730B。The processing module 720B is configured to, after receiving the projected content sent by the content interaction module 720B, re-layout or crop the projected content, and send the re-layout or cropped projected content to the output module 730B.
输出模块730B用于当接收到处理模块720B发送的重新布局后的投屏内容后,呈现或显示重新布局后的投屏内容。The output module 730B is configured to present or display the rearranged screencast content after receiving the rearranged screencast content sent by the processing module 720B.
以下实施例均可以在具有上述硬件结构和/或软件结构的电子设备中实现。下面结合不同物理形态的源端设备,对本申请实施例的投屏方法进行具体介绍。The following embodiments can all be implemented in an electronic device having the above hardware structure and/or software structure. The screen projection method of the embodiment of the present application will be specifically introduced below in combination with source-end devices of different physical forms.
示例一:Example 1:
源端设备为屏幕可折叠的电子设备。其中,源端设备包括内屏和外屏,内屏为可折叠屏幕,外屏为不可折叠屏幕。例如,源端设备的内屏可以为图3A或图3B所示的第一显示屏141,源端设备的外屏可以为图3B所示的第二显示屏142。The source device is an electronic device with a foldable screen. Among them, the source device includes an internal screen and an external screen, the internal screen is a foldable screen, and the external screen is a non-foldable screen. For example, the inner screen of the source device may be the first display screen 141 shown in FIG. 3A or 3B, and the outer screen of the source device may be the second display screen 142 shown in FIG. 3B.
示例的,如图8所示,为本申请实施例的一种投屏方法的流程示意图,具体包括以下步骤。As an example, as shown in FIG. 8, it is a schematic flowchart of a screen projection method according to an embodiment of this application, which specifically includes the following steps.
步骤801,源端设备的内屏处于使用中,接收到将内屏由展开状态折叠为闭合状态的操作。In step 801, the inner screen of the source device is in use, and an operation of folding the inner screen from the unfolded state to the closed state is received.
其中,源端设备的内屏处于使用中,可以理解为:Among them, the internal screen of the source device is in use, which can be understood as:
源端设备在内屏处于展开状态、且未锁屏的情况下,在内屏上显示相应的用户界面,例如主界面、负一屏(-1屏)、某一应用程序的用户界面等。用户可以当内屏显示相应的用户界面时,根据需要进行相应的操作,使得源端设备响应于用户的操作,在内屏上进行相应的显示。即,源端设备的内屏在展开状态、且未锁屏的情况下,当显示某一用户界面时,用户可以对源端设备进行相应的操作,控制内屏进行相应的显示,从而满足用户的需求。When the internal screen is in the expanded state and the screen is not locked, the source device displays the corresponding user interface on the internal screen, such as the main interface, one screen (-1 screen), the user interface of a certain application, etc. The user can perform corresponding operations as needed when the internal screen displays the corresponding user interface, so that the source device responds to the user's operation and performs corresponding display on the internal screen. That is, when the inner screen of the source device is in the expanded state and the screen is not locked, when a user interface is displayed, the user can perform corresponding operations on the source device and control the inner screen to display accordingly, so as to satisfy the user Demand.
例如,源端设备在内屏处于展开状态、且未锁屏的情况下,当内屏显示桌面(桌面又可以称之为主界面,包括一个或多个应用程序的图标)时,源端设备检测到用户点击桌面上某一应用程序的图标(例如,爱奇艺图标)的操作,则响应于点击爱奇艺图标的操作,在内屏上显示爱奇艺的用户界面。再例如,源端设备在内屏处于展开状态、且未锁屏的情况下,当内屏显示某一应用程序的用户界面时,用户可以通过对用户界面上包括的虚拟按钮(或虚拟按键)进行相应的操作,从而实现相应的控制。比如,源端设备当内屏显示爱奇艺的用户界面时,检测到用户在爱奇艺的用户界面上的操作(例如点击控制全屏显示视频的虚拟按钮的操作),则响应于上述操作,在内屏上全屏显示相应的视频,并播放,从而使得用户可以观看相应的视频。再比如,源端设备当内屏显示百度地图的用户界面时,检测到用户在百度地图的用户界面上的搜索路线的操作,则响应于搜索路线的操作,在内屏上显示相应的路线搜索结果,从而便于用户到达相应的目的地。For example, when the internal screen of the source device is expanded and the screen is not locked, when the internal screen displays the desktop (the desktop can also be called the main interface, including the icons of one or more applications), the source device Detecting that the user clicks on an icon of an application on the desktop (for example, the iQiyi icon), in response to the operation of clicking the iQiyi icon, the iQiyi user interface is displayed on the inner screen. For another example, when the internal screen of the source device is in the expanded state and the screen is not locked, when the internal screen displays the user interface of a certain application, the user can press the virtual buttons (or virtual keys) included in the user interface Perform corresponding operations to achieve corresponding control. For example, when the source device detects the user's operation on the iQiyi user interface when the internal screen displays the iQiyi user interface (for example, clicking the operation of the virtual button that controls the full-screen video display), it will respond to the above operation, The corresponding video is displayed in full screen on the internal screen and played, so that the user can watch the corresponding video. For another example, when the source device displays the user interface of Baidu Maps on the internal screen, it detects the user's operation of searching for routes on the user interface of Baidu Maps, and in response to the operation of searching for routes, displays the corresponding route search on the internal screen As a result, it is convenient for the user to reach the corresponding destination.
通常情况下,源端设备在内屏上显示的用户界面,为源端设备在前台运行应用程序的用户界面。其中,源端设备可以在前台运行一个或多个应用程序。在一些实施例中,源端设备可以在前台运行某一个或多个应用程序的同时,在后台运行一个或多个应用程序。例如,源端设备在前台运行的应用程序为爱奇艺,则在内屏显示爱奇艺的用户界面。示例的, 在内屏显示爱奇艺的用户界面时,源端设备还可以在后台运行其它应用程序,例如支付宝、微信等。Normally, the user interface displayed on the internal screen of the source device is the user interface of the source device running the application in the foreground. Among them, the source device can run one or more applications in the foreground. In some embodiments, the source device can run one or more applications in the background while running one or more applications in the foreground. For example, if the application running in the foreground of the source device is iQiyi, the user interface of iQiyi is displayed on the internal screen. For example, when the user interface of iQiyi is displayed on the internal screen, the source device may also run other applications in the background, such as Alipay, WeChat, etc.
示例的,源端设备的内屏处于使用中时,外屏锁屏且黑屏,或者外屏锁屏但显示默认用户界面,其中默认用户界面可以包括时间和日期等信息,具体的,用户可以根据需要设置默认用户界面上显示的信息。For example, when the internal screen of the source device is in use, the external screen is locked and the screen is black, or the external screen is locked but the default user interface is displayed. The default user interface can include information such as time and date. Specifically, the user can follow The information displayed on the default user interface needs to be set.
以源端设备为图1所示的应用场景中的电子设备10为例。示例的,第一显示屏141为电子设备10的内屏,第二显示屏142为电子设备10的外屏,源端设备的处理器110可以通过检测第一显示屏141的机械转轴转动的角度变化,来判断是否接收到将内屏由展开状态折叠为闭合状态的操作。例如,源端设备的第一显示屏141的机械转轴转动使得第一显示屏141的夹角由180°变为0°时,则将第一显示屏141的夹角由180°变为0°的事件上报给处理器110,处理器110当接收到机械转轴上报的第一显示屏141的夹角由180°变为0°的事件后,确定接收到将内屏由展开状态折叠为闭合状态的操作。再例如,源端设备的处理器110还可以通过采集其它用于感知第一显示屏141角度变化的传感器的数据,来判断是否接收到将内屏由展开状态折叠为闭合状态的操作。需要说明的是,本申请实施例不限定源端设备具体判断是否接收到将内屏由展开状态折叠为闭合状态的操作的方式。Take the source device as the electronic device 10 in the application scenario shown in FIG. 1 as an example. For example, the first display screen 141 is the inner screen of the electronic device 10, and the second display screen 142 is the outer screen of the electronic device 10. The processor 110 of the source device can detect the rotation angle of the mechanical shaft of the first display screen 141. Change to determine whether the operation of folding the inner screen from the unfolded state to the closed state is received. For example, when the mechanical shaft of the first display screen 141 of the source device rotates so that the included angle of the first display screen 141 is changed from 180° to 0°, the included angle of the first display screen 141 is changed from 180° to 0° The event reported to the processor 110, when the processor 110 receives the event that the angle of the first display screen 141 reported by the mechanical shaft changes from 180° to 0°, it determines to receive the folding of the inner screen from the unfolded state to the closed state Operation. For another example, the processor 110 of the source device may also collect data from other sensors for sensing the angle change of the first display screen 141 to determine whether an operation of folding the inner screen from the unfolded state to the closed state is received. It should be noted that the embodiment of the present application does not limit the manner in which the source device specifically determines whether the operation of folding the inner screen from the unfolded state to the closed state is received.
步骤802,源端设备响应于接收到将内屏由展开状态折叠为闭合状态的操作,将内屏熄屏。Step 802: In response to receiving the operation of folding the inner screen from the unfolded state to the closed state, the source device turns off the inner screen.
需要说明的是,由于将内屏折叠为闭合状态时,内屏无法向用户正常的显示用户界面等,因此为了节省电子设备的功耗,将内屏熄屏可以理解为,内屏为黑屏且锁屏、或者内屏为黑屏但未锁屏。此外,当源端设备将内屏折叠为闭合状态时,用户无法正常使用内屏,即用户无法对内屏进行正常操作,实现对源端设备的控制。以源端设备为图1所示的应用场景中的电子设备10为例,在第一显示屏141为电子设备10的内屏,第二显示屏142为电子设备10的外屏的情况下,电子设备10的处理器110当确定接收到将第一显示屏141由展开状态折叠为闭合状态的操作,根据将第一显示屏141由展开状态折叠为闭合状态的操作,以确定操作类型为熄屏操作,然后将第一显示屏141熄屏。It should be noted that when the inner screen is folded into a closed state, the inner screen cannot display the user interface normally to the user. Therefore, in order to save the power consumption of the electronic device, turning off the inner screen can be understood as a black screen and The screen is locked, or the internal screen is black but the screen is not locked. In addition, when the source device folds the inner screen into a closed state, the user cannot use the inner screen normally, that is, the user cannot perform normal operations on the inner screen to achieve control of the source device. Taking the source device as the electronic device 10 in the application scenario shown in FIG. 1 as an example, when the first display screen 141 is the inner screen of the electronic device 10 and the second display screen 142 is the outer screen of the electronic device 10, When the processor 110 of the electronic device 10 determines that it has received the operation of folding the first display screen 141 from the unfolded state to the closed state, according to the operation of folding the first display screen 141 from the unfolded state to the closed state, it determines that the operation type is off. Screen operation, and then turn off the first display screen 141.
需要说明的是,源端设备响应于接收到将内屏由展开状态折叠为闭合状态的操作,还可以自动对外屏解锁,并将内屏上显示的用户界面自动映射到外屏上进行显示。例如,当内屏上显示爱奇艺的用户界面时,响应于将内屏由展开状态折叠为闭合状态的操作,对外屏解锁,并将在内屏上显示的爱奇艺的用户界面自动映射到外屏上进行显示。或者,平板响应于将内屏由展开状态折叠为闭合状态的操作,外屏继续保持黑屏和/或锁屏、或外屏继续保持锁屏和显示默认的用户界面等,对此不作限定。It should be noted that, in response to receiving the operation of folding the inner screen from the expanded state to the closed state, the source device can also automatically unlock the outer screen, and automatically map the user interface displayed on the inner screen to the outer screen for display. For example, when the user interface of iQiyi is displayed on the internal screen, in response to the operation of folding the internal screen from the expanded state to the closed state, the external screen is unlocked, and the iQiyi user interface displayed on the internal screen is automatically mapped Display on the external screen. Alternatively, the tablet responds to an operation of folding the inner screen from the unfolded state to the closed state, and the outer screen continues to remain black and/or locked, or the outer screen continues to remain locked and display the default user interface, etc., which is not limited.
步骤803,源端设备当响应于将内屏由展开状态折叠为闭合状态的操作将内屏熄屏后,从当前运行的至少一个应用程序中,确定目标应用程序。Step 803: After turning off the inner screen in response to the operation of folding the inner screen from the expanded state to the closed state, the source device determines a target application from at least one currently running application.
需要说明的是,当前运行的至少一个应用程序可以包括当前在前台和/或后台运行的应用程序。示例的,目标应用程序可以为当前运行的至少一个应用程序中满足第一预设条件的应用程序。其中,第一预设条件可以根据实际情况进行相应的设置,对此不作限定。It should be noted that the at least one currently running application program may include an application program currently running in the foreground and/or the background. For example, the target application program may be an application program that meets the first preset condition among at least one currently running application program. Among them, the first preset condition can be set according to actual conditions, which is not limited.
例如,目标应用程序为当前运行的至少一个应用程序中标识位于白名单中的应用程序。其中,白名单中包括支持投屏功能的应用程序的标识,可以是用户根据自身需要设置的,也可以是源端设备在出厂之前设置的,还可以是源端设备根据预设策略学习生成的。例如, 预设策略中规定音视频类型、地图类型、阅读类型和即时通讯(instant messaging,IM)类型的应用程序为支持投屏功能的应用程序,则源端设备可以根据自身已安装的、且符合预设策略规定的类型的应用程序的标识,生成白名单。例如,源端设备上安装有爱奇艺、微信和支付宝,则根据预设策略生成的白名单中包括爱奇艺的标识和微信的标识。应理解,当源端设备上检测到安装了新的应用程序,可以判断该应用程序是否符合预设策略规定的类型,当该应用程序符合预设策略规定的类型时,将该应用程序的标识添加到白名单中。或者,在另一些实施例中,白名单中包括的是不支持投屏功能的应用程序的标识。在这种情况下,目标应用程序可以为当前运行的至少一个应用程序中标识不属于白名单中的应用程序。For example, the target application is an application identified in the whitelist among at least one currently running application. Among them, the whitelist includes the identification of the application that supports the projection function, which can be set by the user according to their own needs, or set by the source device before leaving the factory, or generated by the source device according to a preset strategy. . For example, the preset policy stipulates that the audio and video types, map types, reading types, and instant messaging (instant messaging, IM) types of applications are applications that support the screen projection function, and the source device can be based on the installed, and The identification of the type of application that meets the requirements of the preset policy generates a whitelist. For example, if iQiyi, WeChat, and Alipay are installed on the source device, the whitelist generated according to the preset strategy includes the logo of iQiyi and the logo of WeChat. It should be understood that when a new application is detected on the source device, it can be judged whether the application meets the type specified by the preset policy. When the application meets the type specified by the preset policy, the identification of the application Add to the whitelist. Or, in other embodiments, the whitelist includes the identifiers of applications that do not support the screen projection function. In this case, the target application program may be an application program identified in at least one currently running application program that does not belong to the whitelist.
需要说明的是,本申请实施例中,应用程序的标识可以为应用程序的包名、或者应用程序的图标、或者根据需要自定义的,对此不作限定。It should be noted that, in the embodiment of the present application, the identifier of the application program may be the package name of the application program, or the icon of the application program, or customized according to needs, which is not limited.
再例如,目标应用程序为当前运行的应用程序中服务正在进行中的应用程序。具体的,针对视频类型的应用程序,如爱艺奇、优酷、腾讯视频等,服务正在进行中,可以理解为,视频正在播放中;针对音乐播放类型的应用程序,如虾米音乐、网易云音乐等,服务正在进行中,可以理解为,音乐正在播放中;针对地图类型的应用程序,如百度地图、高德地图等,服务正在进行中,可以理解为,正在导航中,或者正在搜索中等;针对游戏类型的应用程序,如王者荣耀、俄罗斯方块等,服务正在进行中,可以理解为,正在游戏中等。针对即时消息类型的应用程序,如微信、QQ等,服务正在进行中,可以理解为,正在输入中、或者正在语音通话中、或者正在视频通话中、或者文件正在传输中等。需要说明的是,服务正在进行中的应用程序可以为在前台运行的应用程序,也可以为在后台运行应用程序。For another example, the target application is an application whose service is in progress among currently running applications. Specifically, for video-type applications, such as iYiqi, Youku, Tencent Video, etc., the service is in progress, which can be understood as the video is being played; for music-playing applications, such as Xiami Music, NetEase Cloud Music Etc., the service is in progress, which can be understood as music is being played; for map-type applications, such as Baidu Maps, AutoNavi Maps, etc., the service is in progress, which can be understood as navigating, or searching, etc.; For game-type applications, such as Honor of Kings, Tetris, etc., the service is in progress, which can be understood as being in the game. For instant messaging applications, such as WeChat, QQ, etc., the service is in progress, which can be understood as inputting, or voice call, or video call, or file transfer, etc. It should be noted that the application program in which the service is in progress can be an application program running in the foreground or an application program running in the background.
又例如,目标应用程序为当前运行的应用程序中标识位于白名单中、且服务正在进行中的应用程序。其中白名单中包括支持投屏功能的应用程序的标识。For another example, the target application is an application that is identified in the whitelist and whose service is in progress among currently running applications. The white list includes the identification of the application that supports the projection function.
又例如,目标应用程序为当前运行在前台的应用程序。For another example, the target application is an application currently running in the foreground.
在一些实施例中,源端设备当从当前运行的至少一个应用程序均不满足第一预设条件时,不再投屏。或者,源端设备当当前未运行应用程序时,不再投屏。In some embodiments, the source device no longer casts a screen when at least one application program currently running does not meet the first preset condition. Or, the source device no longer casts a screen when the application is not currently running.
步骤804,源端设备从目标应用程序中获取投屏内容,并将该投屏内容发送给目标端设备。In step 804, the source device obtains the screencast content from the target application, and sends the screencast content to the target device.
示例的,源端设备可以基于Miracast、airplay、dlna、或Hicast等技术,将投屏内容发送给目标端设备。For example, the source device may send the screencast content to the target device based on technologies such as Miracast, airplay, dlna, or Hicast.
源端设备与目标端设备可以是在接收到用户将内屏由展开状态折叠为闭合状态的操作之前建立连接的,也可以是在接收到用户将内屏由展开状态折叠为闭合状态的操作之后建立连接的。示例的,源端设备在将内屏熄屏后,确定用于接收投屏内容的目标端设备,然后向目标端设备发起连接建立的过程。源端设备在与目标端设备建立连接后,当从目标应用程序中获取到投屏内容时,则将该投屏内容发送给目标端设备。The source device and the target device can establish the connection before receiving the user's operation to fold the inner screen from the expanded state to the closed state, or after receiving the user's operation to fold the inner screen from the expanded state to the closed state To establish a connection. For example, after turning off the internal screen, the source device determines the target device for receiving the projected content, and then initiates a connection establishment process to the target device. After the source device establishes a connection with the target device, when it obtains the screencast content from the target application, it sends the screencast content to the target device.
例如,源端设备可以基于下列方式确定接收投屏内容的目标端设备:For example, the source device can determine the target device that receives the projected content based on the following methods:
源端设备在将内屏熄屏后,可以基于蓝牙和/或wi-fi等通信技术,获取周围支持投屏功能的电子设备的标识,根据获取的周围支持投屏功能的电子设备的标识,确定目标设备标识。其中,目标设备标识所标识的电子设备为用于接收投屏内容的目标端设备。在一些实施例中,为了简化确定目标设备标识的方式,目标设备标识可以为周围支持投屏功能的 电子设备的标识中满足第二预设条件的标识。第二预设条件可以根据实际需要进行相应的设置,对此不作限定。After turning off the internal screen, the source device can obtain the identification of the surrounding electronic devices that support the projection function based on communication technologies such as Bluetooth and/or Wi-Fi, and according to the acquired identification of the surrounding electronic devices that support the projection function, Determine the target device ID. Wherein, the electronic device identified by the target device identifier is the target device for receiving the projected content. In some embodiments, in order to simplify the method of determining the target device identifier, the target device identifier may be an identifier that meets the second preset condition among the identifiers of surrounding electronic devices that support the screen projection function. The second preset condition can be set accordingly according to actual needs, which is not limited.
例如,目标设备标识为周围支持投屏功能的电子设备的标识中位于已授信列表的标识。已授信列表中包括至少一个电子设备的标识,可以是用户根据自身需要添加的,也可以是曾与源端设备连接过的电子设备的标识等。进一步的,已授信列表中包括的电子设备的标识可以为用户添加的私有电子设备的标识,或者曾与源端设备连接过的私有电子设备的标识。需要说明的是,本申请实施例中,私有电子设备指的是非公共场所的电子设备,例如,家中的电视机、宿舍的台式机等,而公共场所的电子设备可以为会议室的显示器等。For example, the target device identifier is an identifier in the trusted list among the identifiers of surrounding electronic devices that support the screen projection function. The credited list includes the identification of at least one electronic device, which may be added by the user according to his own needs, or may be the identification of an electronic device that has been connected to the source device. Further, the identification of the electronic device included in the trusted list may be the identification of the private electronic device added by the user, or the identification of the private electronic device that has been connected to the source device. It should be noted that, in the embodiments of the present application, private electronic devices refer to electronic devices in non-public places, such as TVs at home, desktop computers in dormitories, etc., while electronic devices in public places may be displays in conference rooms.
在一些实施例中,当获取的周围支持投屏功能的电子设备的标识均不在已授信列表中时,源端设备可以获取自身所在的地理位置信息,根据自身所在的地理位置信息判断当前所在的场所是否为公共场所,当自身所在的地理位置不是公共场所时,则从获取的周围支持投屏功能的电子设备的标识中选择一个标识作为目标设备标识。In some embodiments, when the obtained identifications of the surrounding electronic devices that support the screen projection function are not in the trusted list, the source device can obtain its own geographic location information, and determine the current location based on its own geographic location information. Whether the place is a public place or not, when the geographical location of the place is not a public place, one of the obtained identifiers of the surrounding electronic devices that support the screen projection function is selected as the target device identifier.
示例的,源端设备当自身所在的地理位置为公共场所时,则进一步判断源端设备的外屏是否被遮挡,若外屏未被遮挡,则在外屏上显示周围支持投屏功能的电子设备的标识。用户可以根据自身需要,在外屏上显示的周围支持投屏功能的电子设备的标识中选择一个标识作为目标设备标识。以源端设备为电子设备10为例,如图9所示,电子设备10获取的周围支持投屏功能的电子设备的标识包括电子设备20的标识、电子设备30的标识和电子设备40的标识,则电子设备10在外屏上显示电子设备20的标识、电子设备30标识和电子设备40的标识,示例的,如图10所示,电子设备10在外屏上显示电子设备20的标识、电子设备30的标识和电子设备40的标识,其中,当用户选中电子设备30的标识时,电子设备10确定目标设备标识为电子设备30的标识。示例的,电子设备10响应于将内屏由展开状态折叠为闭合状态的操作,将内屏熄屏,外屏继续锁屏,基于上述场景,为了使得用户可以对外屏上显示的电子设备20的标识、电子设备30的标识和电子设备40的标识进行操作,用户需要先对电子设备10的外屏进行解锁。例如,电子设备10可以通过对用户的面部或指纹识别等方式,实现对电子设备10的外屏进行解锁。或者,用户对外屏上显示的电子设备20的标识、电子设备30的标识和电子设备40的标识进行操作,不受外屏锁屏的限制,也就是说,在外屏锁屏的情况下,电子设备10在外屏锁屏时,显示电子设备20的标识、电子设备30的标识和电子设备40的标识,用户可以无需对外屏解锁,就能够对电子设备20的标识、电子设备30的标识和电子设备40的标识进行相应的操作。For example, when the geographic location of the source device is a public place, it further determines whether the external screen of the source device is blocked. If the external screen is not blocked, the surrounding electronic devices that support the projection function are displayed on the external screen. Logo. The user can select an identifier as the target device identifier among the identifiers of the surrounding electronic devices that support the screen projection function displayed on the external screen according to their own needs. Taking the source device as the electronic device 10 as an example, as shown in FIG. 9, the identification of the surrounding electronic devices that support the screen projection function acquired by the electronic device 10 includes the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 , The electronic device 10 displays the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 on the external screen. For example, as shown in FIG. 10, the electronic device 10 displays the identification of the electronic device 20 and the electronic device on the external screen. The identification of the electronic device 30 and the identification of the electronic device 40. When the user selects the identification of the electronic device 30, the electronic device 10 determines that the target device identification is the identification of the electronic device 30. For example, the electronic device 10 responds to the operation of folding the inner screen from the unfolded state to the closed state, turns off the inner screen, and continues to lock the outer screen. Based on the above scenario, in order to enable the user to view the electronic device 20 displayed on the outer screen To operate the identification, the identification of the electronic device 30, and the identification of the electronic device 40, the user needs to unlock the external screen of the electronic device 10 first. For example, the electronic device 10 can unlock the external screen of the electronic device 10 by recognizing the user's face or fingerprint. Or, the user operates the identification of the electronic device 20, the identification of the electronic device 30, and the identification of the electronic device 40 displayed on the external screen without being restricted by the external screen lock screen, that is, in the case of the external screen lock screen, the electronic device When the device 10 is locked on the external screen, it displays the identity of the electronic device 20, the identity of the electronic device 30, and the identity of the electronic device 40. The user can check the identity of the electronic device 20, the identity of the electronic device 30, and the electronic device without unlocking the external screen. The identification of the device 40 performs corresponding operations.
在本申请另一些实施例中,电子设备10在外屏上还显示用于控制取消投屏的虚拟按钮,用户可以通过点击或者触摸用于控制取消投屏的虚拟按钮,使得电子设备10取消投屏。从而使得用户可以根据自身的需求取消投屏。或者,电子设备10在外屏上还显示超过预设时长用户未选择投屏设备,则自动取消投屏的提示信息。例如,预设时长可以为10s、15s等,可以根据用户需求进行相应的设定。示例的,电子设备10当取消投屏后,可以自动黑屏或者显示默认用户界面。In some other embodiments of the present application, the electronic device 10 also displays a virtual button for controlling the cancellation of the screen projection on the external screen. The user can click or touch the virtual button for controlling the cancellation of the screen projection to make the electronic device 10 cancel the screen projection. . This allows users to cancel the screencast according to their own needs. Alternatively, the electronic device 10 also displays on the external screen that the user has not selected a screen projection device for more than a preset time period, and the screen projection is automatically cancelled. For example, the preset duration can be 10s, 15s, etc., which can be set accordingly according to user needs. For example, the electronic device 10 may automatically black out the screen or display the default user interface after canceling the screen projection.
需要说明的是,本申请实施例中电子设备的标识可以包括电子设备的图标、电子设备的名称等,对此不作限定。It should be noted that the identification of the electronic device in the embodiment of the present application may include the icon of the electronic device, the name of the electronic device, etc., which is not limited.
在另一些实施例中,外屏被遮挡时,例如,源端设备被放置在包里、或者外屏面对着桌面放置,则源端设备不再投屏。In other embodiments, when the external screen is blocked, for example, the source device is placed in a bag or the external screen is placed facing the desktop, the source device no longer casts the screen.
再示例的,源端设备还可以参考设备能力信息(如是否能够包括显示屏、是否包括喇叭、触控)、设备属性信息(例如设备显示屏的分辨率、音效)、设备当前的运行状态(例如是否在播放视频、音频或者是否与其它设备正在通信等)等中的至少一项,从周围获取的支持投屏功能的电子设备的标识中确定目标设备标识。其中,设备能力信息、设备属性信息和设备当前的运行状态可以是源端设备在获取支持投屏功能的电子设备的标识的过程中获取的。例如,目标设备标识所标识的电子设备可以为当前未播放视频、包括显示屏、且显示屏分辨率大于第一阈值的电子设备。其中,第一阈值可以是根据实际需要设置的。As another example, the source device can also refer to device capability information (such as whether it can include a display screen, whether it includes a speaker, touch), device attribute information (such as the resolution and sound effects of the device display screen), and the current operating status of the device ( For example, whether it is playing video, audio, or whether it is communicating with other devices, etc.), the target device identification is determined from the identifications of electronic devices that support the screen projection function obtained from the surroundings. The device capability information, device attribute information, and current operating status of the device may be obtained by the source device in the process of obtaining the identification of the electronic device that supports the screen projection function. For example, the electronic device identified by the target device identifier may be an electronic device that does not currently play a video, includes a display screen, and whose display screen resolution is greater than a first threshold. Wherein, the first threshold may be set according to actual needs.
本申请实施例中,源端设备可以基于蓝牙、和/或wi-fi等扫描获取附近可连接的电子设备。以蓝牙为例,源端设备当基于蓝牙扫描获取到多个电子设备的标识时,可以从多个电子设备的标识中确定一个或多个设备标识,则源端设备与确定的一个或多个设备标识所标识的目标端设备建立连接,并将投屏内容发送给该确定一个或多个设备标识所标识的目标端设备。特别的,源端设备可以从多个目标端设备的设备标识中确定一个设备标识,并将投屏内容发送给该确定的设备标识所标识的目标端设备。In the embodiment of the present application, the source device may scan and acquire nearby connectable electronic devices based on Bluetooth, and/or Wi-Fi. Taking Bluetooth as an example, when the source device obtains the identities of multiple electronic devices based on Bluetooth scanning, one or more device identities can be determined from the identities of the multiple electronic devices, then the source device and the determined one or more The target device identified by the device identifier establishes a connection, and sends the screencast content to the target device identified by the one or more device identifiers. In particular, the source device may determine a device identifier from the device identifiers of multiple target devices, and send the screencast content to the target device identified by the determined device identifier.
为了使得提高用户与电子设备之间的交互,示例的,源端设备在执行步骤802之后,判断智能投屏功能是否已开启,当智能投屏功能已开启时,再执行步骤803和步骤804,当智能投屏功能未开启时,则不再执行步骤803和步骤804。其中,智能投屏功能是源端设备响应于用户的操作开启或关闭的。例如,在系统设置界面上设置用于控制开启或关闭智能投屏功能的虚拟按钮,当用户将虚拟按钮从OFF切换为ON时,源端设备开启智能投屏功能,当用户将虚拟按钮从ON切换为OFF时,源端设备关闭智能投屏功能。系统设置界面可以为如图11A所示的用户界面1100。用户界面1100包括虚拟按钮1101,其中,虚拟按钮1101用于控制开启或关闭智能投屏功能。又示例的,用于控制开启或关闭智能投屏功能的虚拟按钮还可以设置在其它用户界面上,例如,用于控制开启或关闭智能投屏功能的虚拟按钮设置在上拉界面或下拉界面的通知栏、或系统工具栏、或者控制栏中。比如,上拉界面可以是源端设备响应于用户在外屏或内屏上向下滑动的操作显示的。再比如,下拉界面可以是源端设备响应于用户在外屏或内屏上向上滑动的操作显示的。In order to improve the interaction between the user and the electronic device, for example, after performing step 802, the source device determines whether the smart screen projection function is enabled, and when the smart screen projection function is enabled, steps 803 and 804 are executed again. When the smart screen projection function is not enabled, step 803 and step 804 are no longer executed. Among them, the smart screen projection function is turned on or off by the source device in response to the user's operation. For example, set a virtual button on the system settings interface to control turning on or off the smart screen projection function. When the user switches the virtual button from OFF to ON, the source device turns on the smart screen projection function. When the user turns the virtual button from ON When switched to OFF, the source device turns off the smart screen projection function. The system setting interface may be a user interface 1100 as shown in FIG. 11A. The user interface 1100 includes a virtual button 1101, where the virtual button 1101 is used to control turning on or off the smart screen projection function. As another example, the virtual button used to control turning on or off the smart screen projection function can also be set on other user interfaces. For example, the virtual button used to control turning on or off the smart screen projection function is set on the pull-up interface or the drop-down interface. Notification bar, or system toolbar, or control bar. For example, the pull-up interface may be displayed by the source device in response to the user's operation of sliding down on the external screen or the internal screen. For another example, the drop-down interface may be displayed by the source device in response to the user's operation of sliding up on the external screen or the internal screen.
在另一些实施例中,源端设备在执行步骤802之后、或者在判断智能投屏功能已开启之后,向用户提示是否投屏。例如,如图11B所示,源端设备可以通过在外屏显示提示框910,其中提示框1110中包括提示信息,以及确认选项“是”和否认选项“否”,提示信息用于提示用户是否投屏,比如提示信息可以为“请确认是否投屏?”等。源端设备可以响应于用户选择确认选项“是”,继续执行步骤803和步骤804,源端设备可以响应于用户选择否认选项“否”,不再继续执行步骤803和步骤804。此外,在一些示例中,源端设备当在外屏显示提示框1110后,若超过预设时长仍未检测到用户的操作,则可以默认用户同意投屏、或者默认用户拒绝投屏。比如,预设时长可以为10s、15s等,对此不作限定。在默认用户同意投屏的情况下,则源端设备可以继续执行步骤803和步骤804。另外,需要说明的是,源端设备在外屏锁屏时显示提示框1110,为了提高安全性,用户再对源端设备显示的提示框1110进行操作之前,需要先通过指纹、密码或者面部识别等对外屏解锁。进一步的,源端设备当用户同意投屏后,还可以在外屏上显示图11C或图11D所示的用户界面,使得用户可以随时取消投屏。还需要说明的是,本申请实施例中可以不限定判断智能投屏功能是否已开启、和向用户提示是否投屏的先后顺序。In other embodiments, the source device prompts the user whether to cast the screen after performing step 802 or after determining that the smart screen projection function is enabled. For example, as shown in Figure 11B, the source device can display a prompt box 910 on the external screen, where the prompt box 1110 includes prompt information, and the confirmation option "Yes" and the denial option "No". The prompt information is used to prompt the user whether to vote or not. For example, the prompt message can be "Please confirm whether to cast the screen?" etc. The source device may continue to perform step 803 and step 804 in response to the user selecting the confirmation option "Yes", and the source device may not continue to perform step 803 and step 804 in response to the user selecting the denial option "No". In addition, in some examples, after the source device displays the prompt box 1110 on the external screen, if the user's operation is not detected after a preset period of time, the user may default to the user's consent to the screen, or the default user to reject the screen-casting. For example, the preset duration can be 10s, 15s, etc., which is not limited. In the case where the default user agrees to cast the screen, the source device can continue to perform step 803 and step 804. In addition, it should be noted that the source device displays a prompt box 1110 when the external screen is locked. In order to improve security, the user needs to pass fingerprint, password or facial recognition before operating the prompt box 1110 displayed by the source device. Unlock the external screen. Further, after the user agrees to cast the screen, the source device may also display the user interface shown in FIG. 11C or FIG. 11D on the external screen, so that the user can cancel the screen cast at any time. It should also be noted that, in the embodiment of the present application, the order of judging whether the smart screen projection function has been turned on and prompting the user whether to cast the screen may not be limited.
在一些实施例中,源端设备当周围或附近没有可连接的电子设备时,即源端设备未获 取到周围至少一个支持投屏功能的电子设备的标识时,则不再投屏。In some embodiments, when there is no connectable electronic device around or in the vicinity of the source device, that is, when the source device has not obtained the identification of at least one surrounding electronic device that supports the screen projection function, it no longer casts the screen.
在另一实施例中,作为步骤803和步骤804的替换步骤,在步骤802之后,该方法还可以包括:In another embodiment, as an alternative to step 803 and step 804, after step 802, the method may further include:
步骤805,源端设备响应于将内屏由展开状态折叠为闭合状态的操作将内屏锁屏后,判断智能投屏功能是否已开启,若智能投屏功能已开启,则执行步骤806,若智能投屏功能未开启,则本流程结束。Step 805: After the source device locks the internal screen in response to the operation of folding the internal screen from the unfolded state to the closed state, it determines whether the smart screen projection function has been turned on. If the smart screen projection function is turned on, step 806 is executed. If the smart screen projection function is not enabled, this process ends.
步骤806,源端设备判断外屏是否被遮挡,若外屏未被遮挡,则执行步骤807,若外屏被遮挡,则本流程结束。In step 806, the source device determines whether the external screen is blocked. If the external screen is not blocked, step 807 is executed. If the external screen is blocked, the process ends.
示例的,源端设备可以通过距离传感器、摄像头等判断外屏是否被遮挡,例如,当源端设备放在包里、或兜里、或者源端设备放置在桌子上时外屏朝下时,源端设备可以通过距离传感器、或摄像头等检测到外屏被遮挡。再例如,当源端设备放置在桌子上时,外屏朝上时,可以通过与外屏位于同一面的摄像头来确定外屏未被遮挡。需要说明的是,上述仅为检测外屏是否被遮挡的示例性说明,源端设备还可以通过其他方式判断外屏是否被遮挡,例如,通过人工智能(artificial intelligence,AI)的方式判断外屏是否被遮挡。通过判断外屏是否被遮挡是为了检测用户是否有需要投屏的意图,如果识别到源端设备被放入兜里或包里,则源端设备认为用户不再继续使用设备,则不再触发投屏。此外,本申请实施例还可以结合其他传感器(例如定位传感器)等获取的其他参数(如时间、地点等)对用户使用设备的行为习惯进行学习,实现更准确判断用户是否有需要投屏的意图,提高源端设备触发投屏的可靠性。For example, the source device can judge whether the external screen is blocked by distance sensors, cameras, etc., for example, when the source device is placed in a bag or pocket, or the source device is placed on a table, the external screen faces down. The source device can detect that the external screen is blocked by a distance sensor or camera. For another example, when the source device is placed on a table with the external screen facing up, it can be determined that the external screen is not blocked by a camera on the same side as the external screen. It should be noted that the above is only an exemplary description for detecting whether the external screen is blocked. The source device can also determine whether the external screen is blocked by other means, for example, by artificial intelligence (AI). Whether it is blocked. The purpose of judging whether the external screen is blocked is to detect whether the user has the intention to cast the screen. If it is recognized that the source device is put in the pocket or bag, the source device thinks that the user no longer uses the device, and no longer triggers Cast screen. In addition, the embodiments of the present application can also combine other parameters (such as time, location, etc.) acquired by other sensors (such as positioning sensors) to learn the behavior habits of the user using the device, so as to more accurately determine whether the user has the intention to cast a screen. , Improve the reliability of the source device to trigger the screen.
在一些实施例中,源端设备可以在执行步骤806后,向用户提示是否投屏,例如在外屏显示图11B所示的提示框1110,在用户同意投屏后,源端设备可以获取当前运行的至少一个支持投屏功能的应用程序的标识、以及至少一个用于接收投屏内容的电子设备的标识,可以在外屏上提示用户当前执行的进程,例如,源端设备在获取当前运行的支持投屏功能的应用程序的标识时,可以在外屏上显示内容获取中,比如如图11C所示,再例如,源端设备在获取用于接收投屏内容的电子设备的标识时,可以在外屏上显示设备获取中,比如如图11D所示,当源端设备获取到获取当前运行的至少一个支持投屏功能的应用程序的标识、以及至少一个用于接收投屏内容的电子设备的标识后,执行步骤807。In some embodiments, the source device may prompt the user whether to cast the screen after performing step 806. For example, the prompt box 1110 shown in FIG. 11B is displayed on the external screen. After the user agrees to cast the screen, the source device may obtain the current running The identification of at least one application program that supports the screen projection function and the identification of at least one electronic device used to receive screen projection content can prompt the user on the external screen of the current process, for example, the source device is currently running support When the identification of the application program of the screen projection function, the content acquisition can be displayed on the external screen, for example, as shown in Figure 11C. For another example, when the source device obtains the identification of the electronic device used to receive the screen content, it can be displayed on the external screen. In the acquisition of the upper display device, for example, as shown in FIG. 11D, after the source device acquires the identification of at least one currently running application that supports the screen projection function and the identification of at least one electronic device used to receive screen projection content , Go to step 807.
步骤807,源端设备在外屏上显示当前运行的至少一个支持投屏功能的应用程序的标识;以及在外屏上显示至少一个用于接收投屏内容的电子设备的标识。In step 807, the source device displays on the external screen the identification of at least one currently running application supporting the screen projection function; and displays on the external screen the identification of at least one electronic device for receiving screen projection content.
其中,当前运行的至少一个支持投屏功能的应用程序的标识可以为当前运行的应用程序中标识位于白名单中的应用程序的标识,白名单中包括至少一个支持投屏功能的应用程序的标识。至少一个用于接收投屏内容的电子设备的标识可以是源端设备基于蓝牙、和/或wi-fi等通信技术获取的。Wherein, the identifier of at least one currently running application that supports the screen projection function may be an identifier of the currently running application that identifies an application in the white list, and the white list includes the identification of at least one application that supports the projection function. . The identification of the at least one electronic device used to receive the projected content may be obtained by the source device based on a communication technology such as Bluetooth and/or Wi-Fi.
例如,当前运行的至少一个支持投屏功能的应用程序的标识包括爱奇艺的标识、酷狗音乐的标识、抖音的标识,至少一个用于接收投屏内容的电子设备的标识为电子设备20的标识、电子设备30的标识和电子设备40的标识,则源端设备在外屏上显示爱奇艺标识、酷狗音乐的标识和抖音标识,以及在外屏上显示电子设备20的标识、电子设备30的标识和电子设备40的标识。其中,当前运行的至少一个支持投屏功能的应用程序的标识,与至少一个用于接收投屏内容的电子设备的标识可以在同一用户界面上显示,例如如图12A所示。当前运行的至少一个支持投屏功能的应用程序的标识,与至少一个用于接收投屏内 容的电子设备的标识可以在同一用户界面上显示也可以在不同的用户界面上显示,例如,如图12B所示。For example, the logo of at least one currently running application that supports the screen projection function includes the logo of iQiyi, the logo of Kugou Music, and the logo of Douyin, and the logo of at least one electronic device for receiving screen projection content is an electronic device 20, the logo of the electronic device 30, and the logo of the electronic device 40, the source device displays the iQiyi logo, the Kugou music logo, and the Douyin logo on the external screen, and displays the logo of the electronic device 20, The identification of the electronic device 30 and the identification of the electronic device 40. Wherein, the identification of at least one currently running application supporting the screen projection function and the identification of at least one electronic device used to receive screen projection content may be displayed on the same user interface, for example, as shown in FIG. 12A. The identification of at least one currently running application supporting the screen projection function and the identification of at least one electronic device for receiving screen projection content can be displayed on the same user interface or on different user interfaces, for example, as shown in the figure Shown in 12B.
在一些实施例中,源端设备当前运行至少两个支持投屏功能的应用程序的情况下,执行步骤807中在外屏上显示当前运行至少两个支持投屏功能的应用程序中的一个或多个应用程序的标识。示例的,源端设备当前运行一个支持投屏功能的应用程序的情况下,可以无需向用户提示该应用程序的标识,从该支持投屏功能的应用程序中获取投屏内容。或者,源端设备当前运行一个支持投屏功能的应用程序的情况下,也可以向用户提示该应用程序的标识,但是用户可以无需操作选择该应用程序的标识,源端设备可以从该应用程序中获取投屏内容。In some embodiments, when the source device is currently running at least two applications that support the screen projection function, performing step 807 displays on the external screen one or more of the currently running at least two applications that support the screen projection function. ID of each application. For example, when the source device is currently running an application that supports the screen projection function, the screen projection content may be obtained from the application that supports the screen projection function without prompting the user of the identification of the application program. Or, when the source device is currently running an application that supports the screencasting function, the user can also be prompted with the identification of the application, but the user can select the identification of the application without operating, and the source device can download the application from the application. Get screencast content in.
在又一些实施例中,源端设备获取到至少两个用于接收投屏内容的电子设备的标识的情况下,执行步骤807中在外屏上显示至少两个用于接收投屏内容的电子设备的标识中至少一个电子设备的标识。示例的,源端设备只获取到一个用于接收投屏内容的电子设备的标识,则可以无需在外屏上显示该电子设备的标识、或者,在外屏上显示该电子设备的标识,但是用户可以无需操作选择该电子设备的标识。In still other embodiments, in the case that the source device obtains the identifications of at least two electronic devices for receiving the projected content, perform step 807 to display at least two electronic devices for receiving the projected content on the external screen The ID of at least one electronic device in the ID. For example, if the source device only obtains the identification of an electronic device for receiving screencast content, there is no need to display the identification of the electronic device on the external screen, or display the identification of the electronic device on the external screen, but the user can No operation is required to select the identification of the electronic device.
需要说明的是,源端设备在当前运行的应用程序均不支持投屏功能,或者当前未运行应用程序,和/或未获取到用于接收投屏内容的电子设备的标识的情况下,则不再投屏。It should be noted that in the case that none of the currently running applications on the source device support the screen projection function, or the application is not currently running, and/or the identification of the electronic device used to receive the screen content is not obtained, then No more screencasts.
步骤808,源端设备接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中一个应用程序的标识后,从该用户选中的应用程序的标识所标识的应用程序中获取投屏内容,以及将投屏内容发送到用户从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识所标识的电子设备上。需要说明的是,用户选中的应用程序的标识所标识的应用程序可以称之为目标应用程序。Step 808: After the source device receives the user's selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content. It should be noted that the application identified by the identifier of the application selected by the user may be referred to as a target application.
进一步的,步骤807中源端设备当接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中的一个应用程序的标识、和从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识后,或者源端设备在确定用于接收投屏内容的目标端设备后,在外屏上显示投送中的用户界面,例如,如图13所示的用户界面。Further, in step 807, when the source device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device for receiving screen projection content After the identification of the electronic device selected in the identification, or after the source device determines the target device for receiving the screened content, the user interface during delivery is displayed on the external screen, for example, the user interface shown in Figure 13 .
需要说明的是,本申请实施例不限定源端设备获取支持投屏功能的应用程序的标识、以及用于接收投屏内容的电子设备的标识的先后顺序,源端设备可以同时获取支持投屏功能的应用程序的标识、以及用于接收投屏内容的电子设备的标识,也可以先获取支持投屏功能的应用程序的标识,再获取用于接收投屏内容的电子设备的标识,或者,先获取用于接收投屏内容的电子设备的标识,再获取支持投屏功能的应用程序的标识。It should be noted that this embodiment of the application does not limit the sequence in which the source device obtains the identification of the application that supports the screen projection function and the identification of the electronic device used to receive the screen content. The source device can simultaneously obtain the screen projection support. The identification of the functional application and the identification of the electronic device used to receive the screened content, or the identification of the application that supports the screen-casting function can be obtained first, and then the identification of the electronic device used to receive the screened content, or, First obtain the identification of the electronic device used to receive the screencast content, and then obtain the identification of the application that supports the screencast function.
以先获取支持投屏功能的应用程序的标识,再获取用于接收投屏内容的电子设备的标识为例。源端设备可以在获取当前运行的至少一个支持投屏功能的应用程序的标识时,在外屏上显示内容获取中(例如如图11C所示),并在获取到当前运行的至少一个支持投屏功能的应用程序的标识后,在外屏上显示至少一个支持投屏功能的应用程序的标识,并在响应于用户选中某一应用程序的标识后,在外屏上显示设备获取中(例如,如图11D所示),并在获取到至少一个用于接收投屏内容的电子设备的标识后,在外屏上显示至少一个电子设备的标识,响应于用户选择某一电子设备的标识,在外屏上显示投送中(例如如图13所示)。在这种情况下,源端设备可以同时获取投屏内容和至少一个用于接收投屏内容的电子设备的标识。Take the identification of an application that supports the screen projection function first, and then the identification of the electronic device used to receive the screen projection content as an example. The source device may display the content acquisition on the external screen when acquiring the identification of at least one currently running application that supports the projection function (for example, as shown in FIG. 11C), and after acquiring at least one currently running application that supports projection After the identification of the functional application, the identification of at least one application that supports the projection function is displayed on the external screen, and in response to the user selecting an application identification, the external screen displays the device acquisition (for example, as shown in the figure) 11D), and after acquiring the identification of at least one electronic device for receiving screencast content, the identification of at least one electronic device is displayed on the external screen, and in response to the user selecting a certain electronic device identification, the identification is displayed on the external screen Delivery (for example, as shown in Figure 13). In this case, the source device can simultaneously obtain the screencast content and the identification of at least one electronic device for receiving the screencast content.
示例的,源端设备当未获取到支持投屏功能的应用程序的标识时,可以向用户提示投 屏失败,进一步的,源端设备还可以向用户提示投屏失败的原因。又示例的,源端设备当未获取到用于接收投屏内容的电子设备的标识时,可以向用户提示投屏失败,进一步的,源端设备还可以向用户提示投屏失败的原因。For example, when the source device does not obtain the identification of the application that supports the screen projection function, it can prompt the user that the screen projection fails. Further, the source device can also prompt the user the reason for the screen projection failure. As another example, when the source device fails to obtain the identification of the electronic device used to receive the screened content, it can prompt the user that the screen has failed. Furthermore, the source device can also prompt the user the reason for the failed screen.
需要说明的是,本申请实施例中步骤806可以位于步骤805之前,也可以位于步骤807之后,或者步骤808之后,或者步骤806还可以与步骤807或步骤808同时执行等,对此不作限定,但是源端设备一旦检测到外屏被遮挡,则终止投屏的流程。It should be noted that in the embodiment of the present application, step 806 can be located before step 805, after step 807, or after step 808, or step 806 can be executed simultaneously with step 807 or step 808, etc., which is not limited. However, once the source device detects that the external screen is blocked, it terminates the screen projection process.
又进一步的,基于步骤801~步骤803,或者,基于步骤801、802以及步骤805~步骤807,源端设备当将投屏内容发送给目标端设备成功后,在外屏上显示控制界面。其中,控制界面上包括具有触控功能的虚拟按钮。其中,对于不同的应用程序来说,具有触控功能的虚拟按钮是不同的。其中,源端设备接收到用户在控制界面上的操作后,响应于在控制界面的操作上,实现对目标应用程序的控制,从而达到对投屏内容控制的目的。其中,用户在控制界面上的操作可以为对控制界面上的用于控制某一功能的虚拟按钮的操作,也可以为在控制界面上的快捷手势操作等,对此不作限定。Still further, based on steps 801 to 803, or based on steps 801, 802 and steps 805 to 807, the source device displays the control interface on the external screen after successfully sending the projected content to the target device. Wherein, the control interface includes virtual buttons with touch function. Among them, for different applications, the virtual buttons with touch functions are different. Among them, after the source device receives the user's operation on the control interface, it responds to the operation on the control interface to realize the control of the target application, so as to achieve the purpose of controlling the projected content. The user's operation on the control interface can be an operation of a virtual button on the control interface for controlling a certain function, or can be a shortcut gesture operation on the control interface, etc., which is not limited.
例如,对于视频类型的应用程序来说,例如爱奇艺,当投屏内容为爱奇艺的用户界面上的内容时,控制界面可以如图14A所示,包括进度条、暂停按钮、快进按钮、选集按钮、以及清晰度按钮等。比如,源端设备接收到用户对清晰度按钮的操作,将清晰度由标清设置为高清,则在目标端设备上呈现的投票内容由标清切换为高清。For example, for a video-type application, such as iQiyi, when the content on the screen is the content on the user interface of iQiyi, the control interface can be as shown in Figure 14A, including a progress bar, a pause button, and a fast forward Button, selection button, and clarity button, etc. For example, if the source device receives the user's operation on the definition button and sets the resolution from SD to HD, the voting content presented on the target device is switched from SD to HD.
再例如,对于音频类的应用程序来说,例如酷我音乐,当投屏内容为酷我音乐的用户界面上的内容时,控制界面可以如图14B所示,包括进度条、暂停按钮、快进按钮以及菜单按钮等。比如,源端设备接收到用户点击暂停按钮的操作,则目标端设备上暂停播放音频。For another example, for audio applications, such as Kuwo Music, when the screen content is the content on the Kuwo Music user interface, the control interface may be as shown in Figure 14B, including a progress bar, a pause button, and a quick Enter button and menu button, etc. For example, if the source device receives the user's operation of clicking the pause button, the audio is paused on the target device.
再例如,对于社交类视频应用,例如抖音,当投屏内容为抖音的用户界面上的内容时,控制界面可以如图14C所示,包括触控区域、收藏、评论、分享等功能按钮。其中,用户可在通过在触控区域上下滑动操作切换视频,或者在触控区域点击暂停或启动播放视频等。For another example, for social video applications, such as Douyin, when the screen content is the content on the user interface of Douyin, the control interface may be as shown in Figure 14C, including function buttons such as touch area, favorites, comments, and sharing. . Among them, the user can switch videos by sliding up and down in the touch area, or click to pause or start playing the video in the touch area.
又例如,对于游戏类应用,例如贪吃蛇,当投屏内容为贪吃蛇的用户界面上内容时,控制界面可以如图14D所示,包括上、下、左、右功能按钮等。其中,用户可以通过上、下、左、右功能按钮等控制蛇的移动方向。或者,当投屏内容为贪吃蛇的用户界面上的内容时,控制界面还可以如图14E所示,即控制界面是以游戏手柄来向用户呈现用于控制游戏的虚拟按钮的,更加形象和生动。For another example, for game applications, such as Snake, when the screen content is the content on the user interface of Snake, the control interface may be as shown in FIG. 14D, including up, down, left, and right function buttons. Among them, the user can control the movement direction of the snake through the up, down, left, and right function buttons. Or, when the screencast content is the content on the user interface of Snakes, the control interface can also be as shown in Figure 14E, that is, the control interface is a gamepad to present the user with virtual buttons for controlling the game, which is more vivid And vivid.
再例如,对于短消息类应用,例如微信、QQ等,当投屏内容为微信的用户界面上的内容时,控制界面可以如图14F或图14G所示,包括输入法。当微信的用户界面上采用文字输入时,控制界面可以如图14F所示。当微信的用户界面上采用语音输入时,控制界面可以如图14G所示。For another example, for short message applications, such as WeChat, QQ, etc., when the screened content is content on the user interface of WeChat, the control interface may be as shown in FIG. 14F or FIG. 14G, including an input method. When text input is adopted on the user interface of WeChat, the control interface may be as shown in FIG. 14F. When voice input is adopted on the user interface of WeChat, the control interface may be as shown in FIG. 14G.
具体的,在执行步骤803之后,或者,在步骤808中,源端设备当接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中的一个应用程序的标识之后,步骤808中将用户选中的应用程序的标识所标识的应用程序作为目标应用程序,源端设备可以根据目标应用程序,在外屏上显示相应的控制界面。Specifically, after performing step 803, or, in step 808, when the source device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, step 808 The application identified by the identifier of the application selected by the user is used as the target application, and the source device can display a corresponding control interface on the external screen according to the target application.
示例1:源端设备可以从预先设置的不同类型的应用程序对应的控制界面中,确定与目标应用程序所属的类型对应的控制界面,然后在外屏上显示与目标应用程序对应的控制界面。例如,目标应用程序为爱奇艺,而目标应用程序所属的应用程序的类型为视频类型。 源端设备可以从预先设置的不同类型的应用程序对应的控制界面中,确定视频类型的应用程序对应的控制界面,然后在外屏上显示与爱奇艺所属应用程序的类型对应的控制界面。有助于简化实现方式。需要说明的是,对于不同类型的应用程序预先设置的控制界面可以是不同的,例如,对于视频类型的应用程序,预先设置的控制界面可以如图14A所示,对于音频类型的应用程序,预先设置的控制界面可以如图14B所示。具体的,与不同类型的应用程序对应的控制界面可以是设备在出厂之前预先设置在电子设备中的,也可以电子设备根据自身安装的应用程序从服务器事先获取的等,本申请实施例对在电子设备中预先设置不同类型的应用程序对应的控制界面的方式不作限定。Example 1: The source device can determine the control interface corresponding to the type of the target application from preset control interfaces corresponding to different types of applications, and then display the control interface corresponding to the target application on the external screen. For example, the target application is iQiyi, and the type of the application to which the target application belongs is the video type. The source device may determine the control interface corresponding to the video type application from the preset control interfaces corresponding to the different types of applications, and then display the control interface corresponding to the type of application to which iQiyi belongs on the external screen. Help simplify the implementation. It should be noted that the preset control interfaces for different types of applications may be different. For example, for video type applications, the preset control interface may be as shown in FIG. 14A. For audio type applications, the preset control interface may be different. The set control interface can be as shown in Figure 14B. Specifically, the control interface corresponding to different types of applications may be pre-set in the electronic device before the device leaves the factory, or the electronic device may obtain it from the server in advance according to the application installed by itself. The manner in which control interfaces corresponding to different types of application programs are preset in the electronic device is not limited.
由于对于一些应用程序来说,存在个性控制按钮,例如一些游戏类型的应用程序,预先设置的控制界面可能无法满足用户的需求,因此本申请实施例还提供了一种在外屏上显示控制界面的方法。As for some applications, there are personalized control buttons, such as some game-type applications, and the preset control interface may not meet the needs of users. Therefore, this embodiment of the present application also provides a method for displaying a control interface on an external screen. method.
示例2:源端设备从目标应用程序的用户界面上识别具有触控功能的虚拟按钮(例如,虚拟按钮又可以称之为用户界面(user interface,UI)元素、虚拟按键、或者控件等),其中,具有触控功能的虚拟按钮可以供用户点击、触摸或按压等,以实现相应的功能(如暂停播放、快进等)。然后,电子设备对识别到的具有触控功能的虚拟按钮进行重新布局、裁减、和/或缩放等,生成与目标应用程序对应的控制界面,并在外屏上显示该控制界面。其中该控制界面上包括至少一个虚拟按钮,用于使得用户可以实现对目标应用程序的快捷操作。Example 2: The source device recognizes a virtual button with touch function from the user interface of the target application (for example, a virtual button can also be called a user interface (UI) element, virtual button, or control, etc.), Among them, the virtual button with touch function can be clicked, touched or pressed by the user to realize the corresponding function (such as pause playback, fast forward, etc.). Then, the electronic device rearranges, cuts, and/or zooms the identified virtual buttons with touch functions, generates a control interface corresponding to the target application, and displays the control interface on the external screen. The control interface includes at least one virtual button, which is used to enable the user to implement shortcut operations on the target application.
需要说明的是,该至少一个虚拟按钮可以包括与源端设备从目标应用程序的用户界面上识别到的所有虚拟按钮功能相同的按钮,也可以包括与源端设备从目标应用程序的用户界面上识别到的部分虚拟按钮功能相同的按钮。It should be noted that the at least one virtual button may include a button with the same function as all the virtual buttons recognized by the source device from the user interface of the target application, or may include the same button as the source device from the user interface of the target application. Some of the recognized virtual buttons have the same functions.
其中,控制界面上包括与目标应用程序的用户界面上识别到的虚拟按钮的功能相同的虚拟按钮,可以采用以下方式实现:Wherein, the control interface includes a virtual button with the same function as the virtual button recognized on the user interface of the target application, which can be implemented in the following ways:
1、通过将控制界面上的虚拟按钮映射到目标应用程序的用户界面上。例如,将控制界面上与从目标应用程序的用户界面上识别到的虚拟按钮功能相同的虚拟按钮的位置坐标,映射到该从目标应用程序的用户界面上识别到的虚拟按钮的位置坐标上。1. By mapping the virtual buttons on the control interface to the user interface of the target application. For example, the position coordinates of the virtual button on the control interface that has the same function as the virtual button recognized on the user interface of the target application are mapped to the position coordinates of the virtual button recognized on the user interface of the target application.
2、通过直接改变目标应用程序的用户界面上具有触控功能的虚拟按钮的布局,生成控制界面,从而使得控制界面上包括与目标应用程序的用户界面上识别到的虚拟按钮的功能相同的虚拟按钮。2. Generate a control interface by directly changing the layout of virtual buttons with touch functions on the user interface of the target application, so that the control interface includes virtual buttons that have the same functions as the virtual buttons recognized on the user interface of the target application. Button.
3、通过将控制界面上的虚拟按钮适配到目标应用程序的通用服务接口上,使得使该虚拟按钮与目标应用程序的用户界面上识别到的虚拟按钮的功能相同。3. By adapting the virtual button on the control interface to the general service interface of the target application, the function of the virtual button is the same as the virtual button recognized on the user interface of the target application.
在另一些实施例中,该至少一个虚拟按钮还可以包括除了与在目标应用程序的用户界面上识别到的虚拟按钮功能相同的按钮以外的其它功能按钮,例如取消投屏按钮、切换用于接收投屏内容的目标端设备的按钮和/或切换用于投屏的目标应用程序的按钮等。以取消投屏按钮为例,电子设备接收到用户点击取消投屏按钮的操作,响应于用户点击取消投屏按钮的操作,结束投屏。In other embodiments, the at least one virtual button may also include other function buttons other than the button with the same function as the virtual button recognized on the user interface of the target application, such as a cancel projection button, a switch for receiving The button of the target device of the projected content and/or the button of switching the target application for projecting, etc. Taking the screen-casting cancel button as an example, the electronic device receives the user's operation of clicking the canceling screen-casting button, and in response to the user's clicking the screen-casting cancel button, ends the screen projection.
以目标应用程序为王者荣耀为例,目标应用程序的用户界面可以如图15中的A所示,源端设备在图15中的A中识别到虚拟按钮1501,然后对虚拟按钮1501的图标进行重新裁剪和布局,得到图15中B所示的虚拟按钮1502,其中,虚拟按钮1502为在与王者荣耀对应的控制界面上包括的虚拟按钮,其功能与虚拟按钮1501的功能是相同的,为了使得用 户对虚拟按钮1502操作时实现与对虚拟按钮1501操作时相同的功能,示例的,虚拟按钮1502的位置坐标与虚拟按钮1501的位置坐标相关联。Taking the target application as the king of glory as an example, the user interface of the target application can be as shown in A in Figure 15. The source device recognizes the virtual button 1501 in A in Figure 15, and then performs the icon of the virtual button 1501. Re-cut and layout to obtain the virtual button 1502 shown in Figure 15 B, where the virtual button 1502 is a virtual button included on the control interface corresponding to the glory of the king, and its function is the same as that of the virtual button 1501. This allows the user to implement the same function when operating the virtual button 1502 as when operating the virtual button 1501. For example, the position coordinates of the virtual button 1502 are associated with the position coordinates of the virtual button 1501.
在一些实施例中,源端设备可以根据目标应用程序的历史使用情况的相关记录(例如,用户点击屏幕操作的历史记录等),识别具有触控功能的虚拟按钮。或者,源端设备可以根据目标应用程序提供的软件开发程序包(software development kit,SDK)接口,识别具有触控功能的虚拟按钮。或者,源端设备还可以从预定义的目标应用程序的用户界面中用于布局具有触控功能的虚拟按钮的位置区域,识别用于具有触控功能的虚拟按钮。此外,本申请实施例还可以通过其它方式识别具有触控功能的虚拟按钮,例如,源端设备可以通过对目标应用程序的用户界面进行语义分析(例如对具有触控功能的虚拟按钮的注册信息等进行语义分析)、对目标应用程序的用户界面进行图像识别等,识别具有触控功能的虚拟按钮。In some embodiments, the source device can identify the virtual button with touch function based on the related records of the historical usage of the target application (for example, the historical record of the user's click on the screen, etc.). Alternatively, the source device can identify a virtual button with a touch function according to a software development kit (SDK) interface provided by the target application. Alternatively, the source device may also use a location area for laying out virtual buttons with touch functions from the user interface of a predefined target application, and identify the virtual buttons with touch functions. In addition, the embodiments of the present application may also identify virtual buttons with touch functions in other ways. For example, the source device may perform semantic analysis on the user interface of the target application (for example, register information for virtual buttons with touch functions). Perform semantic analysis, etc.), perform image recognition on the user interface of the target application, and recognize virtual buttons with touch functions.
进一步的,受限于电子设备的能力,对于一些应用程序可能无法识别用户界面上的具有触控功能的虚拟按钮,因此为了简化外屏上显示控制界面的实现方式,又使得外屏上显示的用户界面能够满足用户的需求,源端设备从目标应用程序的用户界面上未识别到具有触控功能的虚拟按钮的情况下,可以根据从预先配置的不同应用程序的类型对应的控制界面中,确定与目标应用程序的类型对应的控制界面,并在外屏上显示该控制界面。具体的实现方式可以参见示例1中的相关介绍,在此不再赘述。Further, limited by the capabilities of electronic devices, some applications may not be able to recognize virtual buttons with touch functions on the user interface. Therefore, in order to simplify the implementation of the display control interface on the external screen, the display on the external screen The user interface can meet the needs of users. If the source device does not recognize a virtual button with touch function on the user interface of the target application, it can be configured according to the control interface corresponding to different application types in advance. Determine the control interface corresponding to the target application type, and display the control interface on the external screen. For the specific implementation manner, refer to the related introduction in Example 1, which will not be repeated here.
以目标应用程序为王者荣耀为例。目标应用程序的用户界面可以如图15中的A所示,源端设备在未识别到图15中的A所示的用户界面上的具有触控功能的虚拟按钮时,如果预先设置的应用程序的类型为游戏类型对应的控制界面如图15中的C所示,源端设备在外屏上显示图15中C所示的控制界面。如图15中的C所示,控制界面包括触控区域。用户可以在触控区域进行上下左右滑动操作等,实现对游戏的控制。Take the target application as an example. The user interface of the target application can be as shown in A in Figure 15. When the source device does not recognize the virtual button with touch function on the user interface shown in A in Figure 15, if the preset application The control interface corresponding to the game type is shown as C in Fig. 15, and the source device displays the control interface shown in C in Fig. 15 on the external screen. As shown in C in FIG. 15, the control interface includes a touch area. Users can swipe up, down, left, and right in the touch area to control the game.
上述仅为源端设备在外屏上显示与目标应用程序对应的控制界面的方法举例说明,本申请实施例源端设备在外屏上显示与目标应用程序对应的控制界面的方法的具体实现不作限定。The foregoing is only an example of the method for the source device to display the control interface corresponding to the target application on the external screen, and the specific implementation of the method for the source device to display the control interface corresponding to the target application on the external screen in the embodiment of the present application is not limited.
在一些实施例中,基于步骤801~步骤803,或者基于步骤801、802以及步骤805~步骤807,源端设备将投屏内容发送给目标端设备后,若接收到用户将内屏由闭合状态展开为展开状态,则响应于接收到用户将内屏由闭合状态展开为展开状态,则不再向目标端设备发送投屏内容,在内屏上显示该投屏内容所在的应用程序的用户界面。例如,在电子设备的内屏处于闭合状态时,将爱奇艺的用户界面上的视频投送到智能电视上,当电子设备的内屏被用户展开为展开状态时,则响应于用户将内屏由闭合状态展开为展开状态的操作,停止投屏,并将爱奇艺的用户界面映射到内屏上进行显示。进一步的,外屏不再显示爱奇艺对应的控制界面,例如外屏可以熄屏。In some embodiments, based on steps 801 to 803, or based on steps 801, 802, and steps 805 to 807, after the source device sends the screened content to the target device, if the user receives that the screen is closed from the closed state Expanded to expanded state, in response to receiving that the user expands the inner screen from the closed state to the expanded state, no more screen content is sent to the target device, and the user interface of the application where the screened content is displayed on the inner screen . For example, when the inner screen of the electronic device is in the closed state, the video on the user interface of iQiyi is sent to the smart TV. When the inner screen of the electronic device is expanded to the expanded state by the user, it responds to the user When the screen is expanded from the closed state to the expanded state, the screen projection is stopped, and the iQiyi user interface is mapped to the inner screen for display. Furthermore, the external screen no longer displays the control interface corresponding to iQiyi, for example, the external screen can be turned off.
进一步的,基于步骤801~步骤803,或者基于步骤801、802以及步骤805~步骤807,目标端设备接收到源端设备发送的投屏内容后,可以对投屏内容进行裁剪或者重新布局后,在目标端设备上进行呈现。示例的,也可以是源端设备在发送投屏内容之前,根据目标端设备的设备属性(例如分辨率、触控能力等),对从目标应用程序中获取的内容进行相应的裁剪或者重新布局为适应目标端设备呈现的投屏内容,然后将投屏内容发送给目标端设备。从而有助于使得目标端设备能够正常呈现投屏内容。Further, based on steps 801 to 803, or based on steps 801, 802 and steps 805 to 807, after the target device receives the projected content sent by the source device, it can crop or re-layout the projected content, Present on the target device. For example, the source device can also crop or re-layout the content obtained from the target application according to the device attributes (such as resolution, touch capability, etc.) of the target device before sending the projected content In order to adapt to the projection content presented by the target device, the projection content is then sent to the target device. This helps to enable the target device to display the projected content normally.
需要说明的是,本申请实施例中的涉及的源端设备在外屏上显示与目标应用程序对应 的控制界面的方法也可以应用于除本申请实施例以外的其它投屏方法中,对此不作限定。It should be noted that the method for the source device to display the control interface corresponding to the target application on the external screen in the embodiment of this application can also be applied to other screen projection methods except the embodiment of this application. limited.
示例二:Example two:
源端设备为只包括第一显示屏的电子设备,例如平板电脑、手机等。例如,源端设备的第一显示屏可以为图4A所示的第一显示屏141,位于源端设备的正面,源端设备的背面不包括显示屏。The source device is an electronic device that only includes the first display screen, such as a tablet computer, a mobile phone, etc. For example, the first display screen of the source device may be the first display screen 141 shown in FIG. 4A, which is located on the front of the source device, and the back of the source device does not include a display screen.
示例的,如图16所示,为本申请实施例的另一种投屏方法的流程示意图,具体包括以下步骤。As an example, as shown in FIG. 16, it is a schematic flowchart of another screen projection method according to an embodiment of this application, which specifically includes the following steps.
步骤1601,源端设备的第一显示屏处于使用中,接收到对第一显示屏的熄屏操作。其中,源端设备的第一显示屏处于使用中具体介绍,可以参见步骤1601中源端设备的内屏处于使用中的相关介绍,在此不再赘述。Step 1601: The first display screen of the source device is in use, and a screen-off operation on the first display screen is received. Among them, the first display screen of the source device is in use for specific introduction, please refer to the related introduction about the inner screen of the source device in use in step 1601, which will not be repeated here.
其中,对第一显示屏的熄屏操作可以为用户按压电源键的操作、或者用户的语音指令、或者用户点击用于控制熄屏的虚拟按键的操作等,对此不作限定。The screen-off operation of the first display screen may be an operation of the user pressing the power button, or a voice instruction of the user, or an operation of the user clicking a virtual button for controlling the screen-off, etc., which is not limited.
步骤1602,源端设备响应于对第一显示屏的熄屏操作,将第一显示屏熄屏。In step 1602, the source device turns off the first display screen in response to the turn-off operation on the first display screen.
步骤1603,源端设备在将第一显示屏熄屏后,判断智能投屏功能是否已开启,若智能投屏功能已开启,则执行步骤1604,若智能投屏功能未开启,则本流程结束。Step 1603: After turning off the first display screen, the source device judges whether the smart screen projection function is turned on. If the smart screen projection function is turned on, step 1604 is executed. If the smart screen projection function is not turned on, the process ends .
步骤1604,源端设备判断第一显示屏是否被遮挡,若第一显示屏被遮挡,则本流结束。若第一显示屏未被遮挡,则执行步骤1605。Step 1604: The source device judges whether the first display screen is blocked. If the first display screen is blocked, the flow ends. If the first display screen is not blocked, step 1605 is executed.
步骤1605,源端设备从当前运行的一个应用程序中,确定目标应用程序。其中,源端设备从当前运行的一个应用程序中确定目标应用程序的具体实现方式可以参见步骤803中的相关介绍,在此不再赘述。Step 1605: The source device determines the target application from a currently running application. Among them, the source-end device determines the specific implementation manner of the target application from a currently running application, please refer to the related introduction in step 803, which will not be repeated here.
步骤1606,源端设备从目标应用程序中获取投屏内容,并将该投屏内容发送给目标端设备。其中,步骤1606的相关实现方式可以参见步骤804的相关实现方式,在此不再赘述。Step 1606: The source device obtains the screencast content from the target application, and sends the screencast content to the target device. For the relevant implementation of step 1606, refer to the relevant implementation of step 804, which will not be repeated here.
需要说明的是,源端设备可以在执行步骤1602后,跳过步骤1603和步骤1604,执行步骤1605和步骤1606。It should be noted that after performing step 1602, the source device may skip step 1603 and step 1604, and perform step 1605 and step 1606.
在另一些实施例中,作为步骤1605和步骤16076的替换步骤,在步骤1602或者步骤1604之后,该方法还可以包括:In other embodiments, as an alternative step of step 1605 and step 16076, after step 1602 or step 1604, the method may further include:
步骤1607,源端设备在第一显示屏的部分区域上显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识。Step 1607: The source device displays the identification of at least one currently running application supporting the screen projection function and the identification of at least one electronic device for receiving screen projection content on a partial area of the first display screen.
需要说明的是,本申请实施例中,用户可以根据需要设置在第一显示屏上用于显示当前运行的至少一个支持投屏功能的应用程序的标识、以及显示至少一个用于接收投屏内容的电子设备的标识的区域的大小和位置,或者,在第一显示屏上用于显示当前运行的至少一个支持投屏功能的应用程序的标识、以及显示至少一个用于接收投屏内容的电子设备的标识的区域的大小和位置是源端设备在出厂之前设置好的,对此不作限定。示例的,如图17所示源端设备在第一显示屏141的区域1700上显示当前运行的至少一个支持投屏功能的应用程序的标识;以及在第一显示屏141的区域1700上显示至少一个用于接收投屏内容的电子设备的标识。具体的,在第一显示屏的部分区域显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识的方式可以参见示例一中的相关介绍,在此不再赘述。It should be noted that, in the embodiment of the present application, the user can set on the first display screen as needed to display the identification of at least one currently running application that supports the projection function, and display at least one for receiving projection content. The size and position of the area of the identification of the electronic device, or, on the first display screen, used to display the identification of at least one currently running application program supporting the screen projection function, and display at least one electronic device for receiving screen projection content The size and location of the area identified by the device are set by the source device before leaving the factory, and there is no limitation on this. For example, as shown in FIG. 17, the source device displays the identification of at least one currently running application supporting the projection function on the area 1700 of the first display screen 141; and displays at least An identification of an electronic device used to receive screencast content. Specifically, the display of the identification of at least one currently running application supporting the screen projection function in a partial area of the first display screen, and the manner of displaying the identification of at least one electronic device for receiving screen projection content can be referred to in Example 1. Relevant introduction will not be repeated here.
进一步的,源端设备还可以在第一显示屏的部分区域上显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识时,在第一显示屏上还显示时间和日期等。Further, the source device may also display the identification of at least one currently running application supporting the screen projection function on a partial area of the first display screen, and when displaying the identification of at least one electronic device for receiving screen projection content, The time and date are also displayed on the first display screen.
步骤1608,源端设备接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中一个应用程序的标识后,从该用户选中的应用程序的标识所标识的应用程序中获取投屏内容,以及将投屏内容发送到用户从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识所标识的电子设备上。Step 1608: After the source device receives the user’s selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content.
需要说明的是,本申请实施例中,用户可以在第一显示屏熄屏时,对在第一显示屏的部分区域上显示的应用程序的标识和电子设备的标识进行相应的操作,有助于减少用户操作的步骤。It should be noted that in this embodiment of the application, the user can perform corresponding operations on the identification of the application program and the identification of the electronic device displayed on a partial area of the first display screen when the first display screen is turned off, which is helpful To reduce the steps of user operation.
进一步的,步骤1608中,源端设备当接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中的一个应用程序的标识、和从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识后,或者,源端设备在确定用于接收投屏内容的目标端设备后,在第一显示屏的部分区域上显示投送中的用户界面,例如,如图13所示的用户界面。Further, in step 1608, when the source-end device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device used to receive screen projection content After the identification of the electronic device selected in the identification of the device, or after the source device determines the target device for receiving the screened content, it displays the user interface being posted on a part of the first display screen, for example, The user interface shown in Figure 13.
又进一步的,基于步骤1601~步骤1606,或者,基于步骤1601、1602、1603、1604以及步骤1607~步骤1608,源端设备当将投屏内容发送给目标端设备成功后,在第一显示屏的部分区域上显示控制界面。其中,具体在第一显示屏的部分区域上显示控制界面的相关介绍可以参见示例一中在外屏上显示控制界面的相关介绍。Still further, based on steps 1601 to 1606, or based on steps 1601, 1602, 1603, 1604, and steps 1607 to 1608, when the source device successfully sends the projected content to the target device, the first display screen The control interface is displayed on part of the area. Among them, for the specific introduction of displaying the control interface on a partial area of the first display screen, please refer to the related introduction of displaying the control interface on the external screen in Example 1.
还需要说明的是,第一显示屏上用于显示控制界面的区域、和步骤1607中用于显示应用程序的标识和电子设备的标识的区域可以相同,也可以不同,对此不作限定。It should also be noted that the area used to display the control interface on the first display screen and the area used to display the identification of the application program and the identification of the electronic device in step 1607 may be the same or different, which is not limited.
在一些实施例中,基于步骤1601~步骤1606,或者,基于步骤1601、1602、1603、1604、以及步骤1607~步骤1608,源端设备将投屏内容发送给目标端设备后,若接收到用户重新使用第一显示屏操作(例如解锁操作),则响应于接收到用户对第一显示屏的解锁操作,则不再向目标端设备发送投屏内容,在第一显示屏上显示该投屏内容所在的应用程序的用户界面。其中,用户对第一显示屏的解锁操作可以为在输入指纹的操作、输入密码的操作等,对此不作限定。In some embodiments, based on steps 1601 to 1606, or, based on steps 1601, 1602, 1603, 1604, and steps 1607 to 1608, after the source device sends the screened content to the target device, if the user receives Reuse the first display screen operation (for example, unlocking operation), in response to receiving the user's unlocking operation on the first display screen, the screen projection content is no longer sent to the target device, and the screen projection is displayed on the first display screen The user interface of the application where the content is located. The unlocking operation of the user on the first display screen may be an operation of inputting a fingerprint, an operation of inputting a password, etc., which is not limited.
例如,在电子设备的第一显示屏熄屏后,将爱奇艺的用户界面上的视频投送到智能电视上,当电子设备的第一显示屏解锁后,则停止投屏,并将爱奇艺的用户界面映射到第一显示屏上进行显示。For example, after the first display screen of the electronic device is turned off, the video on the user interface of iQiyi is sent to the smart TV. When the first display screen of the electronic device is unlocked, the screen projection is stopped and the love The user interface of Qiyi is mapped to the first display screen for display.
进一步的,基于步骤1601~步骤1606,或者,基于步骤1601、1602、1603、1604以及步骤1607~步骤1608,目标端设备接收到源端设备发送的投屏内容后,可以对投屏内容进行裁剪或者重新布局后,在目标端设备上进行呈现。示例的,也可以是源端设备在发送投屏内容之前,根据目标端设备的设备属性(例如分辨率、触控能力等),对从目标应用程序中获取的内容进行相应的裁剪或者重新布局为适应目标端设备呈现的投屏内容,然后将投屏内容发送给目标端设备。从而有助于使得目标端设备能够正常呈现投屏内容。Further, based on steps 1601 to 1606, or based on steps 1601, 1602, 1603, 1604, and steps 1607 to 1608, after the target device receives the screen content sent by the source device, it can crop the screen content Or after re-layout, it is presented on the target device. For example, the source device can also crop or re-layout the content obtained from the target application according to the device attributes (such as resolution, touch capability, etc.) of the target device before sending the projected content In order to adapt to the projection content presented by the target device, the projection content is then sent to the target device. This helps to enable the target device to display the projected content normally.
示例三:Example three:
与实施例二相比,源端设备为包括第一显示屏和第二显示屏的电子设备。例如,源端设备的第一显示屏可以为图4A所示的第一显示屏141,位于源端设备的正面,源端设备第 二显示屏可以如图4B所示的第二显示屏142,位于源端设备的背面。Compared with the second embodiment, the source device is an electronic device including a first display screen and a second display screen. For example, the first display screen of the source device may be the first display screen 141 shown in FIG. 4A, which is located on the front of the source device, and the second display screen of the source device may be the second display screen 142 shown in FIG. 4B. Located on the back of the source device.
示例的,如图18所示,为本申请实施例的另一种投屏方法的流程示意图,具体包括以下步骤1601、步骤1602,并在执行步骤1602后,还执行以下步骤:For example, as shown in FIG. 18, it is a schematic flowchart of another screen projection method according to an embodiment of this application, which specifically includes the following steps 1601 and 1602, and after performing step 1602, the following steps are also performed:
步骤1803,源端设备在对第一显示屏熄屏后,判断智能投屏功能是否已开启,若智能投屏功能已开启,则执行步骤1804,若智能投屏功能未开启,则本流程结束。Step 1803: After turning off the first display screen, the source device judges whether the smart screen projection function is turned on. If the smart screen projection function is turned on, step 1804 is executed. If the smart screen projection function is not turned on, the process ends .
步骤1804,源端设备判断第一显示屏和第二显示屏是否被遮挡,若第一显示屏和第二显示屏均被遮挡,则本流结束。若第一显示屏或第二显示屏其中一个未被遮挡,则执行步骤1805。Step 1804: The source device judges whether the first display screen and the second display screen are blocked. If both the first display screen and the second display screen are blocked, the flow ends. If one of the first display screen or the second display screen is not blocked, step 1805 is executed.
示例的,源端设备先判断第二显示屏是否被遮挡,若第二显示屏未被遮挡,则执行步骤1805,若第二显示屏被遮挡,则再判断第一显示屏是否被遮挡,若第一显示屏未被遮挡,则执行步骤1805,若第一显示屏被遮挡,则本流程结束。For example, the source device first determines whether the second display screen is blocked. If the second display screen is not blocked, then step 1805 is executed. If the second display screen is blocked, then it determines whether the first display screen is blocked. If the first display screen is not blocked, step 1805 is executed. If the first display screen is blocked, the process ends.
步骤1805,源端设备从当前运行的一个应用程序中,确定目标应用程序。其中,源端设备从当前运行的一个应用程序中确定目标应用程序的具体实现方式可以参见步骤803中的相关介绍,在此不再赘述。Step 1805: The source device determines the target application from a currently running application. Among them, the source-end device determines the specific implementation manner of the target application from a currently running application, please refer to the related introduction in step 803, which will not be repeated here.
步骤1806,源端设备从目标应用程序中获取投屏内容,并将该投屏内容发送给目标端设备。其中,步骤1806的相关实现方式可以参见步骤604的相关实现方式,在此不再赘述。Step 1806: The source device obtains the screencast content from the target application, and sends the screencast content to the target device. For the relevant implementation of step 1806, refer to the relevant implementation of step 604, which will not be repeated here.
需要说明的是,源端设备可以在执行步骤1602后,跳过步骤1803和步骤1804,执行步骤1805和步骤1806。It should be noted that after performing step 1602, the source device may skip step 1803 and step 1804, and perform step 1805 and step 1806.
在另一些实施例中,作为步骤1805和步骤1806的替换步骤,在步骤1803或者步骤1804之后,该方法还可以包括:In other embodiments, as an alternative step of step 1805 and step 1806, after step 1803 or step 1804, the method may further include:
步骤1807,源端设备当第二显示屏未被遮挡时,在第二显示屏上显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识。源端设备当第二显示屏被遮挡、第一显示屏未被遮挡时,第一显示屏的部分区域上显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识。Step 1807: When the second display screen is not blocked, the source device displays the identification of at least one currently running application program supporting the projection function on the second display screen, and displays at least one electronic device for receiving projection content. The identification of the device. When the second display screen of the source device is blocked and the first display screen is not blocked, a partial area of the first display screen displays the identification of at least one currently running application that supports the projection function, and displays at least one The identification of the electronic device that receives the projected content.
需要说明的是,在第二显示屏上显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识的具体实现方式,可以参见示例一中的相关说明,在此不再赘述。在第一显示屏的部分区域显示当前运行的至少一个支持投屏功能的应用程序的标识,以及显示至少一个用于接收投屏内容的电子设备的标识的方式可以参见示例二中的相关介绍,在此不再赘述。It should be noted that the specific implementation of displaying the identification of at least one currently running application supporting the screen projection function and displaying the identification of at least one electronic device for receiving screen projection content on the second display screen can be found in the example The related description of the first one will not be repeated here. In a partial area of the first display screen, the identification of at least one currently running application that supports the screen projection function is displayed, and the way of displaying the identification of at least one electronic device for receiving screen projection content can refer to the related introduction in Example 2. I will not repeat them here.
步骤1808,源端设备接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中一个应用程序的标识后,从该用户选中的应用程序的标识所标识的应用程序中获取投屏内容,以及将投屏内容发送到用户从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识所标识的电子设备上。Step 1808: After the source device receives the user’s selection of an application identifier from the identifiers of at least one currently running application that supports the screen projection function, it obtains the vote from the application identified by the identifier of the application selected by the user. Screen content, and send the screencast content to the electronic device identified by the identification of the electronic device selected by the user from the identifications of at least one electronic device for receiving the screencast content.
进一步的,步骤1808中,源端设备当接收到用户从当前运行的至少一个支持投屏功能的应用程序的标识中选中的一个应用程序的标识、和从至少一个用于接收投屏内容的电子设备的标识中选中的电子设备的标识后,或者,源端设备在确定用于接收投屏内容的目标端设备后,在第一显示屏的部分区域上显示投送中的用户界面,例如,如图13所示的用户界面。Further, in step 1808, when the source-end device receives the identifier of an application selected by the user from the identifiers of at least one currently running application supporting the screen projection function, and from at least one electronic device for receiving screen projection content After the identification of the electronic device selected in the identification of the device, or after the source device determines the target device for receiving the screened content, it displays the user interface being posted on a part of the first display screen, for example, The user interface shown in Figure 13.
又进一步的,基于步骤1601、1602以及步骤1803~步骤1806,或者,基于步骤1601、1602、1803、1804以及步骤1807~步骤1808,源端设备当将投屏内容发送给目标端设备成功后,在第一显示屏的部分区域或者第二显示屏上显示控制界面。其中,控制界面上包括具有触控功能的虚拟按钮。需要说明的是,在第一显示屏的部分区域或者第二显示屏上显示控制界面的具体实现方式可以参见示例一中的相关介绍。Furthermore, based on steps 1601, 1602, and steps 1803 to 1806, or, based on steps 1601, 1602, 1803, 1804, and steps 1807 to 1808, when the source device successfully sends the projected content to the target device, The control interface is displayed on a partial area of the first display screen or on the second display screen. Wherein, the control interface includes virtual buttons with touch function. It should be noted that, for the specific implementation of displaying the control interface on a partial area of the first display screen or on the second display screen, refer to the related introduction in Example 1.
还需要说明的是,第一显示屏上用于显示控制界面的区域、和步骤1808中用于显示应用程序的标识和电子设备的标识的区域可以相同,也可以不同,对此不作限定。It should also be noted that the area used to display the control interface on the first display screen and the area used to display the identification of the application program and the identification of the electronic device in step 1808 may be the same or different, which is not limited.
示例四:Example four:
源端设备为包括翻盖的电子设备,例如翻盖手机,如图19所示,包括内屏和外屏,其中内屏位于手机盖的内侧,图中未示出,外屏位于手机盖的外侧。下面以源端设备为翻盖手机为例,在这种场景下,与示例一中源端设备为屏幕可折叠的电子设备相比,投屏方法的不同之处仅在于,在源端设备为翻盖手机时,源端设备接收到用户合上手机盖的操作,对内屏熄屏。源端设备当打开手机盖后,可以响应于用户输出密码或长按预设按键(例如#号键或*键或组合按键等)对内屏进行解锁。即在翻盖手机的场景下,源端设备在正常使用内屏时,接收到用户合上手机盖的操作,则响应于用户合上手机盖的对内屏锁屏,然后触发投屏,具体的可以参见示例一中,源端设备执行步骤802之后的步骤,在此不再赘述。The source device is an electronic device that includes a flip cover, such as a flip phone. As shown in Figure 19, it includes an inner screen and an outer screen. The inner screen is located inside the mobile phone cover, not shown in the figure, and the outer screen is located outside the mobile phone cover. The following takes the source device as a flip phone as an example. In this scenario, compared with the electronic device with a foldable screen in the example 1, the only difference in the projection method is that the source device is a flip phone. When using a mobile phone, the source device receives the user's operation to close the cover of the mobile phone and turns off the internal screen. After opening the cover of the mobile phone, the source device can unlock the internal screen in response to the user outputting a password or long pressing a preset key (for example, # key or * key or combination key, etc.). That is, in the scenario of a flip phone, when the source device receives the user's operation to close the phone cover when using the internal screen normally, it will respond to the user closing the phone cover to lock the internal screen, and then trigger the screen projection. Refer to Example 1, where the source device executes the steps after step 802, which will not be repeated here.
示例五:Example five:
源端设备还可以为安装有智能保护套的电子设备,以源端设备为电子设备10为例,例如如图20所示,电子设备10包括第一显示屏141,将电子设备10卡到智能保护套20中,其中智能保护套20包括可视化区域18。其中,用户合上智能保护套20的盖子16后,可以如图20中的C所示。用户打开智能保护套20的盖子16后,可以如图20中的B所示。The source device may also be an electronic device installed with a smart protective cover. Taking the source device as the electronic device 10 as an example, for example, as shown in FIG. 20, the electronic device 10 includes a first display screen 141, and the electronic device 10 is carded to the smart In the protective cover 20, the smart protective cover 20 includes a visualization area 18. Among them, after the user closes the cover 16 of the smart protective cover 20, it can be as shown in C in FIG. 20. After the user opens the cover 16 of the smart protective sleeve 20, it can be shown as B in FIG. 20.
在这种场景下,与示例一中源端设备为屏幕可折叠的电子设备相比,投屏方法的不同之处仅在于,在安装有智能保护套的电子设备的场景下,源端设备接收到用户合上智能保护套的盖子的操作,对第一显示屏熄屏。源端设备当打开智能保护套的盖子后,可以响应于用户输出密码、指纹等,对第一显示屏进行解锁。即在安装有智能保护套的电子设备的场景下,源端设备在正常使用第一显示屏时,接收到用户合上智能保护套的盖子的操作,则响应于用户合上手机盖的对第一显示屏锁屏,然后触发投屏,具体的可以参见示例一中,源端设备执行步骤602之后的步骤,在此不再赘述。In this scenario, compared with the electronic device with a foldable screen in the source device in Example 1, the only difference in the screen projection method is that in the scenario of an electronic device with a smart protective cover, the source device receives When the user closes the cover of the smart protective sleeve, the first display screen is turned off. After opening the cover of the smart protective cover, the source device can unlock the first display screen in response to the user's output of a password, fingerprint, etc. That is, in the scenario of an electronic device equipped with a smart protective cover, when the source device receives the user's operation to close the cover of the smart protective cover when using the first display screen normally, it will respond to the user's closing of the mobile phone cover. A screen locks the screen and then triggers screen projection. For details, please refer to Example 1, where the source device executes the steps after step 602, which will not be repeated here.
需要说明的是,在这种场景下,应用程序的标识、电子设备的标识、以及控制界面可以在智能保护套20的可视化区域17内显示,具体显示方式可以参见示例一中的相关介绍,在此不再赘述。It should be noted that in this scenario, the identification of the application, the identification of the electronic device, and the control interface can be displayed in the visualization area 17 of the smart protective cover 20. For the specific display mode, please refer to the related introduction in Example 1. This will not be repeated here.
此外,在另一些实施例中,源端设备当无需向用户提示应用程序的标识、电子设备的标识或控制界面时,智能保护套可以不包括可视化区域。In addition, in other embodiments, when the source device does not need to prompt the user with the identification of the application program, the identification of the electronic device, or the control interface, the smart cover may not include the visualization area.
示例六Example 6
源端设备还可以为另一种屏幕可折叠的电子设备。其中,源端设备包括第一显示屏,第一显示屏为可折叠屏幕。示例的,源端设备的第一显示屏处于展开状态时可以如图5A所示的第一显示屏141,源端设备的第一显示屏处于闭合状态时可以如图5B所示,当如图 5B所示第一显示屏处于闭合状态时,源端设备可以通过第一显示屏141中的区域500向用户呈现相应的界面等。在这种场景下,源端设备的第一显示屏在展开状态下,处于使用中,接收到将第一显示屏由展开状态折叠为闭合状态的操作,触发向目标端设备进行投屏,具体的投屏方法可以参见示例一中的相关介绍。示例的,源端设备接收到将第一显示屏141由展开状态折叠为闭合状态的操作,如果投屏失败,则可以将接收到该操作之前第一显示屏141上显示的内容映射到折叠后第一显示屏141的区域500内显示,如果投屏成功,则可以在第一显示屏141的区域1500内显示控制界面,其中,在第一显示屏141的区域1500内显示控制界面的方式可以参见示例一中的相关介绍。The source device can also be another electronic device with a foldable screen. The source device includes a first display screen, and the first display screen is a foldable screen. For example, when the first display screen of the source device is in the unfolded state, the first display screen 141 as shown in FIG. 5A may be used, and when the first display screen of the source device is in the closed state, it may be as shown in FIG. 5B. When the first display screen shown in 5B is in the closed state, the source device can present a corresponding interface to the user through the area 500 in the first display screen 141. In this scenario, the first display screen of the source device is in the unfolded state and is in use, and an operation to fold the first display screen from the unfolded state to the closed state is received, triggering a screen projection to the target device. See the related introduction in Example 1 for the projection method of. For example, the source device receives an operation to fold the first display screen 141 from the unfolded state to the closed state. If the projection fails, it can map the content displayed on the first display screen 141 before receiving the operation to the folded state. It is displayed in the area 500 of the first display screen 141. If the projection is successful, the control interface can be displayed in the area 1500 of the first display screen 141. The control interface can be displayed in the area 1500 of the first display screen 141. See the related introduction in Example 1.
进一步的,在另一些实施例中,源端设备的第一显示屏在闭合状态下,接收到将第一显示屏由闭合状态展开为展开状态的操作,并响应于上述操作,停止投屏。示例的,源端设备停止投屏后,可以自动在第一显示屏上显示投屏内容所在用户界面。Further, in other embodiments, when the first display screen of the source device is in the closed state, it receives an operation to expand the first display screen from the closed state to the unfolded state, and in response to the foregoing operation, stops projection. For example, after the source device stops the screen projection, it can automatically display the user interface where the screen projection content is located on the first display screen.
示例七Example Seven
源端设备还可以为屏幕可伸缩的电子设备,包括第一显示屏,其中第一显示屏为可伸缩的显示屏。示例的,源端设备的第一显示屏伸展后的状态可以如图6A所示,第一显示屏收缩后的状态可以如图6B所示。在这种场景下,源端设备的第一显示屏在伸展状态下,处于使用中,接收到对第一显示屏的收缩操作,触发向目标端设备进行投屏,具体的投屏方法可以参见示例一中的相关介绍。示例的,源端设备接收到对第一显示屏141的收缩操作后,如果投屏失败,则可以将接收到该操作之前第一显示屏141上显示的内容映射到收缩后第一显示屏141的区域600内显示,如果投屏成功,则可以在第一显示屏141的区域600内显示控制界面,其中,在第一显示屏141的区域600内显示控制界面的方式可以参见示例一中的相关介绍。The source device may also be an electronic device with a retractable screen, including a first display screen, where the first display screen is a retractable display screen. For example, the state of the first display screen of the source device after being stretched may be as shown in FIG. 6A, and the state of the first display screen after being contracted may be as shown in FIG. 6B. In this scenario, the first display screen of the source device is in the extended state and is in use, and the contraction operation of the first display screen is received, which triggers projection to the target device. For the specific projection method, see Related introduction in example one. For example, after the source device receives the shrinking operation on the first display screen 141, if the projection fails, it may map the content displayed on the first display screen 141 before receiving the operation to the shrinking first display screen 141 If the projection is successful, the control interface can be displayed in the area 600 of the first display screen 141. For the manner of displaying the control interface in the area 600 of the first display screen 141, see Example 1 Related introduction.
进一步的,在另一些实施例中,源端设备的第一显示屏在收缩后的状态下,接收到对第一显示屏的伸展操作,并响应于上述操作,停止投屏。示例的,源端设备停止投屏后,可以自动在第一显示屏上显示投屏内容所在用户界面。Further, in some other embodiments, the first display screen of the source device receives the stretching operation of the first display screen in the retracted state, and in response to the above operation, the screen projection is stopped. For example, after the source device stops the screen projection, it can automatically display the user interface where the screen projection content is located on the first display screen.
上述各个实施例可以单独使用,也可以相互结合使用,以实现不同的功能。The above embodiments can be used alone or in combination with each other to achieve different functions.
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject. In order to realize the functions in the methods provided in the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
基于相同的构思,图21所示为本申请提供的一种设备2100,用于执行图8、图16或图18所示的投屏方法。示例的,设备2100包括处理模块2101和收发模块2102。Based on the same concept, FIG. 21 shows a device 2100 provided by this application for executing the screen projection method shown in FIG. 8, FIG. 16, or FIG. 18. For example, the device 2100 includes a processing module 2101 and a transceiver module 2102.
示例的,处理模块2101用于检测用户操作,响应于用户操作触发收发模块2102将投屏内容发给目标端设备。For example, the processing module 2101 is configured to detect user operations, and in response to the user operations, trigger the transceiver module 2102 to send the screened content to the target device.
基于相同的构思,图22所示为本申请提供的一种设备2200。设备2200包括至少一个处理器2210、存储器2220和收发器2230。其中,处理器2210与存储器2220和收发器2230耦合,本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。本申请实施例中不限定上述收发器2230、处理器2210以及存储器2220之间的连接介质。例如,本申请实施例在 图22中以存储器2220、处理器2210以及收发器2230之间可以通过总线连接,所述总线可以分为地址总线、数据总线、控制总线等。Based on the same concept, FIG. 22 shows a device 2200 provided in this application. The device 2200 includes at least one processor 2210, a memory 2220, and a transceiver 2230. The processor 2210 is coupled with the memory 2220 and the transceiver 2230. The coupling in the embodiment of the present application is an indirect coupling or a communication connection between devices, units or modules, which can be electrical, mechanical or other forms for the device , Information exchange between units or modules. The embodiment of the present application does not limit the connection medium between the transceiver 2230, the processor 2210, and the memory 2220. For example, in the embodiment of the present application in FIG. 22, the memory 2220, the processor 2210, and the transceiver 2230 may be connected by a bus, and the bus may be divided into an address bus, a data bus, and a control bus.
具体的,存储器2220用于存储程序指令。Specifically, the memory 2220 is used to store program instructions.
收发器2230用于向目标端设备发送投屏内容、控制指令等。The transceiver 2230 is used to send screen content, control instructions, etc. to the target device.
处理器2210用于调用存储器2220中存储的程序指令,使得设备2200执行图8、图16或图18所示的投屏方法。The processor 2210 is configured to call program instructions stored in the memory 2220, so that the device 2200 executes the screen projection method shown in FIG. 8, FIG. 16, or FIG. 18.
在本申请实施例中,处理器2210可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment of the present application, the processor 2210 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器2220可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In the embodiment of the present application, the memory 2220 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory (volatile memory). For example, random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
应理解,该设备1300和设备2200可以用于实现本申请实施例的图8、图16或图18所示的方法,相关特征可以参照上文,此处不再赘述。It should be understood that the device 1300 and the device 2200 may be used to implement the method shown in FIG. 8, FIG. 16, or FIG. 18 in the embodiment of the present application. For related features, refer to the above, and details are not described herein again.
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Those skilled in the art can clearly understand that the embodiments of the present application can be implemented by hardware, firmware, or a combination of them. When implemented by software, the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a computer. Take this as an example but not limited to: computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD- ROM) or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other media that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer. In addition. Any connection can suitably become a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless and microwave are included in the fixing of the media. As used in the embodiments of this application, disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (digital video discs, DVDs), floppy discs, and Blu-ray discs. Disks usually copy data magnetically, while disks use lasers to copy data optically. The above combination should also be included in the protection scope of the computer-readable medium.
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In short, the above descriptions are only examples of the present application, and are not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.

Claims (14)

  1. 一种投屏方法,其特征在于,所述方法应用于第一电子设备,所述第一电子设备包括内屏和外屏,所述内屏为可折叠屏幕,所述方法包括:A screen projection method, characterized in that the method is applied to a first electronic device, the first electronic device includes an inner screen and an outer screen, the inner screen is a foldable screen, and the method includes:
    第一电子设备接收到将所述内屏由展开状态折叠为闭合状态的操作;The first electronic device receives an operation of folding the inner screen from an unfolded state to a closed state;
    响应于将所述内屏由展开状态折叠为闭合状态的操作,所述第一电子设备将所述内屏锁屏,并从当前运行的至少一个应用程序中的目标应用程序中获取投屏内容;In response to the operation of folding the inner screen from the expanded state to the closed state, the first electronic device locks the inner screen, and obtains the screencast content from the target application in at least one currently running application ;
    所述第一电子设备将所述投屏内容发送给第二电子设备。The first electronic device sends the projected content to the second electronic device.
  2. 如权利要求1所述的方法,其特征在于,所述响应于将所述内屏由展开状态折叠为闭合状态的操作,将所述第一电子设备的内屏锁屏之后,从当前运行的至少一个应用程序的目标应用程序中获取投屏内容之前,所述方法还包括:The method according to claim 1, wherein, in response to the operation of folding the inner screen from the unfolded state to the closed state, after the inner screen of the first electronic device is locked, the current running Before acquiring the screencast content in the target application of at least one application, the method further includes:
    确定智能投屏功能已开启;和/或Make sure that the smart screen projection function is turned on; and/or
    向用户提示是否允许投屏,并接收到用户允许投屏的操作;和/或,Prompt the user whether to allow screen projection, and receive the user's permission to cast screen; and/or,
    确定所述外屏未被遮挡。It is determined that the external screen is not blocked.
  3. 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    若所述外屏被遮挡,则所述第一电子设备不再投屏。If the external screen is blocked, the first electronic device no longer casts a screen.
  4. 如权利要求1至3任一所述的方法,其特征在于,所述第一电子设备在将所述投屏内容发送给第二电子设备之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein, after the first electronic device sends the projected content to the second electronic device, the method further comprises:
    所述第一电子设备在所述外屏上显示控制界面,所述控制界面用于实现对所述目标应用程序的快捷操作。The first electronic device displays a control interface on the external screen, and the control interface is used to implement shortcut operations on the target application.
  5. 如权利要求4所述的方法,其特征在于,所述第一电子设备在所述外屏上显示控制界面,包括:The method according to claim 4, wherein the first electronic device displaying a control interface on the external screen comprises:
    所述第一电子设备识别所述目标应用程序中的具有触控功能的虚拟按钮,并根据所述具有触控功能的虚拟按钮,在所述外屏上显示所述控制界面;和/或,The first electronic device recognizes a virtual button with a touch function in the target application, and displays the control interface on the external screen according to the virtual button with a touch function; and/or,
    所述第一电子设备从预先设置的与应用程序的类型对应的控制界面中,确定与所述目标应用程序的类型对应的控制界面,并在所述外屏上显示与所述目标应用程序的类型对应的控制界面。The first electronic device determines the control interface corresponding to the type of the target application from the preset control interface corresponding to the type of the application, and displays the control interface corresponding to the target application on the external screen. The control interface corresponding to the type.
  6. 如权利要求1至5任一所述的方法,其特征在于,所述第一电子设备从当前运行的至少一个应用程序中的目标应用程序中获取投屏内容之前,还包括:The method according to any one of claims 1 to 5, wherein before the first electronic device obtains the projected content from a target application in at least one currently running application, the method further comprises:
    所述第一电子设备在所述外屏上显示当前运行的至少一个应用程序中支持投屏功能的至少一个应用程序的标识;Displaying, on the external screen, the first electronic device an identifier of at least one application that supports a screen projection function among at least one currently running application;
    所述第一电子设备接收到用户选中外屏上显示的应用程序的标识的操作;The first electronic device receives the user's operation of selecting the identifier of the application program displayed on the external screen;
    响应于所述用户选中外屏上显示的应用程序的标识的操作,确定所述目标应用程序为用户选中的应用程序的标识所标识的应用程序。In response to the operation of the user selecting the identification of the application displayed on the external screen, it is determined that the target application is the application identified by the identification of the application selected by the user.
  7. 如权利要求1至6任一所述的方法,其特征在于,所述第一电子设备将所述第一电子设备的内屏锁屏之后,将所述投屏内容发送给所述第二电子设备之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein after the first electronic device locks the inner screen of the first electronic device, the screen content is sent to the second electronic device. Before the device, the method further includes:
    所述第一电子设备获取至少一个电子设备的标识;Acquiring the identification of at least one electronic device by the first electronic device;
    所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,所述目标电子设备的标识用于标识所述第二电子设备。The first electronic device determines the identification of the target electronic device from the identification of the at least one electronic device, and the identification of the target electronic device is used to identify the second electronic device.
  8. 如权利要求7所述的方法,其特征在于,所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,包括:8. The method of claim 7, wherein the first electronic device determines the identification of the target electronic device from the identification of the at least one electronic device, comprising:
    所述第一电子设备从所述至少一个电子设备的标识中,确定用于标识私有电子设备的标识为目标电子设备的标识。The first electronic device determines, from the identification of the at least one electronic device, the identification used to identify the private electronic device as the identification of the target electronic device.
  9. 如权利要求7所述的方法,其特征在于,所述第一电子设备从所述至少一个电子设备的标识中,确定目标电子设备的标识,包括:8. The method of claim 7, wherein the first electronic device determines the identification of the target electronic device from the identification of the at least one electronic device, comprising:
    所述第一电子设备在所述外屏上显示至少一个电子设备的标识;The first electronic device displays the identification of at least one electronic device on the external screen;
    所第一电子设备接收到用户选中所述外屏上显示的电子设备的标识的操作;The first electronic device receives an operation that the user selects the identification of the electronic device displayed on the external screen;
    所述第一电子设备将所述用户选中的电子设备的标识作为所述目标电子设备的标识。The first electronic device uses the identification of the electronic device selected by the user as the identification of the target electronic device.
  10. 如权利要求9所述的方法,其特征在于,所述至少一个电子设备的标识中每个标识用于标识公共电子设备。The method according to claim 9, wherein each of the identifications of the at least one electronic device is used to identify a public electronic device.
  11. 如权利要求1至10任一所述的方法,其特征在于,所述第一电子设备将所述投屏内容发送到第二电子设备之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein after the first electronic device sends the screencast content to the second electronic device, the method further comprises:
    所述第一电子设备接收到将所述内屏由闭合状态展开为展开状态的操作;The first electronic device receives an operation to expand the inner screen from a closed state to an expanded state;
    响应于所述将所述内屏由闭合状态展开为展开状态的操作,所述第一电子设备停止投屏,在所述内屏上显示投屏内容。In response to the operation of expanding the inner screen from the closed state to the expanded state, the first electronic device stops the screen projection, and displays the projection content on the inner screen.
  12. 一种设备,其特征在于,所述设备包括处理器和存储器;A device, characterized in that the device includes a processor and a memory;
    所述存储器中存储有程序指令;Program instructions are stored in the memory;
    当所述程序指令被执行时,使得所述设备执行如权利要求1至11任一所述的方法。When the program instructions are executed, the device is caused to execute the method according to any one of claims 1 to 11.
  13. 一种芯片,其特征在于,所述芯片与电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现如权利要求1至11任一所述的方法。A chip, characterized in that the chip is coupled with a memory in an electronic device, so that the chip invokes program instructions stored in the memory during operation to implement the method according to any one of claims 1 to 11.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括程序指令,当所述程序指令在设备上运行时,使得所述设备执行如权利要求1至11任一项所述的方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium includes program instructions, when the program instructions run on a device, the device executes any one of claims 1 to 11 Methods.
PCT/CN2020/106096 2019-07-31 2020-07-31 Screen projection method and electronic device WO2021018274A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910704758.6 2019-07-31
CN201910704758.6A CN112394891B (en) 2019-07-31 2019-07-31 Screen projection method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021018274A1 true WO2021018274A1 (en) 2021-02-04

Family

ID=74230363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106096 WO2021018274A1 (en) 2019-07-31 2020-07-31 Screen projection method and electronic device

Country Status (2)

Country Link
CN (2) CN112394891B (en)
WO (1) WO2021018274A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089940A (en) * 2021-11-18 2022-02-25 佛吉亚歌乐电子(丰城)有限公司 Screen projection method, device, equipment and storage medium
CN114428599A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection brightness control method and device, storage medium and screen projector
CN115964011A (en) * 2023-03-16 2023-04-14 深圳市湘凡科技有限公司 Method and related device for displaying application interface based on multi-screen cooperation
CN116048350A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Screen capturing method and electronic equipment

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131547A (en) * 2021-03-25 2022-09-30 华为技术有限公司 Method, device and system for image interception by VR/AR equipment
CN113259757A (en) * 2021-04-08 2021-08-13 读书郎教育科技有限公司 Method for video screen projection by being convenient and fast to be compatible with multiple applications
CN113138737B (en) 2021-04-16 2023-11-03 阿波罗智联(北京)科技有限公司 Display control method, device, equipment, medium and program product for screen-throwing scene
CN113268211B (en) * 2021-05-13 2023-05-12 维沃移动通信(杭州)有限公司 Image acquisition method, device, electronic equipment and storage medium
CN115373558A (en) * 2021-05-18 2022-11-22 广州视源电子科技股份有限公司 Screen projection method, device, equipment and storage medium
WO2023036082A1 (en) * 2021-09-09 2023-03-16 华为技术有限公司 System and method for displaying and controlling remote device task
CN115857850A (en) * 2021-09-26 2023-03-28 荣耀终端有限公司 Screen projection abnormity processing method and electronic equipment
CN114786058B (en) * 2022-04-27 2024-02-06 南京欧珀软件科技有限公司 Multimedia data display method, device, terminal and storage medium
CN117850644A (en) * 2022-09-30 2024-04-09 华为技术有限公司 Window switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140359493A1 (en) * 2013-05-30 2014-12-04 Samsung Electronics Co., Ltd. Method, storage medium, and electronic device for mirroring screen data
CN107659712A (en) * 2017-09-01 2018-02-02 咪咕视讯科技有限公司 A kind of method, apparatus and storage medium for throwing screen
CN108713185A (en) * 2016-03-02 2018-10-26 三星电子株式会社 Electronic device and its display and the method for sending image
CN109992231A (en) * 2019-03-28 2019-07-09 维沃移动通信有限公司 Throw screen method and terminal
CN110058828A (en) * 2019-04-01 2019-07-26 Oppo广东移动通信有限公司 Application program display methods, device, electronic equipment and storage medium
CN110308885A (en) * 2019-06-25 2019-10-08 维沃移动通信有限公司 A kind of throwing screen method and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9805198D0 (en) * 1998-03-11 1998-05-06 Maddock Alan Portable visual display device
JP2003101909A (en) * 2001-09-25 2003-04-04 Matsushita Electric Ind Co Ltd Portable electronic equipment and image display device
CN103369070A (en) * 2012-04-04 2013-10-23 朱洪来 Three-screen flip intelligent handset
US20140372896A1 (en) * 2013-06-14 2014-12-18 Microsoft Corporation User-defined shortcuts for actions above the lock screen
CN103399643A (en) * 2013-08-23 2013-11-20 深圳市金立通信设备有限公司 Application program starting method of flexible terminal and flexible terminal
CN107589973A (en) * 2017-08-29 2018-01-16 珠海格力电器股份有限公司 A kind of method, apparatus and electronic equipment for starting application
CN109871147B (en) * 2019-02-22 2020-12-01 华为技术有限公司 Touch screen response method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140359493A1 (en) * 2013-05-30 2014-12-04 Samsung Electronics Co., Ltd. Method, storage medium, and electronic device for mirroring screen data
CN108713185A (en) * 2016-03-02 2018-10-26 三星电子株式会社 Electronic device and its display and the method for sending image
CN107659712A (en) * 2017-09-01 2018-02-02 咪咕视讯科技有限公司 A kind of method, apparatus and storage medium for throwing screen
CN109992231A (en) * 2019-03-28 2019-07-09 维沃移动通信有限公司 Throw screen method and terminal
CN110058828A (en) * 2019-04-01 2019-07-26 Oppo广东移动通信有限公司 Application program display methods, device, electronic equipment and storage medium
CN110308885A (en) * 2019-06-25 2019-10-08 维沃移动通信有限公司 A kind of throwing screen method and mobile terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089940A (en) * 2021-11-18 2022-02-25 佛吉亚歌乐电子(丰城)有限公司 Screen projection method, device, equipment and storage medium
CN114089940B (en) * 2021-11-18 2023-11-17 佛吉亚歌乐电子(丰城)有限公司 Screen projection method, device, equipment and storage medium
CN114428599A (en) * 2022-01-30 2022-05-03 深圳创维-Rgb电子有限公司 Screen projection brightness control method and device, storage medium and screen projector
CN116048350A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Screen capturing method and electronic equipment
CN116048350B (en) * 2022-07-08 2023-09-08 荣耀终端有限公司 Screen capturing method and electronic equipment
CN115964011A (en) * 2023-03-16 2023-04-14 深圳市湘凡科技有限公司 Method and related device for displaying application interface based on multi-screen cooperation
CN115964011B (en) * 2023-03-16 2023-06-06 深圳市湘凡科技有限公司 Method and related device for displaying application interface based on multi-screen cooperation

Also Published As

Publication number Publication date
CN116185324A (en) 2023-05-30
CN112394891B (en) 2023-02-03
CN112394891A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
WO2021018274A1 (en) Screen projection method and electronic device
KR101757870B1 (en) Mobile terminal and control method therof
KR101668138B1 (en) Mobile device which automatically determines operating mode
JP6385459B2 (en) Control method and apparatus for audio reproduction
CN105491113B (en) Moving method, device and terminal
US11635873B2 (en) Information display method, graphical user interface, and terminal for displaying media interface information in a floating window
US11747953B2 (en) Display method and electronic device
US11435975B2 (en) Preview display method based on multi-angle and communication system
KR101901720B1 (en) Method for interworing with dummy device and an electronic device thereof
US20220318195A1 (en) Card Rendering Method and Electronic Device
KR20120062136A (en) Mobile terminal and control method therof
WO2022078061A1 (en) Video communication method and apparatus, electronic device and computer readable storage medium
CN104838352A (en) Action initiatiation in multi-face device
WO2021057673A1 (en) Image display method and electronic device
JP2017530493A (en) External device connection method and apparatus, program, and recording medium
WO2016015403A1 (en) Method and apparatus for accessing wi-fi network
US20200162871A1 (en) Electronic apparatus and method of outputting content by the electronic apparatus
WO2021036659A1 (en) Video recording method and electronic apparatus
KR20150130188A (en) Method for controlling a mobile terminal using fingerprint recognition and a mobile terminal thereof
US20230138804A1 (en) Enhanced video call method and system, and electronic device
EP4325338A1 (en) Display control method, electronic device, and computer storage medium
WO2020238448A1 (en) Permission management method and terminal
JP2023528384A (en) CONTENT SHARING METHOD, APPARATUS AND SYSTEM
KR20130001826A (en) Mobile terminal and control method therof
CN110263525B (en) Equipment configuration method and device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20848279

Country of ref document: EP

Kind code of ref document: A1