Screen content sharing method, and device and system
By creating a virtual screen on the terminal device, targeted sharing of screen content is achieved, solving the problem that existing technology cannot share a single window and an external screen, and improving user experience and privacy protection.
Patent Information
- Application Number
- PCT/CN2024/073199
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-01-19
- Publication Date
- 2024-09-26
AI Technical Summary
Existing screen content sharing technology cannot support targeted sharing of the content of a single window on the terminal device screen, and easily interrupts the user's tasks during sharing, making it impossible to share the content of an external expansion screen or collaborative screen.
By creating a virtual screen on the terminal device, users are allowed to select and share specific windows on the screen or the entire screen, supporting flexible sharing in single-device and multi-device scenarios, including content on external expansion screens or collaborative screens.
It achieves refined management of screen content, supports the sharing of any window, improves user experience, protects user privacy, and supports screen content sharing on multiple terminal devices.
Smart Images

Figure CN2024073199_26092024_PF_FP
Abstract
Description
Screen content sharing method, device and system
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 22, 2023, with application number 202310355565.0 and application name “A screen content sharing method, device and system”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method, device, and system for sharing screen content. Background Art
[0003] With the rapid and diverse development of terminal device hardware and software technologies, devices can now achieve a variety of functions based on the software running on them. For example, users can share the screen content on their device, such as a specific application window on the screen, with other users in real time.
[0004] However, in many cases, as shown in Figure 1, taking the case of two application windows (window 1 and window 2 shown in Figure 1 (a)) being displayed split-screen on device 1, when a user initiates screen content sharing with device 2, as shown in Figure 1 (b), device 1 will share its entire screen by default. However, for reasons of privacy or other confidentiality, users often only wish to share a portion of their screen content (the content in window 1 or the content in window 2 shown in Figure 1 (a)) rather than the entire screen. Therefore, conventional screen content sharing technologies cannot meet this user need.
[0005] Summary of the Invention
[0006] The present application provides a screen content sharing method, device, and system, which can finely manage the sharing of screen content in a screen content sharing scenario, realize targeted screen content sharing, effectively protect user privacy, and improve user experience.
[0007] To achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, a screen content sharing method is provided, which can be applied to a first terminal device, the method comprising: in response to a received first operation, the first terminal device displays a first interface, wherein the first operation is used to share screen content to a second terminal device, the first interface includes at least one candidate interface option, and the at least one candidate interface option includes one or more of an option corresponding to an interface displayed on the first terminal device, an option corresponding to an interface displayed on an extended screen of the first terminal device, or an option corresponding to an interface displayed on a collaborative screen of the first terminal device; after receiving a second operation for a first option in the above-mentioned at least one candidate interface option, the first terminal device creates a first virtual screen; the first terminal device renders a second interface corresponding to the first option on the first virtual screen; the first terminal device shares the above-mentioned second interface on the first virtual screen with the second terminal device.
[0009] The first virtual screen created by the first terminal device is used for screen sharing.
[0010] For example, in a single-device scenario, the at least one candidate interface option included on the first interface includes an option corresponding to an interface displayed on the first terminal device. In a multi-device scenario, the at least one candidate interface option included on the first interface may include an option corresponding to an interface displayed on the first terminal device and / or an option corresponding to an interface displayed on an extended screen / collaborative screen of the first terminal device.
[0011] According to the solution provided in the first aspect above, the first terminal device can create a virtual screen for screen sharing, and render the interface window to be shared from the original virtual screen to the virtual screen for screen sharing, thereby finally realizing the targeted sharing of the interface window to be shared, and providing users with a more flexible and user-friendly screen content sharing experience. For example, in a single-device scenario, based on this solution, not only can the entire screen of the first terminal device be shared with the second terminal device, but also the interface in any separate window on the display screen of the first terminal device can be shared with the second terminal device. For another example, in a multi-device scenario, based on this solution, not only can the entire screen of the first terminal device be shared with the second terminal device, but also the interface in any separate window on the display screen of the first terminal device, or the interface in any separate window on the screen having an extension / collaborative relationship with the first terminal device can be shared with the second terminal device.
[0012] As a possible implementation, the first interface further includes at least one candidate screen option, which includes one or more of a screen option corresponding to the display screen of the first terminal device, an extended screen option of the first terminal device, or a collaborative screen option of the first terminal device; the method further includes: after receiving a third operation for the second option in at least one candidate screen option, the first terminal device renders the third interface corresponding to the second option on the first virtual screen; the first terminal device shares the third interface on the first virtual screen with the second terminal device. Based on this, the first terminal device can ultimately achieve sharing of any screen to be shared by rendering the content on the screen to be shared from the original virtual screen to the virtual screen for screen sharing, providing users with a more flexible and user-friendly screen content sharing experience. For example, in a single-device scenario, based on this solution, it is possible to support sharing the entire screen of the first terminal device to the second terminal device. For another example, in a multi-device scenario, based on this solution, it is possible not only to support sharing the entire screen of the first terminal device to the second terminal device, but also to support sharing the screen with an extended / collaborative relationship with the first terminal device to the second terminal device.
[0013] As a possible implementation method, the second interface is displayed on the display screen of the first terminal device or on a third terminal device, and the third terminal device is an extended screen device or a collaborative screen device of the first terminal device. Based on this, in a multi-device scenario, the interface in any separate window on the display screen of the first terminal device, or the interface in any separate window on the screen that has an extended / collaborative relationship with the first terminal device, can be shared with the second terminal device, providing users with a more flexible and user-friendly screen content sharing experience.
[0014] As a possible implementation, the task corresponding to the second interface is run in the foreground, background, or not run in the first terminal device. Based on this, the interface in any separate window can be shared in any scenario, providing users with a more flexible and user-friendly screen content sharing experience.
[0015] As a possible implementation method, the above-mentioned first terminal device renders the second interface corresponding to the first option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the second interface from the second virtual screen to the third virtual screen; the first terminal device maps the third virtual screen and renders the mapped content on the first virtual screen; wherein the second virtual screen corresponds to the display screen of the first terminal device. In some cases, the first virtual screen used for screen sharing only supports mapping the entire screen. Therefore, for the case where the second interface is a window interface displayed on the display screen of the first terminal device, in order to smoothly realize the sharing of the second interface, the first terminal device can create a third virtual screen for temporarily storing the interface window to be shared, and then move (or copy) the window where the second interface is located on the second virtual screen corresponding to the display screen to the third virtual screen, and finally render the second interface on the first virtual screen by mapping the third virtual screen where the second interface is located, thereby realizing the sharing of the interface in any window.
[0016] As a possible implementation, the size of the third virtual screen is consistent with the size of the window where the second interface is located. Based on this, the computing power of the subsequent first terminal device can be minimized and the subsequent processing of the first terminal device can be simplified.
[0017] As a possible implementation, before the first terminal device shares the content on the first virtual screen with the second terminal device, the second interface is displayed on the display screen of the first terminal device. After the first terminal device shares the content on the first virtual screen with the second terminal device, the method further includes: the first terminal device displays the second interface in a floating window. In some cases, after the first terminal device shares the content on the first virtual screen with the second terminal device, the second interface originally displayed on the first terminal device may be removed. In this case, the first terminal device can display the second interface in a floating window to ensure the normal display of the second interface, thereby not affecting the user experience.
[0018] As a possible implementation, the second option is the screen option corresponding to the display screen of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device maps the second virtual screen and renders the mapped content on the first virtual screen; wherein the second virtual screen corresponds to the display screen of the first terminal device. In some cases, the first virtual screen used for screen sharing can support mapping part of the interface on the virtual screen. In this case, the first terminal device can directly map the second interface on the virtual screen and render the mapped content on the first virtual screen. This method can significantly reduce the computing power and processing flow of the first terminal device.
[0019] As a possible implementation method, the above-mentioned second option is the screen option corresponding to the display screen of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the third interface from the second virtual screen to the third virtual screen; the first terminal device maps the third virtual screen and renders the mapped content on the first virtual screen; wherein the second virtual screen corresponds to the display screen of the first terminal device. Based on this, the first terminal device can create a third virtual screen for temporarily storing the interface window to be shared, and then move (or copy) the content rendered on the second virtual screen corresponding to the target display screen to the third virtual screen, and finally render the third interface on the first virtual screen by mapping the third virtual screen, thereby achieving sharing of the target screen.
[0020] As a possible implementation method, the second option is an extended screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device maps the virtual screen corresponding to the extended screen and renders the mapped content on the first virtual screen; or the second option is a collaborative screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device maps the virtual screen corresponding to the collaborative screen and renders the mapped content on the first virtual screen. Based on this, the computing power and processing flow of the first terminal device can be greatly reduced.
[0021] As a possible implementation method, the above-mentioned second option is the extended screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the third interface from the virtual screen corresponding to the extended screen to the third virtual screen; the first terminal device maps the virtual screen corresponding to the extended screen and renders the mapped content on the first virtual screen; or the second option is the collaborative screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the third interface from the virtual screen corresponding to the collaborative screen to the third virtual screen; the first terminal device maps the virtual screen corresponding to the collaborative screen and renders the mapped content on the first virtual screen. Based on this, the first terminal device can create a third virtual screen for temporarily storing the interface window to be shared, and then move (or copy) the content rendered on the second virtual screen corresponding to the target display screen to the third virtual screen, and finally render the third interface on the first virtual screen by mapping the third virtual screen to achieve sharing of the target screen.
[0022] As a possible implementation, the first operation or the second operation is an operation on a first application, and the first application has a screen content sharing function. For example, the first application is an instant messaging application or an office meeting application.
[0023] In a second aspect, a terminal device is provided, which includes: a display screen for displaying an interface, such as a first interface, a second interface, or a third interface; a memory for storing computer program instructions; and a processor for executing the computer program instructions to support the terminal device in implementing a method in any possible implementation manner of the first aspect.
[0024] According to a third aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method according to any possible implementation of the first aspect is implemented.
[0025] According to a fourth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to implement the method according to any possible implementation of the first aspect.
[0026] In a fifth aspect, a chip system is provided, comprising a processing circuit and a storage medium storing computer program instructions; when the computer program instructions are executed by the processor, the method according to any possible implementation of the first aspect is implemented. The chip system may be composed of a chip alone or may include a chip and other discrete components. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] FIG1 is a schematic diagram of a conventional screen content sharing effect;
[0028] FIG2 is a schematic diagram showing the principle of a conventional screen content sharing technology;
[0029] FIG3 is a schematic diagram of a first screen content sharing effect provided by an embodiment of the present application;
[0030] FIG4 is a schematic diagram of a second screen content sharing effect provided by an embodiment of the present application;
[0031] FIG5 is a schematic diagram of a third screen content sharing effect provided by an embodiment of the present application;
[0032] FIG6 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0033] FIG7 is a schematic diagram of a software structure of a terminal device provided in an embodiment of the present application;
[0034] FIG8 is a schematic diagram showing the principle of a screen content sharing technology provided by an embodiment of the present application;
[0035] FIG9A is a flow chart of a first screen content sharing method provided in an embodiment of the present application;
[0036] FIG9B is a schematic diagram of a screen content sharing process provided by an embodiment of the present application;
[0037] FIG10 is a first diagram of a user interface (UI) during screen content sharing according to an embodiment of the present application;
[0038] FIG11 is a flow chart of a second method for sharing screen content provided in an embodiment of the present application;
[0039] FIG12 is a second UI diagram of the screen content sharing process provided by an embodiment of the present application;
[0040] FIG13 is a schematic diagram showing another screen content sharing technology principle provided by an embodiment of the present application;
[0041] FIG14A is a flow chart of a third method for sharing screen content provided in an embodiment of the present application;
[0042] FIG14B is a schematic diagram of another screen content sharing process provided by an embodiment of the present application;
[0043] FIG15 is a third UI diagram of the screen content sharing process provided by an embodiment of the present application;
[0044] FIG16 is a fourth UI diagram of the screen content sharing process provided by an embodiment of the present application;
[0045] FIG17 is a flow chart of a fourth method for sharing screen content provided in an embodiment of the present application;
[0046] FIG18 is a fifth UI diagram of the screen content sharing process provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0048] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "multiple" means two or more. In addition, the objects modified by different prefixes may be the same or different. For example, if the described object is a "device", then the "first device" and the "second device" may be devices of the same type or devices of different types; for another example, if the described object is "information", then the "first information" and the "second information" may be information of the same content or information of different contents. In short, the use of prefixes such as ordinal numbers to distinguish between the described objects in the embodiments of the present application does not constitute a restriction on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary restrictions should be constituted due to the use of such prefixes.
[0049] As a possible reason, conventional screen content sharing technology cannot support the targeted sharing of a certain part of the content on the terminal device screen to other users because its sharing mechanism is to share the content mapped from the display screen of the terminal device. Taking the system as an example, as shown in Figure 2, its sharing mechanism is to create a first virtual screen (such as VirtualDisplay1) for screen sharing, and then map the content of the second virtual screen corresponding to the terminal device's display screen and render it on VirtualDisplay1. The rendered content interface is then shared with the peer device through the sharing function. As shown in Figure 2, when multiple windows are displayed on the terminal device's display screen, conventional screen content sharing technology does not support sharing a single window with other devices.
[0050] It is understandable that conventional screen content sharing technology has but is not limited to the following problems: 1) It does not support targeted sharing of the content in a single window on the screen to other devices; 2) For task windows running in the background or minimized display of the terminal device, it is necessary to display its large foreground window when sharing, which will interrupt the task that the user is performing in the large window; 3) It can only share the local screen, and does not support sharing the content on the external extended screen or collaborative screen of the terminal device.
[0051] In order to solve the above problems, an embodiment of the present application provides a screen content sharing method, which can support not only sharing the entire screen of a terminal device, but also supporting sharing part of the content on the screen of the terminal device.
[0052] For example, in the single-device scenario shown in Figure 3 , after receiving a user screen sharing operation (such as the user clicking the "Share Screen" button as shown in Figure 3 (a)), as shown in Figure 3 (b), Device 1 can only share the interface content in Window 1 on its screen with Device 2. Alternatively, after receiving the user clicking the "Share Screen" button as shown in Figure 3 (a), Device 1 can also only share the interface content in Window 2 on its screen with Device 2.
[0053] For another example, in a single-device scenario as shown in FIG4 , after receiving the user's screen sharing operation (such as the user clicking the “Share Screen” button as shown in FIG4 (a)), as shown in FIG4 (b), device 1 can share the interface content in the minimized window 3 on its screen to device 2 without changing the content displayed on its screen.
[0054] In some embodiments, a screen content sharing method is provided based on the embodiments of the present application, which can also realize sharing of content on an external extended screen or collaborative screen of a terminal device.
[0055] For example, in the multi-device scenario shown in Figure 5, device 3 displays the interface from device 1 as an extended screen device of device 1 or as a collaborative screen device of device 1. After receiving the user's screen sharing operation (as shown in Figure 5 (a) where the user clicks the "Share Screen" button), as shown in Figure 5 (b), device 1 can share the interface content in window 3 on the display screen of its external display device or collaborative screen device (as shown in Figure 5 (a) where device 3)) to device 2 without changing the content displayed on its screen. Alternatively, in the multi-device scenario shown in Figure 5, after receiving the user's screen sharing operation, device 1 can also share its entire screen with device 2. Alternatively, in the multi-device scenario shown in Figure 5, after receiving the user's screen sharing operation, device 1 can also share the interface content in one or more windows on its screen with device 2. In addition, if multiple window interfaces from device 1 are displayed on the extended screen device or collaborative screen device of device 1, after receiving the user's screen sharing operation, device 1 can also share the interface content in one or more windows displayed on the extended screen device or collaborative screen device with device 2.
[0056] The terminal device described in the embodiments of the present application may include, but is not limited to, a smartphone, a netbook, a tablet computer, a smartwatch, a smart bracelet, a phone watch, a smart camera, a PDA, a personal computer (PC), a personal digital assistant (PDA), a portable multimedia player (PMP), an augmented reality (AR) / virtual reality (VR) device, a television, a projection device, or a somatosensory game console in a human-computer interaction scenario. Alternatively, the terminal device may be an electronic device of other types or structures including a camera, which is not limited in the embodiments of the present application.
[0057] Please refer to FIG6 , which shows a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.
[0058] As shown in FIG6 , the terminal device may include a processor 610, a memory (including an external memory interface 620 and an internal memory 621), a universal serial bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a button 690, a motor 691, an indicator 692, a camera 693, a display screen 694, etc. The sensor module 680 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0059] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0060] The processor 610 may include one or more processing units. For example, the processor 610 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a flight controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0061] Processor 610 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 610 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 610. If processor 610 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 610 latency, and thus improves system efficiency.
[0062] In some embodiments, the processor 610 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0063] The USB port 630 is an interface that complies with USB standards and may be a Mini USB port, a Micro USB port, or a USB Type-C port. The USB port 630 can be used to connect a charging device to charge the terminal device, transfer data between the terminal device and other devices, such as connecting headphones to play audio, or connect to other terminal devices such as tablets, PCs, and AR devices.
[0064] It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0065] The charging management module 640 is configured to receive charging input from a charger. The power management module 641 is configured to connect the battery 642, the charging management module 640, and the processor 610. The power management module 641 receives input from the battery 642 and / or the charging management module 640 to power the processor 610, the internal memory 621, the display 694, the camera assembly 693, and the wireless communication module 660.
[0066] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 650, wireless communication module 660, modem processor and baseband processor.
[0067] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0068] The mobile communication module 650 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to terminal devices. The mobile communication module 650 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 650 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 650 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 650 can be set in the processor 610. In some embodiments, at least some of the functional modules of the mobile communication module 650 can be set in the same device as at least some of the modules of the processor 610.
[0069] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 670A, the receiver 670B, etc.) or displays an image or video through the display screen 694. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 610 and be provided in the same device as the mobile communication module 650 or other functional modules.
[0070] The wireless communication module 660 can provide wireless communication solutions including wireless local area networks (WLAN) (such as WiFi networks), Bluetooth BT, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. applied to the terminal device. The wireless communication module 660 can be one or more devices integrating at least one communication processing module. The wireless communication module 660 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 610. The wireless communication module 660 can also receive the signal to be sent from the processor 610, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0071] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 650, and antenna 2 is coupled to wireless communication module 660, so that the terminal device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite-based augmentation system (SBAS).
[0072] The terminal device implements display functions through a GPU, display screen 694, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 694 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 610 may include one or more GPUs that execute program instructions to generate or modify display information.
[0073] Display screen 694 is used to display images, videos, and the like. Display screen 694 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the terminal device can include one or N display screens 694, where N is a positive integer greater than one.
[0074] In an embodiment of the present application, the terminal device can display a multi-window interface through the display screen 694, such as a split-screen window interface, an interface including an application window and a floating window, an interface including a large window and a minimized window, etc. The terminal device can also display options for the user to select an interface to be shared through the display screen 694.
[0075] The external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 610 via the external memory interface 620 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0076] Internal memory 621 can be used to store computer executable program code. For example, computer programs can include operating system programs and application programs. The operating system can include but is not limited to OS and other operating systems. Among them, the executable program code includes instructions. The processor 610 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 621. The internal memory 621 may include a program storage area and a data storage area. Among them, the program storage area can store the operating system, at least one application required for a function, etc. The data storage area can store data created during the use of the terminal device (such as interface data, etc.). In addition, the internal memory 621 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 610 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 621, and / or the instructions stored in the memory provided in the processor.
[0077] The terminal device can implement audio functions such as music playback and recording through the audio module 670, speaker 670A, receiver 670B, microphone 670C, and application processor. For the specific working principles and functions of the audio module 670, speaker 670A, receiver 670B, and microphone 670C, please refer to the description of conventional technology.
[0078] In addition, for the introduction of hardware such as button 690, motor 691, indicator 692, camera 693, etc., reference can be made to conventional technology and will not be repeated in the embodiments of this application.
[0079] It should be understood that the structure illustrated in FIG6 of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or some components may be combined or separated, or the components may be arranged differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0080] As a possible example, please refer to Figure 7, which shows a schematic diagram of the software structure of a terminal device provided in an embodiment of the present application. As shown in Figure 7, the operating system of the terminal device may include an application layer, an application framework layer (framework, FWK) and a kernel layer.
[0081] The application layer may include a series of applications, such as application 1 and application 2 shown in Figure 7, wherein the applications in the application layer may include but are not limited to a word processing system (WPS), mailbox, memo, camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message, etc. For the convenience of description, the application will be referred to as application below. The above application can be a native application (such as an application integrated in the operating system) or function, or it can be a third-party application (such as an application downloaded and installed by the user through the application store), which is not limited in the embodiment of the present application.
[0082] In the embodiment of the present application, the application layer may also include applications with sharing functions, such as office conference applications shown in Figure 7. Of course, the embodiment of the present application is not limited to applications with sharing functions. For example, applications with sharing functions may also be instant messaging applications as shown in Figure 7.
[0083] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. As shown in Figure 7, the application framework layer can be used to provide media projection management services (MediaProjectionManagerService), display management services (DisplayManagerService), and window management services (WindowManagerService).
[0084] Among them, the media projection management service is used to manage media resource sharing related functions, such as screen projection management, distributed collaboration management, screen sharing management, etc. Exemplarily, screen sharing management includes screen content sharing service permission management (such as permission verification, etc.), candidate interface / candidate screen determination, etc.
[0085] In an embodiment of the present application, the media projection management service may also, based on a screen content sharing request from an application with sharing functionality, call the display screen management service to create a third virtual screen (e.g., VirtualDisplay2) for temporarily storing the interface window to be shared and a first virtual screen (e.g., VirtualDisplay1) for sharing screen content, and call the display screen management service or the window management service to perform other screen content sharing-related tasks. For example, the media projection management service may implement mapping of a virtual screen based on the screen identifier of the virtual screen through a newly added interface for screen mapping between the media projection management service and the display screen management service.
[0086] The display management service is used to manage information such as screen objects of terminal devices, such as creating virtual screens, mapping virtual screens, etc. As an example, the display management service can create a virtual screen by calling the createVirtualDisplay method.
[0087] For example, in a multi-device scenario, the screen object of a terminal device includes virtual screen objects, such as a second virtual screen (e.g., VirtualDisplay0) corresponding to the terminal device's display screen, a third virtual screen (e.g., VirtualDisplay2) for temporarily storing the interface window to be shared, and a first virtual screen (e.g., VirtualDisplay1) for sharing screen content. The virtual screen corresponding to the display screen refers to the virtual screen used to render the interface sent to the display screen.
[0088] For example, the virtual screen object can be represented by the screen identifier of the virtual screen, such as displayId. For example, displayId can be an int type parameter. When the display screen management service creates a virtual screen, it can assign a displayId to the virtual screen for easy subsequent management.
[0089] The window management service is used to provide window management, such as window creation, window startup, window deletion, window movement, and window position / size / style management.
[0090] In embodiments of the present application, the window management service can also be used to manage window information. This window information may include, but is not limited to, the window identifier, the window hierarchy, the identifier of the interface displayed in the window, and the virtual screen object corresponding to the window. For example, the virtual screen object corresponding to the window is the displayId of the virtual screen where the window resides. For example, displayId can be an int type parameter.
[0091] In a single-device scenario (such as the scenario shown in FIG. 3 or FIG. 4 ), the window management service of the terminal device can be used to manage the window information of all windows on the terminal device and the corresponding virtual screen objects.
[0092] In a multi-device scenario (as shown in Figure 5), the window management service of the terminal device is not only used to manage the window information and corresponding displayId of all windows on the terminal device, but also includes the window information and corresponding displayId of all windows on the extended screen / collaborative screen used to display the projection interface.
[0093] It should be noted that in the single-device scenario described in the embodiment of the present application, the window management service of the terminal device may not perform virtual screen object management, and the embodiment of the present application does not make specific limitations.
[0094] Of course, the application framework layer also provides other management services, such as activity management, package management, content provisioning, phone management, resource management, notification management, location management, and the view system. The activity management service manages activities, starting, switching, and scheduling system components, as well as managing and scheduling applications. The package management service manages applications within the system. The content provision service enables one application to access another's data (such as a contact database) or share its own data with other applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The phone management service provides methods for accessing terminal device communication status and information, as well as supporting terminal device communication functions, such as call status management (including connected and disconnected calls). The resource management service provides access to non-code resources, such as local strings, icons, images, graphics, video files, or layout files. The Notification Management Service provides the ability to display customized prompts in the status bar. These prompts can be used to convey notification messages and can disappear automatically after a short pause, without requiring user interaction. The Location Management Service provides services related to processing geographic location. The View System is used to build the application's display interface. The View System includes visual controls such as the TextBox control, List control, Grid control, Button control, and an embeddable Web Browser control.
[0095] The kernel layer is the layer between hardware and software. It can include camera drivers, input / output device drivers (such as keyboard drivers, touch screen drivers, and microphone drivers), audio drivers (such as headphone drivers and speaker drivers), sensor drivers, and Bluetooth drivers. The camera driver is used to call and control the camera hardware through the driver, such as shooting control (such as starting, pausing, and ending shooting) and adjusting shooting parameters.
[0096] It should be noted that Figure 7 is only an example of a software structure diagram of a terminal device, in which only the layers and software modules related to the solution of the present application are simply listed. In actual applications, the operating system of the terminal device may also include other layers and each layer may also include other software modules for implementing one or more functions or services. In this regard, the embodiments of the present application are not specifically limited. For example, as a possible structure, the operating system of the terminal device may also include a system library and a runtime, wherein the system library and the runtime contain functional functions that need to be called by the application framework layer. For example, the system library may include a media library (Media Libraries) for supporting audio, video format playback and recording, as well as static image files, etc.
[0097] The following will introduce a screen content sharing method provided by the embodiments of the present application in detail through Example 1 and Example 2, respectively, in combination with specific scenario examples.
[0098] Example 1: Single device scenario
[0099] In Example 1, a terminal device (such as a first terminal device) can display candidate interface options and full screen options after receiving an operation from a user to share screen content to other terminal devices (such as a second terminal device), for the user to select a window to be shared or to share the entire screen. After the user selects a window, the first terminal device can render the content interface in the window on the first virtual screen (i.e., VirtualDisplay1) created for screen sharing, and share the rendered content interface to the opposite device through the sharing function. After the user chooses to share the entire screen, the first terminal device can render the content interface on the entire screen on the first virtual screen (i.e., VirtualDisplay1) created for screen sharing, and share the rendered content interface to the opposite device through the sharing function. Based on this, the first terminal device can not only support sharing the entire screen of the first terminal device to the second terminal device, but also support sharing part of the content on the screen of the first terminal device.
[0100] For example, taking the case where window 1 and window 2 are displayed on the display screen of the first terminal device shown in Figure 8 as an example, after receiving the user's operation to share the screen, the first terminal device can create a third virtual screen (i.e., VirtualDisplay2) for temporarily storing the interface window to be shared and the first virtual screen (i.e., VirtualDisplay1) for screen sharing; and after receiving the user's operation to select to share window 1, the first terminal device can move (or copy) the interface corresponding to window 1 rendered on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen to the third virtual screen (i.e., VirtualDisplay2), and map the third virtual screen (i.e., VirtualDisplay2) and render it on the first virtual screen (i.e., VirtualDisplay1); then, the first terminal device can share the content interface of window 1 rendered on the first virtual screen (i.e., VirtualDisplay1) to the second terminal device through the sharing function.
[0101] In this embodiment, after moving the interface corresponding to Window 1 rendered on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen to the third virtual screen (i.e., VirtualDisplay2), as a possible example, the first terminal device may remove the interface corresponding to Window 1 from the second virtual screen (i.e., VirtualDisplay0). Also, as a possible example, the first terminal device may further rearrange the position and layout of other windows (e.g., Window 2) on the second virtual screen (i.e., VirtualDisplay0).
[0102] Alternatively, after moving the interface corresponding to window 1 rendered on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen to the third virtual screen (i.e., VirtualDisplay2), as a possible example, the first terminal device can keep the interface display of the display screen unchanged, that is, the interface corresponding to window 1 will not be removed from the second virtual screen (i.e., VirtualDisplay0).
[0103] It should be noted that the example shown in Figure 8 only takes the first terminal device sharing part of the interface displayed in its foreground large window to the second terminal device as an example. In actual use, the first terminal device can also share its foreground minimized display, background running or not yet running task interface with the second terminal device. Among them, for the task interface that is not running in the first terminal device, the terminal device can first start the application corresponding to the task interface, and then share the task interface (such as the application homepage) with the second terminal device. In addition, this application only takes the minimized display as the foreground display as an example. In actual applications, the minimized display can also be divided into background running, and the embodiments of this application do not make specific limitations.
[0104] That is, in embodiment 1, the first terminal device may also support sharing the task interface minimized on the first terminal device, the task interface running in the background, or the task interface not yet running with the second terminal device.
[0105] Please refer to Figure 9A, which shows a flow chart of a screen content sharing method provided by an embodiment of the present application in a single device scenario. As shown in Figure 9A, a screen content sharing method provided by an embodiment of the present application may include S901-S907:
[0106] S901: A first terminal device receives a first operation for initiating screen content sharing with a second terminal device.
[0107] The first terminal device and the second terminal device have established a preset communication connection, such as joining the same conference group, connecting to the same wireless local area network, or establishing a wired / wireless communication connection.
[0108] As an example, as shown in S1 in FIG. 9B , the first operation is an operation of the user on the first application, and the first application has a screen content sharing function.
[0109] For example, the first application is an office meeting application, and the first terminal device and the second terminal device both join the same meeting group provided by the first application. Alternatively, the first application is an instant messaging application, and the first operation is a user clicking a preset control on the interface of the first application, such as a preset button, preset option, preset link, etc. The user clicking the preset control can trigger the screen content sharing function, such as the user clicking the preset control can trigger the code to run through the "event" and complete the screen content sharing function.
[0110] As an example, the preset interface of the first application (such as interface 1) includes a screen content sharing function control, and the first operation is the user clicking the screen content sharing function control on the preset interface of the first application (i.e., interface 1). For example, the preset interface of the first application (i.e., interface 1) is shown in (a) of FIG10. The user is in the xx conference interface, and the user's first operation on the first application is, for example, the user clicking the "Screen Content Sharing" button (as shown in 1002 in (a) of FIG10) on the xx conference interface (as shown in 1001 in (a) of FIG10). Operation 1003.
[0111] It can be understood that interface controls contain properties, methods, and events. The properties of an interface control determine the visual appearance of the interface control, and usually include the name, shape, display style, font color, etc. of the control. The methods of an interface control refer to the class methods preset for the control by the .NET Framework. These methods are specially provided for programmers and can be used to set and process the control's own characteristics. The events of an interface control refer to the response of the interface control to touch operations, keyboard operations, mouse operations, and other operations. Any interface control has its own set of events. Once an event of an interface control occurs, it can cause the execution of the corresponding event process. The event object has its own specific name, and the event process code is written by the programmer according to his or her own problem requirements, such as the button click event Click. Therefore, when receiving a user click operation on a preset control, the first terminal device can trigger the code to run through the "event" and complete the function of sharing the screen content.
[0112] Of course, the embodiments of the present application do not specifically limit the form and specific method of the user's first operation on the first application. For example, the user's first operation on the first application can also be a voice command, a preset sliding gesture, a preset body movement, a preset eye movement, etc. when the first terminal device displays a preset interface of the first application.
[0113] It should be noted that FIG10 only uses the first terminal device displaying multiple interface windows in a split-screen display as an example, and this application does not limit the specific form of the multiple interface windows. For example, in some examples, at least one of the multiple interface windows can also be minimized or run in the background on the first terminal device.
[0114] In addition, in the embodiment of the present application, the interfaces in the multiple interface windows displayed on the first terminal device may belong to the same application or to different applications (as shown in Figure 10), and the embodiment of the present application does not limit this. For example, the multiple interface windows displayed on the first terminal device may include, but are not limited to, interface windows of one or more applications such as WPS, mailbox, memo, camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, and short message.
[0115] S902: In response to a first operation, the first terminal device displays a first interface including one or more candidate interface options.
[0116] Among them, the first interface is used for the user to select the screen content that he wants to share. After the user selects a candidate interface (such as the second interface) option on the first interface, the first terminal device can share the candidate interface with other devices (such as the second terminal device).
[0117] Exemplarily, as shown in (b) in Figure 10, in response to the user's operation 1003 of clicking the "Screen Content Sharing" button 1002 on the xx conference interface 1001, the first terminal device displays an interface 1004 (i.e., the first interface), wherein the interface 1004 includes a "Video "XXXX" interface" option, a "Document "XX1" interface" option, a "Music "XX2" interface" option, a "Local Screen" option, an icon of application A, an icon of application B, and an icon of application C, wherein the "Video "XXXX" interface" option, the "Document "XX1" interface" option, the "Music "XX2" interface" option, the "Local Screen" option, the icon of application A, the icon of application B, and the icon of application C are candidate interface options.
[0118] As an example, the first interface may include options corresponding to the interface currently displayed on the display screen of the first terminal device. As shown in (b) of Figure 10, the first interface includes the "Video <XXXX> Interface" option and the "Document <XX1> Interface" option currently displayed on the display screen of the first terminal device.
[0119] As an example, the first interface may include an option corresponding to the interface currently running in the background on the first terminal device. As shown in (b) in Figure 10, the first interface includes an option for the "Music XX2 Interface" currently running in the background on the first terminal device.
[0120] As an example, the first interface may include a “local screen” option, as shown in (b) in FIG10 .
[0121] Of course, as an example, the first interface may also include options corresponding to task interfaces that are not running in the first terminal device, such as icons of one or more applications installed in the first terminal device (as shown in (b) of Figure 10, the icon of application A, the icon of application B, and the icon of application C). After the user selects an application icon option on the first interface, the first terminal device may first start the application and share the task interface (such as the application homepage) with other devices (such as the second terminal device). Also, for a first terminal device capable of minimizing the display interface window, as an example, one or more candidate interface options included on the first interface may include an interface currently minimized and displayed on the display screen of the first terminal device.
[0122] It should be noted that the embodiments of the present application do not limit the specific display format of one or more candidate interface options on the first interface. For example, the candidate interface options can be displayed on the first interface in a list format, or can be displayed on the first interface in a drop-down format (such as the drop-down option "Other Options" as shown in (b) of Figure 10). For another example, the first interface can also include a confirmation button. When the user selects a candidate interface option and clicks the confirmation button, the first terminal device determines that the user wants to share the interface.
[0123] As a possible implementation, as shown in S2 of FIG. 9B , in response to a first operation, the first terminal device may call the getMediaProjection method of the MediaProjectionManagerService to request permission for the screen content sharing service. To ensure the security of user information, as shown in S3 of FIG. 9B , the MediaProjectionManagerService may pop up a permission dialog box for the user to confirm whether to share screen content. For example, the MediaProjectionManagerService may call the addWindow method of the WindowManagerService to pop up the permission dialog box. After the user confirms, as shown in S5 of FIG. 9B , the MediaProjectionManagerService may retrieve candidate interfaces. For example, the MediaProjectionManagerService may call the getWindowIds method of the WindowManagerService to retrieve a list of all current windows and determine candidate interfaces based on the list of windows. After obtaining the candidate interfaces, as shown in S6 of FIG. 9B , the MediaProjectionManagerService may pop up a first interface including one or more candidate interface options for the user to select the content interface they wish to share. For example, the media projection management service (MediaProjectionManagerService) can call the addWindow method of the window management service (WindowManagerService) to pop up the first interface.
[0124] It should be noted that Figure 9B is only an example of a possible internal processing process of the first terminal device. In actual applications, it may include more or fewer steps than Figure 9B. For example, step S3 shown in Figure 9B can also be omitted, depending on the specific system process of the first terminal device. The embodiment of this application does not make specific limitations.
[0125] S903: The first terminal device creates a first virtual screen for screen sharing.
[0126] The first virtual screen is used to map the interface to be shared and then support sharing it to the second terminal device through the sharing function. For example, the virtual screen used for screen sharing is the first virtual screen shown in FIG8 .
[0127] As a possible implementation method, as shown in S4 in FIG9B , the first terminal device may call the createVirtualDisplay method of the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to create a first virtual screen (such as VirtualDisplay1) for screen sharing.
[0128] S904: The first terminal device receives a second operation. The second operation is an operation in which the user selects a candidate interface option (such as the first option) corresponding to the second interface on the first interface.
[0129] As an example, the second operation may be an operation in which the user clicks on a candidate interface option corresponding to the second interface on the first interface.
[0130] The second interface may be any window interface displayed on the display screen of the first terminal device, or the second interface may be the entire screen interface of the first terminal device, wherein the entire screen interface includes at least one window interface.
[0131] For example, taking the first interface as interface 1004 shown in (b) in Figure 10, the second operation can be the user clicking on the "Video "XXXX" interface" option, the "Document "XX1" interface" option, the "Music "XX2" interface" option, the "Local Screen" option, the icon of application A, the icon of application B, or the icon of application C on interface 1004.
[0132] Of course, the embodiment of the present application does not specifically limit the operation form and specific method of the user's operation of selecting the candidate interface option corresponding to the second interface on the first interface (i.e., the second operation). For example, the second operation can also be a voice command, a preset sliding gesture, a preset body movement, a preset eye movement, etc. when the first terminal device displays the first interface.
[0133] S905: In response to the second operation, the first terminal device renders the second interface on the first virtual screen.
[0134] As a possible implementation manner, as shown in S7 in FIG9B , in response to the second operation, the first terminal device may call the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to map the second interface.
[0135] It can be understood that since the first virtual screen (i.e., VirtualDisplay1) used for screen sharing usually only supports mapping the entire screen, for the case where the second interface is a window interface displayed on the display screen of the first terminal device, in order to smoothly realize the sharing of the second interface, as a possible implementation method, the first terminal device can first create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared, and then move (or copy) the window where the second interface is located on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen to the third virtual screen (i.e., VirtualDisplay2), and finally render the second interface on the first virtual screen (i.e., VirtualDisplay1) by mapping the third virtual screen (i.e., VirtualDisplay2) where the second interface is located.
[0136] As a possible implementation method, as shown in S4 in Figure 9B, the first terminal device can call the createVirtualDisplay method of the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared.
[0137] Among them, when moving (or copying) the window where the second interface is located to the third virtual screen (i.e., VirtualDisplay2), as a possible implementation method, as shown in S8 in Figure 9B, the first terminal device can move (or copy) the window where the second interface is located to the created third virtual screen (i.e., VirtualDisplay2) through the media projection management service (MediaProjectionManagerService). For example, the media projection management service (MediaProjectionManagerService) can move (or copy) the window where the second interface is located to the created third virtual screen (i.e., VirtualDisplay2) by calling the moveWindowToDisplay method of the window management service (WindowManagerService). Then, as shown in S9 in Figure 9B, the media projection management service (MediaProjectionManagerService) can map the third virtual screen (i.e., VirtualDisplay2) where the second interface is located and render it on the first virtual screen (i.e., VirtualDisplay1).
[0138] As a possible implementation method, the media projection management service of the first terminal device can smoothly map the third virtual screen (i.e., VirtualDisplay2) where the second interface is located according to the DisplayID of the third virtual screen (i.e., VirtualDisplay2) through the newly added interface for screen mapping between the media projection management service and the display screen management service.
[0139] As a possible implementation, the first terminal device may create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared upon receiving the second operation. As another possible implementation, the first terminal device may create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared upon receiving the first operation. This embodiment of the present application does not specifically limit this.
[0140] In some examples, after moving (or copying) the window where the second interface is located to the third virtual screen (i.e., VirtualDisplay2), the first terminal device can also call the setSize method of the window management service (WindowManagerService) to make the third virtual screen (i.e., VirtualDisplay2) consistent with the size of the window where the second interface is located. Alternatively, when creating a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared, the first terminal device can also call the setSize method of the window management service (WindowManagerService) to make the third virtual screen (i.e., VirtualDisplay2) consistent with the size of the window where the second interface is located. Based on this, the computing power of the subsequent first terminal device can be minimized, simplifying the subsequent processing of the first terminal device.
[0141] Of course, in the case where the second interface is a full-screen interface displayed on the display screen of the first terminal device, the first terminal device may not create a third virtual screen to temporarily store the interface window to be shared, but directly map and render it on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen and render it on the first virtual screen (i.e., VirtualDisplay1).
[0142] Alternatively, for the first virtual screen (i.e., VirtualDisplay1) that supports mapping part of the content on the virtual screen, the first terminal device does not need to create a third virtual screen to temporarily store the interface window to be shared. It can map the second interface rendered on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen and render it on the first virtual screen (i.e., VirtualDisplay1).
[0143] It can be understood that since the display screen of the first terminal device is displayed on the second virtual screen (i.e., VirtualDisplay0), the above process of rendering the second interface on the first virtual screen is imperceptible to the display screen of the first terminal device, that is, the display screen of the first terminal device will not display the second interface that was previously minimized, the second interface running in the background, or the second interface that has just been running in a large window, so it will not interrupt the task that the user is performing in a large window.
[0144] It should be noted that the embodiments of the present application do not limit the specific execution order of S903 and S904, and S903 and S905. For example, the first terminal device may execute S903 and S904 simultaneously, or execute S903 first and then S904, or execute S904 first and then S903. Alternatively, in some embodiments, the first terminal device may execute S903 after receiving the second operation and then render the second interface on the first virtual screen.
[0145] S906: The first terminal device sends interface data of the second interface rendered on the first virtual screen to the second terminal device.
[0146] Among them, the interface data of the second interface is used to represent the elements on the second interface (such as text, controls, pictures, icons, links, options, etc.) and the specific layout of each element (such as display position, display form, size, format, etc.).
[0147] In some examples, the first terminal device can send the interface data of the second interface to the second terminal device in real time. In some examples, the first terminal device can convert the interface data of the second interface into a video file and then periodically send it to the second terminal device. The embodiments of the present application do not specifically limit the specific method and process for the first terminal device to send the interface data of the second interface to the second terminal device.
[0148] As a possible implementation manner, the first terminal device can call a screen content sharing function (such as screen content sharing Surface) to send the interface data of the second interface to the second terminal device through a preset communication connection between the first terminal device and the second terminal device.
[0149] As a possible implementation method, as shown in S10a and S10b in Figure 9B, after obtaining the interface data of the second interface from the display management service (DisplayManagerService), the media projection management service (MediaProjectionManagerService) can send it to the first application to call the screen content sharing function provided by the first application (such as screen content sharing Surface), and send the interface data of the second interface to the second terminal device through the preset communication connection between the second terminal device.
[0150] It should be noted that in the embodiments of the present application, there may be multiple second terminal devices. For example, if a first terminal device and multiple second terminal devices join the same conference group, the first terminal device can send interface data of the second interface to the multiple second terminal devices so that the multiple second terminal devices can all successfully display the second interface shared by the first terminal device.
[0151] S907: The second terminal device displays the second interface.
[0152] As an example, the second terminal device can display the second interface in the shared content area on the interface of the first application. For example, if the first terminal device and the second terminal device have joined the same conference group, such as the same conference group provided by the first application (such as an office conference application), the second terminal device can display the second interface in the shared content area on the interface of the first application.
[0153] Of course, the present application does not limit the specific form in which the second terminal device displays the second interface. For example, in some examples, the second terminal device may also display the second interface in full screen based on the screen content sharing function.
[0154] In some embodiments, when the first terminal device displays the second interface in the foreground (such as a large window display or a minimized display), the first terminal device removes the second interface from the second virtual screen (i.e., VirtualDisplay0) after the first terminal device moves the second interface from the second virtual screen (i.e., VirtualDisplay0) to the third virtual screen (i.e., VirtualDisplay2). After the first terminal device shares the second interface to the second terminal device, the first terminal device no longer displays the second interface in the foreground. The first terminal device can create another application window to ensure the normal display of the second interface on the first terminal device when the first terminal device shares the second interface. For example, the created application window can maintain the same display effect as before sharing.
[0155] Alternatively, in order to ensure the normal display of the second interface, the first terminal device can create another floating window to ensure the normal display of the second interface on the first terminal device when the first terminal device shares the second interface. For example, as shown in Figure 11, a screen content sharing method provided in an embodiment of the present application can also include S1101:
[0156] S1101: The first terminal device creates a floating window and displays a second interface through the floating window.
[0157] As a possible implementation manner, the first terminal device may create a floating window on the second virtual screen (ie, VirtualDisplay0) corresponding to the display screen of the first terminal device by calling the addWindow method of the management service (WindowManagerService).
[0158] For example, taking the second operation as operation 1201 in which the user clicks on the "document "XX1" interface" (i.e., the second interface) option on the interface 1004 as shown in (a) of FIG12 , after receiving the second operation, the first terminal device can send the interface data of the document "XX1" interface to the second terminal device. Correspondingly, after receiving the interface data of the document "XX1" interface, as shown in (b) of FIG12 , the second terminal device displays the document "XX1" interface, and the first terminal device displays the document "XX1" interface in the floating window 1201. Among them, as shown in (b) of FIG12 , after the first terminal device shares the document "XX1" interface to the second terminal device, the first terminal device can rearrange the position (and / or layout) of the XX conference interface window and the video "XXXX" interface window.
[0159] It should be noted that the embodiments of the present application do not limit the specific timing at which the first terminal device executes S1101. For example, the first terminal device may execute S1101 simultaneously with S905 after S904; the first terminal device may execute S1101 after executing S905 but before executing S906; the first terminal device may execute S1101 simultaneously with S906; or the first terminal device may execute S1101 after executing S906.
[0160] It can be understood that based on the screen content sharing method provided in Example 1, the first terminal device not only has the ability to map a certain screen, but also has the ability to map a certain window. Therefore, the first terminal device can not only support sharing the entire screen of the first terminal device to the second terminal device, but also can finely share and manage the screen content to achieve targeted screen content sharing. For example, the first terminal device can create a virtual screen for temporarily storing the interface window to be shared and a virtual screen for screen sharing, move (or copy) the interface window to be shared from the original virtual screen to the virtual screen for temporarily storing the interface window to be shared, and then render the interface window to be shared to the virtual screen for screen sharing by mapping the virtual screen for temporarily storing the interface window to be shared, thereby finally achieving smooth sharing of the interface window to be shared.
[0161] Taking the first terminal device with the software structure shown in Figure 7 as an example, the embodiment of the present application solves the problem that only the entire screen could be shared before by improving the capabilities of the media projection management service (MediaProjectionManagerService) in the software system of the first terminal device. At the same time, by improving the display management service (DisplayManagerService), it supports the creation of virtual screens with different functions, and ultimately achieves the purpose of targeted sharing of content in any window.
[0162] Moreover, when the first terminal device shares the content displayed in a large window with the second terminal device, a screen content sharing method provided based on Example 1 can ensure that the content interface shared to the second terminal device is normally displayed on the first terminal device, and can receive user manipulation (such as editing, changing the display mode, etc.). Alternatively, when the first terminal device shares the content displayed minimized on the screen of the first terminal device, the task interface running in the background of the first terminal device, or the task interface not yet running on the first terminal device with the second terminal device, a screen content sharing method provided based on Example 1 will not interrupt the task that the user is displaying in a large window. Therefore, this method can bring a good experience without any sensation to the user.
[0163] Example 2: Multi-device scenario
[0164] In Example 2, a terminal device (such as a first terminal device) can display candidate interface options and candidate screen options after receiving an operation from a user to share screen content with other terminal devices (such as a second terminal device) for the user to select a screen or window to be shared. After the user selects a screen, the first terminal device can render the content on the screen on the first virtual screen (i.e., VirtualDisplay1) created for screen sharing, and share the content interface rendered on the first virtual screen (i.e., VirtualDisplay1) to the opposite device through the sharing function. After the user selects a window, the first terminal device can render the content interface in the window on the first virtual screen (i.e., VirtualDisplay1) created for screen sharing, and share the rendered content interface to the opposite device through the sharing function. Based on this, the first terminal device can not only support sharing the entire screen of the first terminal device to the second terminal device, or sharing the entire screen of the external extended screen or collaborative screen of the first terminal device, but also support sharing part of the content on any screen to the second terminal device.
[0165] Exemplarily, taking the example of the first terminal device shown in Figure 13 being connected to a third terminal device as its extended screen device, and establishing a communication connection with the fourth terminal device as its collaborative screen device, the main principle of the first terminal device sharing screen content in a multi-device scenario is introduced. Among them, window 1, window 2 and window 3 are displayed on the display screen of the first terminal device. In addition, the first terminal device displays window 4 and window 5 through the extended screen device (the third terminal device shown in Figure 13), and the first terminal device displays window 6 through the collaborative screen device (the fourth terminal device shown in Figure 13). Generally, in order to display window 4 and window 5 through the extended screen device, the first terminal device can render window 4 and window 5 on a separate virtual screen, such as the fourth virtual screen (such as VirtualDisplay3) shown in Figure 13; similarly, in order to display window 6 through the collaborative screen, the first terminal device can render window 6 on a separate virtual screen, such as the fifth virtual screen (such as VirtualDisplay4) shown in Figure 13. Among them, at least one of window 4 and window 5 can be at least one of window 1, window 2 and window 3, or it can be other application windows different from window 1, window 2 and window 3; window 6 can be window 1, window 2 or window 3, or it can be other application windows different from window 1, window 2 and window 3.
[0166] In the example shown in Figure 13, after receiving the user's operation to share the screen, the first terminal device can create a first virtual screen (i.e., VirtualDisplay1) for screen sharing; and after receiving the user's operation to select to share a certain screen, the first terminal device can map the virtual screen corresponding to the screen and render it on the first virtual screen (i.e., VirtualDisplay1); Then, the first terminal device can share the content interface rendered on the first virtual screen (i.e., VirtualDisplay1) to the second terminal device through the sharing function. After the first terminal device receives the user's operation to select to share the extended screen (i.e., the screen of the third terminal device), as shown in Figure 13, the first terminal device can map the fourth virtual screen (i.e., VirtualDisplay3) corresponding to the third terminal device and render it on the first virtual screen (i.e., VirtualDisplay1), and then share the content interface rendered on the first virtual screen (i.e., VirtualDisplay1) to the second terminal device through the sharing function.
[0167] Similarly, if the first terminal device receives the user's operation of selecting to share the collaborative screen (i.e., the screen of the fourth terminal device), the first terminal device can map the fifth virtual screen (i.e., VirtualDisplay4) corresponding to the fourth terminal device and render it on the first virtual screen (i.e., VirtualDisplay1), and then share the content interface rendered on the first virtual screen (i.e., VirtualDisplay1) to the second terminal device through the sharing function. Based on this, if the user wants to share a certain interface, no matter which screen the interface is currently displayed on, the user can share the interface by collaboratively displaying the interface on the collaborative screen.
[0168] Please refer to Figure 14A, which shows a flowchart of another screen content sharing method provided by an embodiment of the present application in a multi-device scenario. As shown in Figure 14A, a screen content sharing method provided by an embodiment of the present application may include S1401-S1407:
[0169] S1401: A first terminal device receives a first operation for initiating screen content sharing with a second terminal device.
[0170] The first terminal device and the second terminal device have established a preset communication connection, such as joining the same conference group, connecting to the same wireless local area network, or establishing a wired / wireless communication connection.
[0171] As an example, as shown by K1 in FIG14B , the first operation is an operation performed by the user on the first application, and the first application has a screen content sharing function.
[0172] Of course, the embodiments of the present application do not specifically limit the form and specific method of the user's first operation on the first application. For example, the user's first operation on the first application can also be a voice command, a preset sliding gesture, a preset body movement, a preset eye movement, etc. when the first terminal device displays a preset interface of the first application.
[0173] For more details about S1401, please refer to the above introduction to S901.
[0174] S1402: In response to a first operation, the first terminal device displays a first interface, which includes one or more candidate screen options and one or more candidate interface options.
[0175] The first interface is used for users to select the screen or interface they want to share. After the user selects a candidate screen option on the first interface, the first terminal device can share the screen with other devices (such as the second terminal device). After the user selects a candidate interface option on the first interface, the first terminal device can only share the interface with other devices (such as the second terminal device).
[0176] The one or more candidate screens may include a screen of the first terminal device, and the one or more candidate screens may also include at least one extended screen and / or at least one collaborative screen of the first terminal device. The one or more candidate interface options may include an interface in any window of the one or more candidate screens.
[0177] Taking the example of the first terminal device connecting to a third terminal device as its extended screen device to display the video "XXXX" interface and the document "XX1" interface, and establishing a communication connection with the fourth terminal device as its collaborative screen device to display the XX conference interface, for example, as shown in (b) in Figure 15, in response to the user clicking the "screen content sharing" button 1502 on the xx conference interface 1501 shown in (a) in Figure 15, the first terminal device displays interface 1503 (i.e., the first interface), wherein interface 1503 includes a "local screen" option, a "third terminal device screen" option, a "fourth terminal device screen" option, a video "XXXX" interface option, a document "XX1" interface option, a document "XX2" interface option, and a document "XX3" interface option.
[0178] It should be noted that the embodiments of the present application do not limit the specific display format of one or more candidate screen options and one or more candidate interface options on the first interface. For example, the candidate screen options and candidate interface options may be displayed in a list format on the first interface. In another example, the first interface may further include a confirmation button. When the user selects a candidate screen option or a candidate interface option and clicks the confirmation button, the first terminal device determines that the user wants to share the corresponding screen or interface.
[0179] As a possible implementation method, as shown in K2 in Figure 14B, in response to the first operation, the first terminal device can call the getMediaProjection method of the media projection management service (MediaProjectionManagerService) to apply for screen content sharing service permissions. In order to ensure the security of user information, as shown in K3 in Figure 14B, the media projection management service (MediaProjectionManagerService) can pop up a permission box for the user to confirm whether to share the screen content. For example, the media projection management service (MediaProjectionManagerService) can call the addWindow method of the window management service (WindowManagerService) to pop up a permission box. After the user confirms, as shown in K5 in Figure 14B, the media projection management service (MediaProjectionManagerService) can obtain candidate screens and candidate interfaces. For example, the media projection management service (MediaProjectionManagerService) can call the getDisplayIds method of the display management service (DisplayManagerService) to obtain a list of all current screens, and determine the candidate screens based on the screen list; and call the getWindowIds method of the window management service (WindowManagerService) to obtain a list of all current windows, and determine the candidate interfaces based on the window list. After obtaining the candidate screens and candidate interfaces, as shown in K6 in Figure 14B, the MediaProjectionManagerService can pop up a first interface that includes one or more candidate screen options and one or more candidate interface options for the user to select the content interface they want to share. For example, the MediaProjectionManagerService can call the addWindow method of the WindowManagerService to pop up the first interface.
[0180] It should be noted that Figure 14B is only an example of a possible internal processing process of the first terminal device. In actual applications, it may include more or fewer steps than Figure 14B. For example, step K3 shown in Figure 14B can also be omitted, depending on the specific system process of the first terminal device. The embodiment of this application does not make specific limitations.
[0181] S1403: The first terminal device creates a first virtual screen for screen sharing.
[0182] The first virtual screen is used to map the interface to be shared and then support sharing it to the second terminal device through the sharing function. For example, the virtual screen used for screen sharing is the first virtual screen shown in FIG13 .
[0183] As a possible implementation method, as shown in K4 in Figure 14B, the first terminal device can call the createVirtualDisplay method of the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to create a first virtual screen (such as VirtualDisplay1) for screen sharing.
[0184] S1404: The first terminal device receives a second operation. The second operation is an operation in which the user selects a candidate screen option (eg, recorded as the second option) corresponding to the third terminal device on the first interface.
[0185] As an example, the second operation may be an operation in which the user clicks on a candidate screen option corresponding to the third terminal device on the first interface.
[0186] For example, taking the first interface as interface 1503 shown in (b) in Figure 15 as an example, the second operation can be the user clicking the "local screen" option, the "third terminal device screen" option or the "fourth terminal device screen" option on interface 1503.
[0187] Of course, the embodiment of the present application does not specifically limit the form and specific method of the user's second operation on the first interface. For example, the second operation can also be a voice command, a preset sliding gesture, a preset body movement, a preset eye movement, etc. when the first terminal device displays the first interface.
[0188] S1405: In response to the second operation, the first terminal device renders the interface on the screen of the third terminal device (referred to as the third interface) on the first virtual screen.
[0189] As a possible implementation, as shown in K7 in FIG14B , in response to the second operation, the first terminal device may call the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to map the virtual screen corresponding to the screen of the third terminal device. Further, as shown in K8 in FIG14B , the media projection management service (MediaProjectionManagerService) may map the fourth virtual screen (i.e., VirtualDisplay3) corresponding to the third terminal device and render it on the first virtual screen (i.e., VirtualDisplay1).
[0190] As a possible implementation method, the media projection management service of the first terminal device can successfully map the fourth virtual screen (i.e., VirtualDisplay3) according to the DisplayID of the fourth virtual screen (i.e., VirtualDisplay3) through the newly added interface for screen mapping between the media projection management service and the display management service.
[0191] It can be understood that since the third interface is rendered on the fourth virtual screen (i.e., VirtualDisplay3), the above process of rendering the third interface on the first virtual screen is imperceptible to the display screen of the first terminal device, and therefore will not interrupt the task that the user is performing on the foreground display of the first terminal device.
[0192] S1406: The first terminal device sends interface data of the third interface rendered on the first virtual screen to the second terminal device.
[0193] The third interface may include at least one window. The interface data of the third interface is used to represent the elements (such as text, controls, images, icons, links, options, etc.) on the content interface of the window on the third interface, as well as the specific layout of each element (such as display position, display form, size, format, etc.).
[0194] In some examples, the first terminal device can send the interface data of the third interface to the second terminal device in real time. In some examples, the first terminal device can convert the interface data of the third interface into a video file and then periodically send it to the second terminal device. The embodiments of the present application do not specifically limit the specific method and process for the first terminal device to send the interface data of the third interface to the second terminal device.
[0195] As a possible implementation method, as shown in K9a and K9b in Figure 14B, after obtaining the interface data of the third interface from the display management service (DisplayManagerService), the media projection management service (MediaProjectionManagerService) can send it to the first application to call the screen content sharing function provided by the first application (such as screen content sharing Surface), and send the interface data of the third interface to the second terminal device through the preset communication connection between the second terminal device.
[0196] It should be noted that in the embodiments of the present application, there may be multiple second terminal devices. For example, if a first terminal device and multiple second terminal devices join the same conference group, the first terminal device can send interface data of the third interface to the multiple second terminal devices so that the multiple second terminal devices can all successfully display the third interface shared by the first terminal device.
[0197] S1407: The second terminal device displays the third interface.
[0198] As an example, the second terminal device can display the third interface in the shared content area on the interface of the first application. For example, if the first terminal device and the second terminal device have joined the same conference group, such as the same conference group provided by the first application (such as an office meeting application), the second terminal device can display the third interface in the shared content area on the interface of the first application.
[0199] Of course, the present application does not limit the specific form in which the second terminal device displays the third interface. For example, in some examples, the second terminal device may also display the third interface in full screen based on the screen content sharing function.
[0200] For example, if the second operation is the user clicking the "Third Terminal Device Screen" option on interface 1503 as shown in FIG16(a), after receiving the second operation, the first terminal device can send interface data of the upper interface on the third terminal device screen (i.e., the third interface) to the second terminal device. Correspondingly, after receiving the interface data of the third interface, as shown in FIG16(b), the second terminal device displays the document "XX2" interface and the document "XX3" interface on the third terminal device screen.
[0201] In some embodiments, the first terminal device may also, when displaying a first interface including one or more candidate screen options and one or more candidate interface options, share the interface corresponding to any candidate interface option with the second terminal device based on the user's selection of any candidate interface option. For example, as shown in FIG17 , a screen content sharing method provided in an embodiment of the present application may further include S1401-S1403 and S1701-S1704, wherein S1401-S1403 may refer to the above description, and S1701-S1704 are specifically as follows:
[0202] S1701: The first terminal device receives a second operation. The second operation is an operation in which the user selects a candidate interface option (such as the first option) corresponding to the second interface on the first interface.
[0203] As an example, the second operation may be an operation in which the user clicks on a candidate interface option corresponding to the second interface on the first interface.
[0204] For example, taking the first interface as interface 1503 shown in (b) in Figure 15 as an example, the second operation can be the user clicking on the video "XXXX" interface option, the document "XX1" interface option, the document "XX2" interface option or the document "XX3" interface option on interface 1503.
[0205] Of course, the embodiment of the present application does not specifically limit the form and specific method of the user's second operation on the first interface. For example, the second operation can also be a voice command, a preset sliding gesture, a preset body movement, a preset eye movement, etc. when the first terminal device displays the first interface.
[0206] S1702: In response to the second operation, the first terminal device renders the second interface on the first virtual screen.
[0207] As a possible implementation manner, in response to the second operation, the first terminal device may call the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to map the second interface.
[0208] As a possible implementation method, the first terminal device can first create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared, and then move (or copy) the window where the second interface is located on the second virtual screen (i.e., VirtualDisplay0) corresponding to the display screen to the third virtual screen (i.e., VirtualDisplay2), and finally render the second interface on the first virtual screen (i.e., VirtualDisplay1) by mapping the third virtual screen (i.e., VirtualDisplay2) where the second interface is located.
[0209] As a possible implementation method, the first terminal device can call the createVirtualDisplay method of the display management service (DisplayManagerService) through the media projection management service (MediaProjectionManagerService) to create a third virtual screen (such as VirtualDisplay2) for temporarily storing the interface window to be shared.
[0210] S1703: The first terminal device sends interface data of the second interface rendered on the first virtual screen to the second terminal device.
[0211] S1704: The second terminal device displays the second interface.
[0212] For example, if the second operation is the user clicking the "Document XX3 Interface" option on interface 1503 as shown in FIG18(a), after receiving the second operation, the first terminal device can send interface data for the Document XX3 interface (i.e., the second interface) to the second terminal device. Correspondingly, after receiving the interface data for the second interface, the second terminal device displays the Document XX3 interface, as shown in FIG18(b).
[0213] For the specific process of S1702-S1703, please refer to the introduction of S905-S907 above, which will not be repeated here.
[0214] It can be understood that based on the screen content sharing method provided in Example 2, the first terminal device not only has the ability to map the local screen, but also has the ability to map the extended screen / collaborative screen. Taking the first terminal device with the software structure shown in Figure 7 as an example, the embodiment of the present application solves the problem that only the entire local screen can be shared before by improving the capabilities of the media projection management service (MediaProjectionManagerService) and the display management service (DisplayManagerService) in the software system of the first terminal device. By finely sharing and managing multiple virtual screen objects, the purpose of sharing the content of any screen in a targeted manner is achieved.
[0215] For example, based on the screen content sharing method provided in Example 2, a first terminal device can support sharing the first terminal device screen with a second terminal device, and can also support sharing the third terminal device screen or the fourth terminal device screen with the second terminal device. Based on this, if a user wants to share a certain interface, regardless of which screen the interface is currently displayed on, the user can share the interface by sharing the interface to the currently shared screen. Therefore, this method can effectively protect user privacy and improve user experience.
[0216] It should be noted that the above embodiment 2 of this application only takes the sharing of any entire screen from the first terminal device to the second terminal device in a multi-device scenario as an example. In actual applications, in a multi-device scenario, the first terminal device can also support sharing the content of any window in its local screen, extended screen, or collaborative screen to the second terminal device.
[0217] For example, in a multi-device scenario, after receiving the user's operation to share screen content to the second terminal device, the first interface displayed by the first terminal device may include not only candidate screen options, such as the first terminal device screen option, the extended screen option, the collaborative screen option, etc., but also options corresponding to the interface on the first terminal device screen, the extended screen and / or the collaborative screen. Furthermore, when the user selects a candidate screen option, the first terminal device may share the corresponding entire screen based on a method similar to Figure 14A or Figure 14B; or, when the user selects a candidate interface option, the first terminal device may move (or copy) the interface from the virtual screen on which it is located to a third virtual screen created for temporarily storing the interface window to be shared, and then successfully share the interface to the second terminal device by mapping the third virtual screen and rendering it on the first virtual screen used to share the screen content.
[0218] Exemplarily, based on the solution provided in the embodiment of the present application, the first terminal device shown in (a) in Figure 16 can also only share the document "XX1" interface or the video "XXXX" interface to the second terminal device, or share a task interface running in the background of the first terminal device, or any interface that is not running in the first terminal device, etc.
[0219] It should be understood that the various schemes of the embodiments of the present application can be reasonably combined and used, and the explanations or descriptions of the various terms appearing in the embodiments can be referenced or explained with each other in the various embodiments, without limitation to this.
[0220] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0221] It is understandable that, in order to implement the functions of any of the above-mentioned embodiments, the terminal device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0222] The embodiments of the present application can divide the terminal device into functional modules. For example, each functional module can be divided into corresponding functional modules, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical functional division. In actual implementation, other division methods may be used.
[0223] It should also be understood that the various modules in the terminal device can be implemented in software and / or hardware, without specific limitation. In other words, the electronic device is presented in the form of functional modules. The "module" here can refer to an application-specific integrated circuit (ASIC), a circuit, a processor and memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above-mentioned functions.
[0224] In an optional manner, when data transmission is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is implemented in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disk (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)).
[0225] The steps of the method or algorithm described in conjunction with the embodiments of the present application can be implemented in hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device. Of course, the processor and the storage medium can also exist as discrete components.
[0226] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
Claims
1. A screen content sharing method, characterized in that: Applied to a first terminal device, the method includes: In response to the received first operation, the first terminal device displays a first interface, where the first operation is used to share screen content with the second terminal device, the first interface includes at least one candidate interface option, and the at least one candidate interface option includes one or more of an option corresponding to an interface displayed on the first terminal device, an option corresponding to an interface displayed on an extended screen of the first terminal device, or an option corresponding to an interface displayed on a collaborative screen of the first terminal device; After receiving a second operation on a first option among the at least one candidate interface option, the first terminal device creates a first virtual screen; The first terminal device renders a second interface corresponding to the first option on the first virtual screen; The first terminal device shares the second interface on the first virtual screen with the second terminal device.
2. The method according to claim 1, characterized in that The first interface further includes at least one candidate screen option, wherein the at least one candidate screen option includes one or more of a screen option corresponding to a display screen of the first terminal device, an extended screen option of the first terminal device, or a collaborative screen option of the first terminal device; the method further includes: After receiving a third operation on a second option among the at least one candidate screen options, the first terminal device renders a third interface corresponding to the second option on the first virtual screen; The first terminal device shares the third interface on the first virtual screen with the second terminal device.
3. The method according to claim 1, characterized in that: The second interface is displayed on the display screen of the first terminal device or on a third terminal device, and the third terminal device is an extended screen device or a collaborative screen device of the first terminal device.
4. The method according to claim 3, characterized in that The task corresponding to the second interface is run in the foreground, background or not run in the first terminal device.
5. The method according to claim 3 or 4, characterized in that: The first terminal device renders the second interface corresponding to the first option on the first virtual screen, including: The first terminal device creates a third virtual screen; The first terminal device moves or copies the second interface from the second virtual screen to the third virtual screen; The first terminal device maps the third virtual screen and renders the mapped content on the first virtual screen; The second virtual screen corresponds to the display screen of the first terminal device.
6. The method according to claim 5, characterized in that The size of the third virtual screen is consistent with the size of the window where the second interface is located.
7. The method according to any one of claims 1 to 6, characterized in that Before the first terminal device shares the content on the first virtual screen with the second terminal device, the second interface is displayed on a display screen of the first terminal device, and after the first terminal device shares the content on the first virtual screen with the second terminal device, the method further includes: The first terminal device displays the second interface in a floating window.
8. The method according to claim 2, characterized in that: The second option is a screen option corresponding to the display screen of the first terminal device, and the first terminal device renders a third interface corresponding to the second option on the first virtual screen, including: The first terminal device maps the second virtual screen and renders the mapped content on the first virtual screen; The second virtual screen corresponds to the display screen of the first terminal device.
9. The method according to claim 2, characterized in that: The second option is a screen option corresponding to the display screen of the first terminal device, and the first terminal device renders a third interface corresponding to the second option on the first virtual screen, including: The first terminal device creates a third virtual screen; The first terminal device moves or copies the third interface from the second virtual screen to the third virtual screen; The first terminal device maps the third virtual screen and renders the mapped content on the first virtual screen; The second virtual screen corresponds to the display screen of the first terminal device.
10. The method according to claim 2, characterized in that The second option is an extended screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device maps the virtual screen corresponding to the extended screen and renders the mapped content on the first virtual screen; or, The second option is a collaborative screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device maps the virtual screen corresponding to the collaborative screen and renders the mapped content on the first virtual screen.
11. The method according to claim 2, characterized in that The second option is an extended screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the third interface from the virtual screen corresponding to the extended screen to the third virtual screen; the first terminal device maps the virtual screen corresponding to the extended screen and renders the mapped content on the first virtual screen; or, The second option is a collaborative screen option of the first terminal device, and the first terminal device renders the third interface corresponding to the second option on the first virtual screen, including: the first terminal device creates a third virtual screen; the first terminal device moves or copies the third interface from the virtual screen corresponding to the collaborative screen to the third virtual screen; the first terminal device maps the virtual screen corresponding to the collaborative screen and renders the mapped content on the first virtual screen.
12. A terminal device, characterized in that: The terminal device comprises: Display screen, used for interface display; a memory for storing computer program instructions; A processor, configured to execute the computer program instructions to support the terminal device to implement the method as described in any one of claims 1-11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processing circuit, the method according to any one of claims 1 to 11 is implemented.
14. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
15. A chip system, characterized in that: The chip system includes a processing circuit and a storage medium, wherein the storage medium stores computer program instructions; when the computer program instructions are executed by the processing circuit, the method as described in any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Methods for screen-sharing and apparatuses using the same
CN105204797A
Screen content sharing method and apparatus
CN106528021A
Screen acquisition method, terminal and storage medium
CN114691063A
Screen sharing method and related equipment
CN115509651A
Electronic device for sharing application and control method thereof
US20150120817A1
Cited By
Display device and display control method
WO2026144304A1
