Screen projection method, device, storage medium and electronic device

By creating an independent window decoupler and decoupled window in the screen projection management page, the problem of poor compatibility between multiple screen projection protocols is solved, simple and convenient projection and management of screen projection content is realized, and the cost of screen projection management is reduced. Improved the adjustability of the screencasting protocol.

CN114217759BActive Publication Date: 2024-09-17SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111509769.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-09-17
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

Existing screen projection solutions have poor compatibility among multiple screen projection protocols, resulting in complex page management and the need for a large number of interface expansions, resulting in poor screen projection adjustability and high management costs.

Method used

By creating a unique screen projection management page and an independent window decoupler for each terminal, the screen projection content of multiple terminals is displayed in the screen projection management page, and the preset layout manager and window extension class object are used to load the terminal's window control. Carrier, generates a decoupled window, and adjusts the display status according to the screen casting request, realizing simple and convenient management of multiple screen casting protocols.

Benefits of technology

It realizes the reliable and convenient projection of the screen projection contents of multiple terminals on the same terminal, reduces the cost of screen projection management, improves the adjustability of the screen projection protocol, avoids a large number of interface expansions, and simplifies the operation of the screen projection management page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114217759B
    Figure CN114217759B
Patent Text Reader

Abstract

The present application discloses a screen projection method, device, storage medium and electronic device, and relates to the field of Internet of Things technology. The method includes: responding to screen projection requests sent by multiple terminals, establishing a screen projection protocol channel corresponding to each of the terminals; receiving the projection content sent by each of the terminals through the screen projection protocol channel corresponding to each of the terminals; creating a screen projection management page and an independent window decoupler corresponding to each of the terminals; creating a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each of the terminals; displaying the projection content sent by the terminal corresponding to each of the decoupled windows in each of the decoupled windows, so as to display the projection content of multiple terminals in the screen projection management page. The present application effectively improves the adjustability of screen projection and reduces the cost of screen projection management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and specifically to a screen projection method, device, storage medium and electronic device. Background Art

[0002] Screen projection is the process of transferring the content of some devices to the projection device for display. For example, for screen projection needs, a connection can be established between a small-screen device and a large-screen device, and the small-screen device transmits the projection content to the large-screen device for display.

[0003] In some current screen projection solutions, due to the poor compatibility of screen projection protocols, there are solutions for screen projection through complex screen projection pages or window configuration methods. Especially in the scenario where terminals with multiple screen projection protocols are projected to the same terminal, there is complex page management and a large number of interface expansions are required, resulting in poor adjustability of screen projection and high management costs. Summary of the invention

[0004] The embodiment of the present application provides a screen projection solution, which can effectively improve the adjustability of screen projection and reduce the management cost of screen projection.

[0005] To solve the above technical problems, the present application provides the following technical solutions:

[0006] According to one embodiment of the present application, a screen projection method includes: responding to screen projection requests sent by multiple terminals, establishing a screen projection protocol channel corresponding to each of the terminals; receiving the projection content sent by each of the terminals through the screen projection protocol channel corresponding to each of the terminals; creating a screen projection management page and an independent window decoupler corresponding to each of the terminals; based on the independent window decoupler corresponding to each of the terminals, creating a decoupled window corresponding to each terminal in the screen projection management page; displaying the projection content sent by the terminal corresponding to each of the decoupled windows in each of the decoupled windows, so as to display the projection content of multiple terminals in the screen projection management page.

[0007] In some embodiments of the present application, the creation of a screen projection management page and an independent window decoupler corresponding to each of the terminals includes: creating a screen projection management page; creating an independent window control carrier corresponding to each of the terminals in the screen projection management page; and using the independent window control carrier corresponding to each of the terminals as an independent window decoupler corresponding to each of the terminals.

[0008] In some embodiments of the present application, a layout manager is preset in the screen projection management page; the independent window control carrier corresponding to each of the terminals is created in the screen projection management page, including: in the screen projection management page, a window extension class object inherited from an interface layout component is created for each of the terminals; the window extension class object of each of the terminals is loaded in the screen projection management page through the layout manager to display the independent window control carrier corresponding to each of the terminals in the screen projection management page.

[0009] In some embodiments of the present application, based on the independent window decoupler corresponding to each of the terminals, a decoupled window corresponding to each terminal is created in the screen projection management page, including: creating a window interface component inherited from the window class in the independent window decoupler corresponding to each of the terminals, so as to generate a decoupled window corresponding to each terminal in the screen projection management page.

[0010] In some embodiments of the present application, creating a screen projection management page includes: creating a globally unique page extension class object that inherits from a page component; and starting the page extension class object to display the screen projection management page.

[0011] In some embodiments of the present application, displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window includes: determining the number of the projection requests; adjusting the display state of the independent window decoupler corresponding to each terminal according to the number, so that the independent window decoupler corresponding to each terminal adjusts the display state of the decoupled window corresponding to each terminal; and displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window after adjusting the display state.

[0012] In some embodiments of the present application, the response to the screen projection requests sent by multiple terminals and the establishment of a screen projection protocol channel corresponding to each of the terminals include: receiving the screen projection requests sent by multiple terminals; identifying the screen projection protocol corresponding to each of the terminals based on the screen projection requests of each of the terminals; and establishing a screen projection protocol channel corresponding to each of the terminals based on the screen projection protocol corresponding to each of the terminals.

[0013] According to one embodiment of the present application, a screen projection device includes: a channel establishment module, which is used to respond to screen projection requests sent by multiple terminals and establish a screen projection protocol channel corresponding to each of the terminals; a content receiving module, which is used to receive the projection content sent by each terminal through the screen projection protocol channel corresponding to each of the terminals; a decoupler creation module, which is used to create a screen projection management page and an independent window decoupler corresponding to each of the terminals; a window creation module, which is used to create a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each of the terminals; and a display module, which is used to display the projection content sent by the terminal corresponding to each of the decoupled windows in each of the decoupled windows, so as to display the projection content of multiple terminals in the screen projection management page.

[0014] According to another embodiment of the present application, a storage medium stores computer-readable instructions thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0015] According to another embodiment of the present application, an electronic device may include: a memory storing computer-readable instructions; and a processor reading the computer-readable instructions stored in the memory to execute the method described in the embodiment of the present application.

[0016] In an embodiment of the present application, in response to screen projection requests sent by multiple terminals, a screen projection protocol channel corresponding to each terminal is established; the projection content sent by each terminal is received through the screen projection protocol channel corresponding to each terminal; a screen projection management page and an independent window decoupler corresponding to each terminal are created; based on the independent window decoupler corresponding to each terminal, a decoupled window corresponding to each terminal is created in the screen projection management page; and the projection content sent by the terminal corresponding to each decoupled window is displayed in each decoupled window, so that the projection content of multiple terminals can be displayed in the screen projection management page.

[0017] In this way, by creating a unique screen projection management page and an independent window decoupler corresponding to each terminal, a decoupled window corresponding to each terminal is created within the unique screen projection management page based on the independent window decoupler, and the projection content corresponding to multiple terminals can be reliably and conveniently projected to the same terminal (i.e., the projection receiving terminal). When faced with projection needs under multiple projection protocols, the projection management page can be managed simply and conveniently. Creating a decoupled window for the projection management page content does not require a large number of interface expansions. In the face of diverse projection protocols, the adjustability is effectively improved, and the projection management cost is effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of a system to which the embodiments of the present application can be applied is shown.

[0020] Figure 2 A flow chart of a screen projection method according to an embodiment of the present application is shown.

[0021] Figure 3 A screen projection flow chart according to a scenario of the present application is shown.

[0022] Figure 4 Shown according to Figure 3 Screen projection flow chart of the illustrated embodiment.

[0023] Figure 5 A block diagram of a screen projection device according to an embodiment of the present application is shown.

[0024] Figure 6 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0026] In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.

[0027] Figure 1 FIG. 1 is a schematic diagram showing a system 100 to which an embodiment of the present application can be applied. Figure 1 As shown, the system 100 may include multiple terminals 101 and terminals 102. Terminal 101 may be any computer device, such as a computer, tablet, mobile phone, smart watch, and home appliance, etc., and multiple terminals 101 may be 1 or at least 2. Home appliance may be a TV, air conditioner, water heater, etc. Terminal 102 may be an electronic device that receives screen projection content, such as a TV, set-top box, and other electronic devices.

[0028] Among them, multiple terminals 101 project their own screen projection content to terminal 102 based on the screen projection protocol they support. The screen projection protocol may include but is not limited to AirPlay, Miracast, DLNA and other standard or custom screen projection protocols; the screen projection content may include but is not limited to screen mirroring, video, audio, pictures and other content.

[0029] Multiple terminals 101 and terminal 102 may be connected via wired or wireless connections, and multiple terminals 101 and terminal 102 may be connected directly or indirectly.

[0030] In one implementation of this example, terminal 102 can respond to screen projection requests sent by multiple terminals 101, establish a screen projection protocol channel corresponding to each terminal 101; receive the projection content sent by each terminal 101 through the screen projection protocol channel corresponding to each terminal 101; create a screen projection management page and an independent window decoupler corresponding to each terminal 101; based on the independent window decoupler corresponding to each terminal 101, create a decoupled window corresponding to each terminal 101 in the screen projection management page; display the projection content sent by the terminal corresponding to each decoupled window in each decoupled window, so as to display the projection content of multiple terminals 101 in the screen projection management page.

[0031] For an example, see Figure 3 , multiple terminals 101 may include a transmitter A, a transmitter B, a transmitter C, a transmitter D and more transmitters (the more transmitters may be at least 1), and a corresponding decoupling window (i.e., a content display window) may be created for each terminal, including a decoupling window 310 corresponding to the transmitter A, a decoupling window 320 corresponding to the transmitter B, a decoupling window 330 corresponding to the transmitter C, a decoupling window 340 corresponding to the transmitter D and more decoupling windows 350 corresponding to the transmitters, and in each decoupling window, the projection content sent by the corresponding terminal is separately received and decoded for display.

[0032] Figure 2 The flowchart of the screen projection method according to an embodiment of the present application is schematically shown. The execution subject of the screen projection method can be any device, such as Figure 1The terminal 101 or the terminal 102 etc. are shown.

[0033] like Figure 2 As shown, the screen projection method may include steps S210 to S250.

[0034] Step S210, responding to screen projection requests sent by multiple terminals, and establishing a screen projection protocol channel corresponding to each terminal;

[0035] Step S220, receiving the screen projection content sent by each terminal through the screen projection protocol channel corresponding to each terminal;

[0036] Step S230, creating a screen projection management page and an independent window decoupler corresponding to each terminal;

[0037] Step S240: based on the independent window decoupler corresponding to each terminal, create a decoupled window corresponding to each terminal in the screen projection management page;

[0038] Step S250, displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window, so as to display the projection content of multiple terminals in the projection management page.

[0039] The following describes the specific process of each step when casting the screen.

[0040] In step S210, in response to screen projection requests sent by multiple terminals, a screen projection protocol channel corresponding to each terminal is established.

[0041] In the implementation of this example, the multiple terminals may be computers, tablets, mobile phones, smart watches, and home appliances, etc. The screen projection protocol channel is a network connection channel based on the screen projection protocol, which is a protocol for transmitting content on one device to another device for display via the network.

[0042] Multiple terminals may support different screen projection protocols. For example, the multiple terminals may include 4 terminals, among which one terminal supports the AirPlay screen projection protocol, two terminals support the Miracast screen projection protocol, and one terminal supports the DLNA screen projection protocol.

[0043] Among them, the screen projection request can be sent to the screen projection receiving terminal by the user by triggering the screen projection control on the sending device (i.e., multiple terminals). The screen projection request can carry relevant information of the terminal (such as terminal identification, screen projection protocol identification, and screen projection content, etc.). After receiving the screen projection request, the screen projection receiving terminal can quickly establish a screen projection protocol channel based on the relevant information. The screen projection protocol channels corresponding to each terminal are independent of each other.

[0044] In one embodiment, in response to screen projection requests sent by multiple terminals, a screen projection protocol channel corresponding to each terminal is established, including:

[0045] Receive screen projection requests sent by multiple terminals; identify the screen projection protocol corresponding to each terminal according to the screen projection request of each terminal; and establish the screen projection protocol channel corresponding to each terminal based on the screen projection protocol corresponding to each terminal.

[0046] The screen projection request sent by each terminal may include the terminal identifier corresponding to each terminal (for example, the terminal address) and the screen projection protocol identifier, etc. After the screen projection receiving terminal receives the screen projection request, it can determine the screen projection protocol corresponding to the terminal sending the screen projection request, and then establish a network connection channel (i.e., screen projection protocol channel) between the terminal sending the screen projection request and the screen projection receiving terminal based on the determined screen projection protocol.

[0047] For example, terminal A sends a screen projection request to the screen projection receiving terminal through the screen projection protocol P1, and the screen projection receiving terminal can establish a network connection channel C1 based on the screen projection protocol P1 with terminal A; terminal B sends a screen projection request to the screen projection receiving terminal through the screen projection protocol P2, and the screen projection receiving terminal can establish a network connection channel C2 based on the screen projection protocol P2 with terminal B.

[0048] In step S220, the screen projection content sent by each terminal is received through the screen projection protocol channel corresponding to each terminal.

[0049] In the implementation of this example, each terminal can send the projection content to the projection receiving terminal through its corresponding projection protocol channel based on its own projection protocol, and the projection terminal can display the projection content sent by each terminal after receiving it. The projection content may include but is not limited to screen mirroring, video, audio, pictures and other content.

[0050] In step S230, a screen projection management page and an independent window decoupler corresponding to each terminal are created.

[0051] In the implementation of this example, the screen projection management page is the only screen projection page on the screen projection receiving terminal. The projection contents of multiple terminals are displayed in the screen projection management page, and the screen projection management page can be automatically created through the page creation code. The independent window decoupler is an independent constraint component used to constrain the parameters and state of the display window. A corresponding independent window decoupler can be created for each terminal by calling the preset window decoupler. Among them, each terminal corresponds to an independent window decoupler, and the independent window decouplers corresponding to multiple terminals are independent of each other.

[0052] In one embodiment, creating a screen projection management page and an independent window decoupler corresponding to each terminal includes:

[0053] Create a screen projection management page; create an independent window control carrier corresponding to each terminal in the screen projection management page; use the independent window control carrier corresponding to each terminal as an independent window decoupler corresponding to each terminal.

[0054] In this embodiment, an independent window control carrier corresponding to each terminal is created in the screen projection management page, and an independent window decoupler corresponding to each terminal is created. The independent window control carrier is a carrier component that can carry the display window and control the parameters and status of the display window. By creating an independent window control carrier, an independent window decoupler can be created conveniently and efficiently.

[0055] In one embodiment, creating a screen projection management page includes: creating a globally unique page extension class object that inherits from a page component; and starting the page extension class object to display the screen projection management page.

[0056] The page component is the Activity standard UI component. The screen projection receiving terminal can create a globally unique page extension class object that inherits from the Activity standard UI component, and start the page extension class object to display the Activity page (i.e. the screen projection management page). Figure 4 In an example, the screen projection receiving terminal is an Android platform receiving device. The Android platform receiving device can create a globally unique page extension class object that inherits from the Activity standard UI component, and start the page extension class object to display the Activity page (i.e., the screen projection management page) 400. The Activity page (i.e., the screen projection management page) 400 inherits from the extension class of the Activity standard UI component.

[0057] In one embodiment, a layout manager is preset in the screen projection management page; and an independent window control carrier corresponding to each terminal is created in the screen projection management page, including:

[0058] In the screen projection management page, a window extension class object inherited from the interface layout component is created for each terminal; the window extension class object of each terminal is loaded in the screen projection management page through the layout manager to display the independent window control carrier corresponding to each terminal in the screen projection management page.

[0059] The preset layout manager is a preset component for managing window extension class objects. In one example, the preset layout manager can be a FragmentManager class object inside an Activity page. The interface layout component can be a component for organizing the interface layout in the projection management page. In one example, the interface layout component can be a Fragment standard UI component.

[0060] The screen projection receiving terminal can create a window extension class object that inherits from the interface layout component for each terminal in the screen projection management page, and then load the window extension class object of each terminal in the screen projection management page through the preset layout manager. It can conveniently and efficiently manage the window extension class objects and organize the interface layout in the screen projection management page, and display the independent window control carrier corresponding to each terminal.

[0061] See also Figure 4 In one example, multiple terminals may include a transmitter A, a transmitter B, a transmitter C, a transmitter D, and more transmitters (the more transmitters may be at least 1). The screen projection receiving terminal may create an independent window control carrier 410 corresponding to transmitter A, an independent window control carrier 420 corresponding to transmitter B, an independent window control carrier 430 corresponding to transmitter C, an independent window control carrier 440 corresponding to transmitter D, and independent window control carriers 450 corresponding to more transmitters, respectively, for transmitter A, transmitter B, transmitter C, transmitter D, and more transmitters. The independent window control carrier corresponding to each terminal is inherited from the extended class of the Fragment standard UI component.

[0062] In step S240, based on the independent window decoupler corresponding to each terminal, a decoupled window corresponding to each terminal is created in the screen projection management page.

[0063] In the implementation of this example, the independent window decoupler is an independent constraint component used to constrain the parameters and status of the display window. A display window can be created in the independent window decoupler corresponding to each terminal. Then, in the screen projection management page, the parameters and status of the display window can be constrained based on the independent window decoupler corresponding to each terminal to obtain the decoupled window corresponding to each terminal. The decoupled windows between multiple terminals are independent of each other.

[0064] In one embodiment, based on the independent window decoupler corresponding to each terminal, a decoupled window corresponding to each terminal is created in the screen projection management page, including:

[0065] A window interface component inherited from the window class is created in the independent window decoupler corresponding to each terminal to generate a decoupled window corresponding to each terminal in the screen projection management page.

[0066] The window class can be a View class, and the window interface component is a standard UI component inherited from the View class. The screen projection receiving terminal can create a standard UI component inherited from the View class in each independent window decoupler, and then generate a decoupled window corresponding to each terminal based on the standard UI component inherited from the View class.

[0067] In one example, the independent window decoupler is an independent window control carrier, see Figure 4The screen projection receiving terminal creates an independent window control carrier 410 corresponding to sender A, an independent window control carrier 420 corresponding to sender B, an independent window control carrier 430 corresponding to sender C, an independent window control carrier 440 corresponding to sender D, and independent window control carriers 450 corresponding to more senders for sender A, sender B, sender C, sender D, and more senders.

[0068] Then, the screen projection receiving terminal can create a window interface component that inherits from the window class in each independent window carrier to generate a decoupled window corresponding to each terminal in the screen projection management page, create a decoupled window 411 in the independent window control carrier 410, create a decoupled window 421 in the independent window control carrier 420, create a decoupled window 431 in the independent window control carrier 430, create a decoupled window 441 in the independent window control carrier 440, and create a decoupled window 451 in the independent window control carrier 450. Each decoupled window inherits from the standard UI component of the View class.

[0069] In step S250, the projection content sent by the terminal corresponding to each decoupled window is displayed in each decoupled window, so that the projection content of multiple terminals is displayed in the projection management page.

[0070] In the implementation of this example, for example, see Figure 4 , the projection content sent by the terminal corresponding to the decoupling window 411 (i.e., the sending end A) can be displayed in the decoupling window 411, and the projection content sent by the terminal corresponding to the decoupling window 421 (i.e., the sending end B) can be displayed in the decoupling window 421, and so on. The projection content sent by the terminal corresponding to each decoupling window is displayed in each decoupling window, and then the projection content of multiple terminals is displayed in the projection management page (for example, the projection management page 400).

[0071] In one embodiment, displaying the screen projection content sent by the terminal corresponding to each decoupled window in each decoupled window includes:

[0072] Determine the number of screen projection requests; adjust the display state of the independent window decoupler corresponding to each terminal according to the number, so that the independent window decoupler corresponding to each terminal adjusts the display state of the decoupled window corresponding to each terminal; in each decoupled window after adjusting the display state, display the screen projection content sent by the terminal corresponding to each decoupled window.

[0073] The number of screen projection requests is the total number of multiple terminals, such as 1 or 5. The screen projection receiving terminal can adjust the display state of the independent window decoupler corresponding to each terminal according to the total number, for example, all independent window decouplers are displayed in equal parts in the screen projection management page, or the independent window decoupler corresponding to a terminal is highlighted in combination with the weight information in a screen projection request (such as the importance of the projection content marked on the terminal).

[0074] By adjusting the display state of the independent window decoupler corresponding to each terminal, the independent window decoupler corresponding to each terminal can conveniently and reliably constrain and adjust the display state of the decoupled window corresponding to each terminal during the change process, and obtain the decoupled window after the display state is adjusted.

[0075] In one example, the screen projection receiving terminal can adjust the display parameters and status of the Fragment component (i.e., the independent window control carrier) on the Activity page according to the total number of Fragment extension class objects and business needs, such as displaying multiple Fragment components in equal parts and highlighting a certain Fragment component, and then adjust the display parameters and status of the View component (i.e., the decoupled window) inside it through the Fragment component.

[0076] In this way, based on steps S210 to S250, it is possible to respond to screen projection requests sent by multiple terminals and establish a screen projection protocol channel corresponding to each terminal; receive the projection content sent by each terminal through the screen projection protocol channel corresponding to each terminal; create a screen projection management page and an independent window decoupler corresponding to each terminal; based on the independent window decoupler corresponding to each terminal, create a decoupled window corresponding to each terminal in the screen projection management page; display the projection content sent by the terminal corresponding to each decoupled window in each decoupled window, so that the projection content of multiple terminals can be displayed in the screen projection management page.

[0077] Furthermore, by creating a unique screen projection management page and an independent window decoupler corresponding to each terminal, a decoupled window corresponding to each terminal is created within the unique screen projection management page based on the independent window decoupler, and the projection content corresponding to multiple terminals can be reliably and conveniently projected to the same terminal (i.e., the projection receiving terminal). When faced with projection needs under multiple projection protocols, the projection management page can be managed simply and conveniently. Creating a decoupled window for the projection management page content does not require a large number of interface expansions. In the face of diverse projection protocols, the adjustability is effectively improved, and the projection management cost is effectively reduced.

[0078] The present application can implement a method for multi-instance (i.e., multiple terminals) screen projection that does not rely on a specific screen projection protocol, supports multiple standard or custom screen projection protocols such as AirPlay, Miracast, DLNA, etc., and displays the projection content from multiple senders on a screen projection receiving terminal at the same time through multiple different screen projection protocols, allowing users to pay attention to the content of multiple senders at the same time, thereby improving the efficiency of obtaining information.

[0079] The multi-instance screen projection method of the present application adopts a solution of a single Activity page + multiple Fragment components (i.e., a unique screen projection management page + multiple independent window decouplers). Compared with the solution of multiple Activity pages in the related art, there is no need to worry about the complex management of multiple Activity pages that deviate from Android specifications, including life cycle, focus switching, dynamic layout, etc. Multiple Fragment components can be directly placed in the FragmentManager class object of a single Activity page for decoupled display; compared with the solution of a single Activity page + multiple View components in the related art, it avoids directly performing a large number of interface extensions on standard UI components inherited from the View class, which is convenient for decoupling and adjusting the business layout for different projection instances, and reducing the management cost of a single Activity for multiple projection instances.

[0080] In order to facilitate better implementation of the screen projection method provided in the embodiment of the present application, the embodiment of the present application also provides a screen projection device based on the above screen projection method. The meanings of the terms are the same as those in the above screen projection method, and the specific implementation details can refer to the description in the method embodiment. Figure 5 A block diagram of a screen projection device according to an embodiment of the present application is shown.

[0081] like Figure 5 As shown, the screen projection device 500 may include a channel establishment module 510, a content receiving module 520, a decoupler creation module 530, a window creation module 340 and a display module 350.

[0082] The channel establishment module 510 can be used to respond to screen projection requests sent by multiple terminals and establish a screen projection protocol channel corresponding to each of the terminals; the content receiving module 520 can be used to receive the projection content sent by each of the terminals through the screen projection protocol channel corresponding to each of the terminals; the decoupler creation module 530 can be used to create a screen projection management page and an independent window decoupler corresponding to each of the terminals; the window creation module 540 can be used to create a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each of the terminals; the display module 550 can be used to display the projection content sent by the terminal corresponding to each of the decoupled windows in each of the decoupled windows, so as to display the projection content of multiple terminals in the screen projection management page.

[0083] In one embodiment, the decoupler creation module 530 includes: a page creation unit, used to create a screen projection management page; a carrier creation unit, used to create an independent window control carrier corresponding to each of the terminals in the screen projection management page; and a carrier determination unit, used to use the independent window control carrier corresponding to each of the terminals as an independent window decoupler corresponding to each of the terminals.

[0084] In one embodiment, a layout manager is preset in the screen projection management page; the carrier creation unit is used to: create a window extension class object inherited from the interface layout component for each of the terminals in the screen projection management page; load the window extension class object of each of the terminals in the screen projection management page through the layout manager to display an independent window control carrier corresponding to each of the terminals in the screen projection management page.

[0085] In one embodiment, the window creation module 540 includes: a window interface component creation unit, which is used to create a window interface component inherited from the window class in an independent window decoupler corresponding to each of the terminals, so as to generate a decoupled window corresponding to each terminal in the screen projection management page.

[0086] In one embodiment, the page creation unit is used to: create a globally unique page extension class object that inherits from the page component; and start the page extension class object to display the screen projection management page.

[0087] In one embodiment, the display module 550 includes: a number determination unit, used to determine the number of the screen projection requests; an adjustment unit, used to adjust the display state of the independent window decoupler corresponding to each of the terminals according to the number, so that the independent window decoupler corresponding to each of the terminals adjusts the display state of the decoupled window corresponding to each of the terminals; and a display unit, used to display the projection content sent by the terminal corresponding to each of the decoupled windows in each decoupled window after the display state is adjusted.

[0088] In one embodiment, the channel establishment module 510 includes: a request receiving unit, used to receive screen projection requests sent by multiple terminals; an identification unit, used to identify the screen projection protocol corresponding to each terminal according to the screen projection request of each terminal; and a protocol channel establishment unit, used to establish a screen projection protocol channel corresponding to each terminal based on the screen projection protocol corresponding to each terminal.

[0089] In this way, the screen projection device 500 can create a unique screen projection management page and an independent window decoupler corresponding to each terminal, and create a decoupled window corresponding to each terminal based on the independent window decoupler in the unique screen projection management page, so as to reliably and conveniently project the projection content corresponding to multiple terminals to the same terminal (i.e., the projection receiving terminal). When faced with screen projection needs under multiple screen projection protocols, the screen projection management page can be managed simply and conveniently. Creating a decoupled window for the content of the screen projection management page does not require a large number of interface expansions. In the face of diverse screen projection protocols, the adjustability is effectively improved, and the screen projection management cost is effectively reduced.

[0090] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0091] In addition, an embodiment of the present application further provides an electronic device, which may be a terminal or a server. Figure 6 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0092] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0093] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the computer device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0094] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 602 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, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0095] The electronic device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0096] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0097] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions. For example, the processor 601 may execute the application programs corresponding to the following steps:

[0098] In response to screen projection requests sent by multiple terminals, establish a screen projection protocol channel corresponding to each of the terminals; receive the projection content sent by each of the terminals through the screen projection protocol channel corresponding to each of the terminals; create a screen projection management page and an independent window decoupler corresponding to each of the terminals; based on the independent window decoupler corresponding to each of the terminals, create a decoupled window corresponding to each terminal in the screen projection management page; display the projection content sent by the terminal corresponding to each of the decoupled windows in each of the decoupled windows, so that the projection content of multiple terminals can be displayed in the screen projection management page.

[0099] In some embodiments of the present application, when creating a screen projection management page and an independent window decoupler corresponding to each of the terminals, the processor 601 can execute: creating a screen projection management page; creating an independent window control carrier corresponding to each of the terminals in the screen projection management page; and using the independent window control carrier corresponding to each of the terminals as an independent window decoupler corresponding to each of the terminals.

[0100] In some embodiments of the present application, a layout manager is preset in the screen projection management page; when an independent window control carrier corresponding to each of the terminals is created in the screen projection management page, the processor 601 can execute: in the screen projection management page, a window extension class object inherited from an interface layout component is created for each of the terminals; and the window extension class object of each of the terminals is loaded in the screen projection management page through the layout manager to display the independent window control carrier corresponding to each of the terminals in the screen projection management page.

[0101] In some embodiments of the present application, when creating a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each terminal, the processor 601 can execute: creating a window interface component inherited from the window class in the independent window decoupler corresponding to each terminal to generate a decoupled window corresponding to each terminal in the screen projection management page.

[0102] In some embodiments of the present application, when creating the screen projection management page, the processor 601 can execute: creating a globally unique page extension class object that inherits from the page component; starting the page extension class object to display the screen projection management page.

[0103] In some embodiments of the present application, when displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window, the processor 601 can execute: determining the number of the projection requests; adjusting the display state of the independent window decoupler corresponding to each terminal according to the number, so that the independent window decoupler corresponding to each terminal adjusts the display state of the decoupled window corresponding to each terminal; and displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window after adjusting the display state.

[0104] In some embodiments of the present application, when responding to screen projection requests sent by multiple terminals and establishing a screen projection protocol channel corresponding to each of the terminals, the processor 601 can execute: receiving screen projection requests sent by multiple terminals; identifying the screen projection protocol corresponding to each of the terminals based on the screen projection requests of each of the terminals; and establishing a screen projection protocol channel corresponding to each of the terminals based on the screen projection protocol corresponding to each of the terminals.

[0105] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0106] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0107] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0108] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0109] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0110] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A screen projection method, characterized in that: include: Responding to screen projection requests sent by multiple terminals, establishing a screen projection protocol channel corresponding to each of the terminals; Receiving the screen projection content sent by each terminal through the screen projection protocol channel corresponding to each terminal; Create a screen projection management page and an independent window decoupler corresponding to each of the terminals, wherein a layout manager is preset in the screen projection management page; Based on the independent window decoupler corresponding to each of the terminals, a decoupled window corresponding to each terminal is created in the screen projection management page; Displaying the projection content sent by the terminal corresponding to each decoupled window in each decoupled window, so as to display the projection content of multiple terminals in the projection management page; The creation of the screen projection management page and the independent window decoupler corresponding to each of the terminals includes: creating a screen projection management page; creating an independent window control carrier corresponding to each of the terminals in the screen projection management page, wherein the independent window control carrier corresponding to each of the terminals is respectively used as an independent window decoupler corresponding to each of the terminals; the independent window decoupler is an independent constraint component used to constrain the parameters and states of the display window; The step of creating an independent window control carrier corresponding to each terminal in the screen projection management page includes: In the screen projection management page, a window extension class object inherited from the interface layout component is created for each terminal; and, The window extension class object of each terminal is loaded in the screen projection management page through the layout manager to display the independent window control carrier corresponding to each terminal in the screen projection management page.

2. The method according to claim 1, characterized in that The creating a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each terminal includes: A window interface component inherited from the window class is created in the independent window decoupler corresponding to each of the terminals to generate a decoupled window corresponding to each terminal in the screen projection management page.

3. The method according to claim 1, characterized in that The creation of the screen projection management page includes: Create a globally unique page extension class object that inherits from the page component; Start the page extension class object to display the screen projection management page.

4. The method according to claim 1, characterized in that: The displaying in each of the decoupled windows the projection content sent by the terminal corresponding to each of the decoupled windows includes: Determining the number of the screen projection requests; Adjusting the display state of the independent window decoupler corresponding to each of the terminals according to the number, so that the independent window decoupler corresponding to each of the terminals adjusts the display state of the decoupled window corresponding to each of the terminals; In each decoupled window after adjusting the display state, the screen projection content sent by the terminal corresponding to each decoupled window is displayed.

5. The method according to claim 1, characterized in that The responding to the screen projection requests sent by the multiple terminals and establishing a screen projection protocol channel corresponding to each of the terminals includes: Receive screen projection requests sent by multiple terminals; According to the screen projection request of each terminal, identifying the screen projection protocol corresponding to each terminal; Based on the screen projection protocol corresponding to each of the terminals, a screen projection protocol channel corresponding to each of the terminals is established.

6. A screen projection device, characterized in that: include: A channel establishment module, used to respond to screen projection requests sent by multiple terminals and establish a screen projection protocol channel corresponding to each terminal; A content receiving module, used to receive the screen projection content sent by each terminal through the screen projection protocol channel corresponding to each terminal; A decoupler creation module, used to create a screen projection management page and an independent window decoupler corresponding to each of the terminals, wherein a layout manager is preset in the screen projection management page; The creation of a screen projection management page and an independent window decoupler corresponding to each of the terminals includes: creating a screen projection management page; creating an independent window control carrier corresponding to each of the terminals in the screen projection management page, wherein the independent window control carrier corresponding to each of the terminals is respectively used as an independent window decoupler corresponding to each of the terminals; the independent window decoupler is an independent constraint component used to constrain parameters and states of a display window; the creation of an independent window control carrier corresponding to each of the terminals in the screen projection management page includes: in the screen projection management page, creating a window extension class object inherited from an interface layout component for each of the terminals; and, loading the window extension class object of each of the terminals in the screen projection management page through the layout manager, so as to display the independent window control carrier corresponding to each of the terminals in the screen projection management page; A window creation module, used to create a decoupled window corresponding to each terminal in the screen projection management page based on the independent window decoupler corresponding to each terminal; The display module is used to display the projection content sent by the terminal corresponding to each decoupled window in each of the decoupled windows, so as to display the projection content of multiple terminals in the projection management page.

7. A storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 5.

8. An electronic device, characterized in that: include: a memory storing computer-readable instructions; A processor reads the computer-readable instructions stored in the memory to execute the method according to any one of claims 1 to 5.