Search

EP-4312111-B1 - SCREEN PROJECTION METHOD, SCREEN PROJECTION APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND CHIP

EP4312111B1EP 4312111 B1EP4312111 B1EP 4312111B1EP-4312111-B1

Inventors

  • WANG, Xinghui
  • XIN, YING

Dates

Publication Date
20260506
Application Date
20221031

Claims (14)

  1. A screen projection method, performed by an electronic device which is connected with an external control device, comprising: in response to receiving a screen projection instruction triggered by a user, determining (S201) a virtual screen to be projected according to a target interface displayed by a target screen of the electronic device; projecting (S202) the virtual screen to a target screen projecting device; and in response to receiving a first control switching instruction triggered by the user, switching (S203) a control object of the external control device from the target screen to the virtual screen and setting a control object of a control component of the electronic device as the target screen; characterized in that prompt information for prompting that the control object of the external control device is switched to the virtual screen is displayed on the target screen after the control object of the external control device is switched from the target screen to the virtual screen.
  2. The method according to claim 1, wherein in response to receiving the first control switching instruction triggered by the user, switching (S203) the control object of the external control device from the target screen to the virtual screen comprises: acquiring, from the first control switching instruction, a screen identifier of the virtual screen; and switching the control object of the external control device from the target screen to the virtual screen according to the screen identifier.
  3. The method according to claim 1 or 2, wherein determining (S201) the virtual screen to be projected according to the target interface displayed by the target screen of the electronic device comprises: determining a screen projection object selected by the user from the target interface; generating a screen projection interface according to the screen projection object; and determining the virtual screen according to the screen projection interface, the virtual screen displaying the screen projection interface.
  4. The method according to any one of claims 1 to 3, further comprising: in response to receiving a first control event triggered by the user via the external control device, dispatching the first control event to the virtual screen.
  5. The method according to any one of claims 1 to 4, further comprising: in response to receiving a second control event triggered by the user through the control component of the electronic device, dispatching the second control event to the target screen.
  6. The method according to any one of claims 1 to 5, further comprising: in response to receiving a second control switching instruction triggered by the user, switching the control object of the external control device from the virtual screen to the target screen.
  7. An electronic device (400) connected with an external control device, the electronic device comprising: a processor (420); and a memory (404) for storing instructions executable by the processor(420); wherein the processor (420) is configured to: in response to receiving a screen projection instruction triggered by a user, determine a virtual screen to be projected according to a target interface displayed by a target screen of the electronic device; project the virtual screen to a target screen projecting device; and in response to receiving a first control switching instruction triggered by the user, switch a control object of the external control device from the target screen to the virtual screen and setting a control object of a control component of the electronic device as the target screen; characterized in that prompt information for prompting that the control object of the external control device is switched to the virtual screen is displayed on the target screen after the control object of the external control device is switched from the target screen to the virtual screen.
  8. The electronic device according to claim 7, wherein the processor (420) is further configured to: acquire, from the first control switching instruction, a screen identifier of the virtual screen; and switch the control object of the external control device from the target screen to the virtual screen according to the screen identifier.
  9. The electronic device according to claim 7 or 8, wherein the processor (420) is further configured to: determine a screen projection object selected by the user from the target interface; generate a screen projection interface according to the screen projection object; and determine the virtual screen according to the screen projection interface, the virtual screen displaying the screen projection interface.
  10. The electronic device according to any one of claims 7 to 9, wherein the processor (420) is further configured to: in response to receiving a first control event triggered by the user via the external control device, dispatch the first control event to the virtual screen.
  11. The electronic device according to any one of claims 7 to 10, wherein the processor (420) is further configured to: in response to receiving a second control event triggered by the user through the control component of the electronic device, dispatch the second control event to the target screen.
  12. The electronic device according to any one of claims 7 to 11, wherein the processor (420) is further configured to: in response to receiving a second control switching instruction triggered by the user, switch the control object of the external control device from the virtual screen to the target screen.
  13. A non-transitory computer-readable storage medium, on which computer program instructions are stored, when the program instructions are executed by a processor (420), the processor (420) is caused to: in response to receiving a screen projection instruction triggered by a user, determine a virtual screen to be projected according to a target interface displayed by a target screen of an electronic device; project the virtual screen to a target screen projecting device; and in response to receiving a first control switching instruction triggered by the user, switch a control object of an external control device from the target screen to the virtual screen and setting a control object of a control component of the electronic device as the target screen; characterized in that prompt information for prompting that the control object of the external control device is switched to the virtual screen is displayed on the target screen after the control object of the external control device is switched from the target screen to the virtual screen.
  14. The non-transitory computer-readable storage medium according to claim 13, when the program instructions are executed by a processor (420), the processor (420) is further caused to: acquire, from the first control switching instruction, a screen identifier of the virtual screen; and switch the control object of the external control device from the target screen to the virtual screen according to the screen identifier.

Description

TECHNICAL FIELD The disclosure relates to the technical field of screen projection, and more particularly, to a screen projection method, a screen projection apparatus, an electronic device, a storage medium, and a chip. BACKGROUND When a user uses a tablet computer, the virtual screen to be projected can be determined according to the target screen displayed by the tablet computer, and the virtual screen can be projected onto a screen projection device, thus facilitating a plurality of people to browse the projected content together. In the related art, US 2011/0275391 A1 provides a mobile terminal, the mobile terminal includes a display, a user input unit configured to receive a user command, and a wireless communication unit configured to wirelessly communicate with a first entity over a first communication path and to wirelessly communicate with any of a plurality of external devices, each comprising a display, over a second communication path. The first communication path typically utilizes a different communication protocol than the second communication path. The mobile terminal also includes a controller configured to execute a first application, detect an event relating to a second application, and responsive to the detecting of the event, automatically search for external devices, which are among the plurality of external devices, that are available for communication with the mobile terminal over the second communication path. In the related art, CN 113 687 765 A provides an input function control method, an input function control device and a storage medium. The input function control method is applied to a first device, the first device is connected with an input device, and in response to detecting that a sharing function of the input device is enabled and monitoring an input event sent by the input device, the input event is intercepted and the intercepted input event is forwarded to a second device connected with the first device. In this way, the input event sent by the input device connected with the first device is shared to the second device connected with the first device. In the related art, US 2014/0259029 A1 provides a multi-input control method and system, and an electronic device supporting the same are provided. The multi-input control method includes receiving an activation request for multiple applications (apps), identifying one or more input units to operate the multiple apps, and assigning the input units to the multiple apps according to occurrence of an event or preset information so that the input units are operable to operate the apps in an independent manner. In the related art, US 2022/027117 A1 provides a screen projection processing method. The method includes obtaining an operation for a first electronic device, responding to the operation by calling a task manager of the first electronic device to display a plurality of application objects managed by the task manager in a display area of the first electronic device, determining a first application object from the plurality of application objects, and projecting a first display content generated by an application program corresponding to the first application object in an operative state to a second display area of a second electronic device in real-time. SUMMARY To overcome the problems present in the related art, the disclosure provides a screen projection method, a screen projection apparatus, an electronic device, a storage medium, and a chip. According to a first aspect of the invention, there is provided a screen projection method performed by an electronic device. The electronic device is connected with an external control device, and the method includes: in response to receiving a screen projection instruction triggered by a user, determining a virtual screen to be projected according to a target interface displayed by a target screen of the electronic device;projecting the virtual screen to a target screen projecting device; andin response to receiving a first control switching instruction triggered by the user, switching a control object of the external control device from the target screen to the virtual screen and setting a control object of a control component of the electronic device as the target screen;where prompt information for prompting that the control object of the external control device is switched to the virtual screen is displayed on the target screen after the control object of the external control device is switched from the target screen to the virtual screen. Preferably, in response to receiving the first control switching instruction triggered by the user, switching the control object of the external control device from the target screen to the virtual screen includes: acquiring, from the first control switching instruction, a screen identifier of the virtual screen; andswitching the control object of the external control device from the target screen to the virtual screen according to th