Screen projection method, system and equipment and storage medium
Generate and bind the screen recognition information and local network network information through the server, and automatically establish a screen -screen connection based on the identification information, solve the cumbersome problem of the existing screen -casting method according to the identification information, and realize the automated screen connection. Improvement of convenience.
Patent Information
- Application Number
- CN202310886753.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2025-01-28
AI Technical Summary
The existing screen projection method requires users to manually check whether the device is in the same LAN, and the connection process is cumbersome.
To generate and bind the screen recognition information and local network network information through the server, the screen sending end and the receiving end will automatically establish a screen connection based on the recognition information.
Under the situation of unspirpted users, the screen connection is automatically completed, simplifying the screening process, and improving the convenience of connection.
Smart Images

Figure CN119383392A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to screen projection technology, and in particular to a screen projection method, system, device and storage medium. Background Art
[0002] Most existing screen projection methods use Miracast technology, which is a wireless direct connection technology. When using Miracast technology for screen projection, a wireless direct connection will be established between the projection device and the smart tablet, and the screen image will be directly transmitted to the projection device via wireless. Usually, the projection receiving end generates a projection code, and the user enters the projection code at the projection sending end to establish a connection and realize screen projection.
[0003] The premise of using Miracast technology to project the screen is that both devices involved in the projection are in the same local area network. Therefore, before projecting the screen, users usually need to check the IP addresses or wireless names of both devices involved in the projection to confirm whether they are in the same local area network. When the two devices involved in the projection are not in the same local area network, the user will be prompted with a connection failure after entering the projection code at the projection transmitter. The user needs to first check the network of both devices involved in the projection and connect both devices involved in the projection to the same local area network. This process will be cumbersome. Summary of the invention
[0004] The present invention provides a screen projection method, system, device and storage medium to automatically complete the screen projection connection without the user's perception, thereby greatly improving the convenience of the screen projection connection.
[0005] In a first aspect, the present invention provides a screen projection method, which is applied to a server, wherein the server is connected to a screen projection sending end and a screen projection receiving end respectively, and the method comprises:
[0006] In response to a screen projection request sent by the screen projection receiving end, generating first screen projection identification information, wherein the screen projection request includes network information of a local area network to which the screen projection receiving end is connected;
[0007] Bind the first screen projection identification information with the network information of the local area network connected to the screen projection receiving end to obtain binding information, and send the first screen projection identification information to the screen projection receiving end, and the screen projection receiving end displays the first screen projection identification information;
[0008] In response to a parsing request sent by the screen projection sending end, the network information bound to the first screen projection identification information is parsed from the binding information, the parsing request includes the first screen projection identification information, and the screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user;
[0009] The network information is sent to the screen projection sending end. When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information and establishes a screen projection connection with the screen projection receiving end.
[0010] In a second aspect, the present invention further provides a screen projection method, which is applied to a screen projection receiving end, wherein the screen projection receiving end is connected to a server, and the server is connected to the screen projection sending end, and the method comprises:
[0011] In response to a user operation, a screen projection request is sent to the server, the screen projection request includes network information of a local area network to which the screen projection receiving end is connected, the server generates first screen projection identification information in response to the screen projection request, and binds the first screen projection identification information with the network information of the local area network to which the screen projection receiving end is connected to obtain binding information;
[0012] Receive the first screen projection identification information sent by the server, and display the first screen projection identification information on the display screen of the screen projection receiving end.
[0013] In a third aspect, the present invention further provides a screen projection method, which is applied to a screen projection sending end, wherein the screen projection sending end is connected to a server, and the server is connected to the screen projection receiving end, and the method comprises:
[0014] In response to the first screen projection identification information input by the user, a parsing request is sent to the server, the parsing request includes the first screen projection identification information, and the server parses the network information bound to the first screen projection identification information from the binding information in response to the parsing request, the network information being the network information of the local area network to which the screen projection receiving end is connected;
[0015] receiving the network information sent by the server;
[0016] Determine whether the screen projection sending end and the screen projection receiving end are in the same local area network based on the network information;
[0017] If so, establishing a screen projection connection with the screen projection receiving end based on the network information;
[0018] If not, connect to the same local area network as the screen projection receiving end based on the network information, and establish a screen projection connection with the screen projection receiving end.
[0019] In a fourth aspect, the present invention further provides a screen projection system, comprising a server, a screen projection sending end and a screen projection receiving end, wherein the server is connected to the screen projection sending end and the screen projection receiving end respectively;
[0020] The screen projection receiving end sends a screen projection request to the server in response to the user's operation, wherein the screen projection request includes network information of the local area network to which the screen projection receiving end is connected;
[0021] The server generates first screen projection identification information in response to the screen projection request, binds the first screen projection identification information with network information of the local area network connected to the screen projection receiving end to obtain binding information, and sends the first screen projection identification information to the screen projection receiving end;
[0022] The screen projection receiving end displays the first screen projection identification information;
[0023] The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user, wherein the parsing request includes the first screen projection identification information;
[0024] In response to the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end;
[0025] When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information and establishes a screen projection connection with the screen projection receiving end.
[0026] In a fifth aspect, the present invention further provides an electronic device, comprising:
[0027] one or more processors;
[0028] A memory for storing one or more programs;
[0029] When the one or more programs are executed by the one or more processors, the one or more processors implement the screen projection method as described in the first aspect of the present invention, or the screen projection method as described in the second aspect of the present invention, or the screen projection method as described in the third aspect of the present invention.
[0030] In a sixth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the screen projection method as described in the first aspect of the present invention, or the screen projection method as described in the second aspect of the present invention, or the screen projection method as described in the third aspect of the present invention.
[0031] In the screen projection method provided by the present invention, the server generates first screen projection identification information in response to a screen projection request sent by a screen projection receiving end, and binds the first screen projection identification information with the network information of the local area network connected to the screen projection receiving end, and the server sends the first screen projection identification information to the screen projection receiving end. The screen projection receiving end displays the first screen projection identification information. The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user. Based on the first screen projection identification information in the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end. When the screen projection sender and the screen projection receiver are in the same LAN, the screen projection connection is established with the screen projection receiver based on network information. When the screen projection sender and the screen projection receiver are not in the same LAN, the screen projection sender is connected to the same LAN as the screen projection receiver based on network information and establishes a screen projection connection with the screen projection receiver. During the screen projection process, the user does not need to check whether the screen projection receiver and the screen projection sender are in the same LAN, nor does he need to manually connect the screen projection sender to the same LAN as the screen projection receiver. The entire connection establishment process is automatically completed without the user's perception, which greatly improves the convenience of the screen projection connection.
[0032] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flowchart of a screen projection method provided by an embodiment of the present invention;
[0035] Figure 2 A flowchart of another screen projection method provided by an embodiment of the present invention;
[0036] Figure 3 A flowchart of another screen projection method provided by an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of the interaction between various devices in a screen projection method provided by an embodiment of the present invention;
[0038] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention.
[0039] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] Figure 1 A flowchart of a screen projection method provided by an embodiment of the present invention. This embodiment can be applied to automatically detect whether the screen projection sending end and the screen projection receiving end are in the same local area network, automatically connect the screen projection sending end to the local area network where the screen projection receiving end is located, and establish a screen projection connection. The method can be executed by a server, and the server is connected to the screen projection sending end and the screen projection receiving end respectively, such as Figure 1 As shown, the screen projection method includes the following steps:
[0043] S101. Generate first screen projection identification information in response to a screen projection request sent by a screen projection receiving end, where the screen projection request includes network information of a local area network to which the screen projection receiving end is connected.
[0044] In the embodiment of the present invention, the corresponding screen projection application is installed on the screen projection receiving end and the screen projection sending end, so that the screen projection receiving end and the screen projection sending end can realize the corresponding functions in the screen projection method described in the present invention, and communicate with the server. The screen projection sending end is the sender of the screen projection content, which can be a smart phone, a tablet computer or a personal computer, etc. The screen projection receiving end is the receiver of the screen projection content, which can be a TV, a display or a conference tablet, etc., and the embodiment of the present invention does not limit this.
[0045] When the user needs to project the content displayed on the screen projection sending end to the screen projection receiving end, the user operates the screen projection application on the screen projection receiving end. The screen projection receiving end generates a screen projection request in response to the user's operation and sends it to the server, wherein the screen projection request includes the network information of the local area network to which the screen projection receiving end is connected.
[0046] The server generates first screen projection identification information in response to the screen projection request sent by the screen projection receiving end. The first screen projection identification information can be a string of letters, numbers and symbols, which is usually called a screen projection code.
[0047] In some embodiments of the present invention, the server responds to the projection request sent by the projection receiving end, and uses a random algorithm to randomly generate an identification code of a preset digit (e.g., 6 digits) as the first projection identification information. The embodiment of the present invention does not limit the algorithm for generating the identification code. For example, a random number generation function is called to generate an identification code of a preset digit (e.g., 6 digits).
[0048] S102. Bind the first screen projection identification information with the network information of the local area network connected to the screen projection receiving end to obtain binding information, and send the first screen projection identification information to the screen projection receiving end, which displays the first screen projection identification information.
[0049] The server parses the screen projection request, obtains the network information of the local area network connected to the screen projection receiving end, and then binds the generated first screen projection identification information with the network information of the local area network connected to the screen projection receiving end to obtain binding information. Among them, binding can be to establish an association relationship between the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, so that the bound network information can be determined by the first screen projection identification information. After binding the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, the server sends the first screen projection identification information to the screen projection receiving end.
[0050] After the screen projection receiving end receives the first screen projection identification information, the first screen projection identification information is displayed on the display screen of the screen projection receiving end. Exemplarily, as described above, the first screen projection identification information can be an identification code of preset digits, and the screen projection receiving end can directly display the identification code or display a QR code containing the first screen projection identification information, which is not limited in the embodiments of the present invention.
[0051] S103. In response to a parsing request sent by the screen projection sending end, the network information bound to the first screen projection identification information is parsed from the binding information. The parsing request includes the first screen projection identification information. The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user.
[0052] After the user sees the first screen projection identification information displayed on the screen projection receiving end, the user inputs the first screen projection identification information into the screen projection sending end. As mentioned above, the screen projection receiving end can directly display the identification code (first screen projection identification information), or it can display a QR code containing the first screen projection identification information. Accordingly, the user can directly enter the identification code in the screen projection application of the screen projection receiving end, or operate the screen projection application of the screen projection receiving end to call the camera, scan the QR code displayed on the screen projection receiving end, and parse the first screen projection identification information therefrom. The embodiment of the present invention is not limited here. The screen projection receiving end sends a resolution request to the server in response to the first screen projection identification information input by the user, and the resolution request includes the first screen projection identification information input by the user.
[0053] The server responds to the parsing request sent by the screen projection sending end, and parses the network information bound to the first screen projection identification information from the binding information. Exemplarily, the server parses the first screen projection identification information from the parsing request, and uses the first screen projection identification information as an index to search for the binding information containing the first screen projection identification information, and determines the network information in the binding information.
[0054] S104. Send network information to the screen projection sending end. When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information and establishes a screen projection connection with the screen projection receiving end.
[0055] The server sends the network information parsed in step S103 to the screen projection sending end.
[0056] Based on the network information, the screen projection sender determines whether the screen projection sender and the screen projection receiver are in the same local area network. If so, it directly establishes a screen projection connection with the screen projection receiver based on the network information; if not, it connects to the same local area network as the screen projection receiver based on the network information and establishes a screen projection connection with the screen projection receiver.
[0057] Exemplarily, in some embodiments of the present invention, the above network information includes the network name (also known as Service Set Identifier, SSID) of the wireless local area network to which the screen projection receiving end is connected, the connection password, and the network address of the screen projection receiving end in the wireless local area network. It should be noted that the network address is not an IP address. The IP address consists of a network address and a host number, and the host number of the network address is 0. For example, for the IP address 192.168.1.25, its host number is 25 and the network address is 192.168.1.0.
[0058] The screen projection sender determines whether the screen projection sender and the screen projection receiver are in the same local area network through the network name and network address. If so, it directly establishes a screen projection connection with the screen projection receiver based on the network address; if not, based on the network name and connection password of the wireless LAN connected to the screen projection receiver, the screen projection sender is automatically connected to the same local area network as the screen projection receiver, and a screen projection connection is established with the screen projection receiver.
[0059] In actual applications, the server usually serves multiple screen projection receiving terminals. There may be a situation where the server generates two identical first screen projection identification information and sends them to different screen projection receiving terminals respectively. This will cause confusion in the subsequent screen projection connection. For example, the user's original intention is to establish a screen projection connection with screen projection receiving terminal A, but in fact, a connection is established with screen projection receiving terminal B. In some embodiments of the present invention, in order to solve the above problem, after generating the first screen projection identification information, it also includes:
[0060] 1. Search all existing first screen projection identification information to see whether there is first screen projection identification information that is the same as the generated first screen projection identification information.
[0061] After generating the first screen projection identification information each time, the server compares the generated first screen projection identification information with all existing first screen projection identification information to find out whether there is first screen projection identification information that is the same as the generated first screen projection identification information.
[0062] 2. If so, delete the generated first screen projection identification information, regenerate the first screen projection identification information, and return to the step of searching among all existing first screen projection identification information to see whether there is first projection identification information that is identical to the generated first projection identification information, until there is no first projection identification information that is identical to the generated first projection identification information among all existing first screen projection identification information.
[0063] 3. If not, save the generated first screen projection identification information.
[0064] Through the above method, it can be ensured that the first screen projection identification information generated by the server each time is unique, avoiding confusion in the screen projection connection.
[0065] It should be noted that in other embodiments of the present invention, the random algorithm can also be improved to ensure that the first screen projection identification information generated each time is unique, and the embodiments of the present invention will not be repeated here.
[0066] Figure 2 A flowchart of another screen projection method provided by an embodiment of the present invention. This embodiment can be applied to automatically detect whether the screen projection sending end and the screen projection receiving end are in the same local area network, automatically connect the screen projection sending end to the local area network where the screen projection receiving end is located, and establish a screen projection connection. The method can be executed by the screen projection receiving end, the screen projection receiving end is connected to the server, and the server is connected to the screen projection sending end, such as Figure 2 As shown, the screen projection method includes the following steps:
[0067] S201. In response to the user's operation, a screen projection request is sent to the server, where the screen projection request includes the network information of the local area network to which the screen projection receiving end is connected. The server generates first screen projection identification information in response to the screen projection request, and binds the first screen projection identification information with the network information of the local area network to which the screen projection receiving end is connected to obtain binding information.
[0068] In the embodiment of the present invention, the corresponding screen projection application is installed on the screen projection receiving end and the screen projection sending end, so that the screen projection receiving end and the screen projection sending end can realize the corresponding functions in the screen projection method described in the present invention, and communicate with the server. The screen projection sending end can be a smart phone, a tablet computer or a personal computer, etc., and the screen projection receiving end can be a TV, a display or a conference tablet, etc., which is not limited in the embodiment of the present invention.
[0069] When the user needs to project the content displayed on the screen projection sending end to the screen projection receiving end, the user operates the screen projection application on the screen projection receiving end. The screen projection receiving end generates a screen projection request in response to the user's operation and sends it to the server, wherein the screen projection request includes the network information of the local area network to which the screen projection receiving end is connected.
[0070] The server generates first screen projection identification information in response to the screen projection request sent by the screen projection receiving end. The first screen projection identification information can be a string of letters, numbers and symbols, usually referred to as a screen projection code. Specifically, the production process of the first screen projection identification information has been described in detail in the aforementioned embodiment, and this embodiment will not be repeated here. The server parses the screen projection request, obtains the network information of the local area network connected to the screen projection receiving end, and then binds the generated first screen projection identification information and the network information of the local area network connected to the screen projection receiving end to obtain binding information. Among them, binding can be to establish an association relationship between the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, so that the bound network information can be determined by the first screen projection identification information. After binding the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, the server sends the first screen projection identification information to the screen projection receiving end.
[0071] S202. Receive the first screen projection identification information sent by the server, and display the first screen projection identification information on the display screen of the screen projection receiving end.
[0072] After the screen projection receiving end receives the first screen projection identification information, the first screen projection identification information is displayed on the display screen of the screen projection receiving end. Exemplarily, as described above, the first screen projection identification information can be an identification code of preset digits, and the screen projection receiving end can directly display the identification code or display a QR code containing the first screen projection identification information, which is not limited in the embodiments of the present invention.
[0073] After the user sees the first screen projection identification information displayed on the screen projection receiving end, the user inputs the first screen projection identification information into the screen projection sending end. As mentioned above, the screen projection receiving end can directly display the identification code (first screen projection identification information), or it can display a QR code containing the first screen projection identification information. Accordingly, the user can directly enter the identification code in the screen projection application of the screen projection receiving end, or operate the screen projection application of the screen projection receiving end to call the camera, scan the QR code displayed on the screen projection receiving end, and parse the first screen projection identification information therefrom. The embodiment of the present invention is not limited here. The screen projection receiving end sends a resolution request to the server in response to the first screen projection identification information input by the user, and the resolution request includes the first screen projection identification information input by the user.
[0074] In response to the parsing request sent by the screen projection sending end, the server parses the network information bound to the first screen projection identification information from the binding information. Exemplarily, the server parses the first screen projection identification information from the parsing request, and uses the first screen projection identification information as an index to search for the binding information containing the first screen projection identification information, and determines the network information in the binding information, and sends the network information to the screen projection sending end.
[0075] Based on the network information, the screen projection sender determines whether the screen projection sender and the screen projection receiver are in the same local area network. If so, it directly establishes a screen projection connection with the screen projection receiver based on the network information; if not, it connects to the same local area network as the screen projection receiver based on the network information and establishes a screen projection connection with the screen projection receiver.
[0076] Exemplarily, in some embodiments of the present invention, the above network information includes the network name (also known as Service Set Identifier, SSID) of the wireless local area network to which the screen projection receiving end is connected, the connection password, and the network address of the screen projection receiving end in the wireless local area network. It should be noted that the network address is not an IP address. The IP address consists of a network address and a host number, and the host number of the network address is 0. For example, for the IP address 192.168.1.25, its host number is 25 and the network address is 192.168.1.0.
[0077] The screen projection sender determines whether the screen projection sender and the screen projection receiver are in the same local area network through the network name and network address. If so, it directly establishes a screen projection connection with the screen projection receiver based on the network address; if not, based on the network name and connection password of the wireless LAN connected to the screen projection receiver, the screen projection sender is automatically connected to the same local area network as the screen projection receiver, and a screen projection connection is established with the screen projection receiver.
[0078] In some embodiments of the present invention, the screen projection method further includes:
[0079] 1. In response to the user's operation, determine whether a connection can be established with the server.
[0080] Exemplarily, when the user operates the screen projection receiving end and attempts to establish a connection with the server for the first time, the screen projection receiving end will send a connection test signal to the server. If the screen projection receiving end is successfully connected to the server, the server will send back a feedback signal. When the screen projection receiving end receives the feedback signal, it is considered that the screen projection receiving end is successfully connected to the server. If the screen projection receiving end does not receive the feedback signal, it is determined that the screen projection receiving end is not connected to the server after a preset period of time.
[0081] 2. If yes, execute the step of sending a screen projection request to the server.
[0082] 3. If not, generate second screen projection identification information, bind the second screen projection identification information to the network information of the local area network connected to the screen projection receiving end, and display the second screen projection identification information on the display screen of the screen projection receiving end.
[0083] If the screen projection receiving end is not connected to the server, the screen projection receiving end generates a second screen projection identification information, binds the second screen projection identification information to the network information of the local area network to which the screen projection receiving end is connected, and displays the second screen projection identification information on the display screen of the screen projection receiving end. As mentioned above, the network information may include the network name, connection password and network address of the wireless local area network to which the screen projection receiving end is connected. The second screen projection identification information may be a preset digit identification code, and the screen projection receiving end may directly display the identification code or may display a QR code containing the second screen projection identification information.
[0084] After the user sees the second screen projection identification information displayed on the screen projection receiving end, the user inputs the second screen projection identification information into the screen projection sending end. As mentioned above, the screen projection receiving end can directly display the identification code (the second screen projection identification information), or it can display a QR code containing the second screen projection identification information. Accordingly, the user can directly enter the identification code in the screen projection application of the screen projection receiving end, or operate the screen projection application of the screen projection receiving end to call the camera, scan the QR code displayed on the screen projection receiving end, and parse the second screen projection identification information from it. The embodiments of the present invention are not limited here.
[0085] The screen projection receiving end responds to the second screen projection identification information input by the user, and attempts to parse the network information of the local area network connected to the screen projection receiving end bound to the second screen projection identification information based on the second screen projection identification information. If the network information of the local area network connected to the screen projection receiving end is parsed, it means that the screen projection receiving end and the screen projection sending end are in the same local area network, and then a connection is established with the screen projection receiving end based on the network information; if the network information of the local area network connected to the screen projection receiving end cannot be parsed, it means that the screen projection receiving end and the screen projection sending end are not in the same local area network, and then a prompt message of screen projection failure is displayed on the display screen of the screen projection sending end.
[0086] Figure 3 A flowchart of another screen projection method provided by an embodiment of the present invention. This embodiment can be applied to automatically detect whether the screen projection sending end and the screen projection receiving end are in the same local area network, automatically connect the screen projection sending end to the local area network where the screen projection receiving end is located, and establish a screen projection connection. The method can be executed by the screen projection sending end, the screen projection sending end is connected to the server, and the server is connected to the screen projection receiving end, such as Figure 3 As shown, the screen projection method includes the following steps:
[0087] S301. In response to the first screen projection identification information input by the user, a parsing request is sent to the server, and the parsing request includes the first screen projection identification information. In response to the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and the network information is the network information of the local area network connected to the screen projection receiving end.
[0088] In the embodiment of the present invention, the corresponding screen projection application is installed on the screen projection receiving end and the screen projection sending end, so that the screen projection receiving end and the screen projection sending end can realize the corresponding functions in the screen projection method described in the present invention, and communicate with the server. The screen projection sending end can be a smart phone, a tablet computer or a personal computer, etc., and the screen projection receiving end can be a TV, a display or a conference tablet, etc., which is not limited in the embodiment of the present invention.
[0089] When the user needs to project the content displayed on the screen projection sending end to the screen projection receiving end, the user operates the screen projection application on the screen projection receiving end. The screen projection receiving end generates a screen projection request in response to the user's operation and sends it to the server, wherein the screen projection request includes the network information of the local area network to which the screen projection receiving end is connected.
[0090] The server generates first screen projection identification information in response to the screen projection request sent by the screen projection receiving end. The first screen projection identification information can be a string of letters, numbers and symbols, usually referred to as a screen projection code. Specifically, the production process of the first screen projection identification information has been described in detail in the aforementioned embodiment, and this embodiment will not be repeated here. The server parses the screen projection request, obtains the network information of the local area network connected to the screen projection receiving end, and then binds the generated first screen projection identification information and the network information of the local area network connected to the screen projection receiving end to obtain binding information. Among them, binding can be to establish an association relationship between the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, so that the bound network information can be determined by the first screen projection identification information. After binding the first screen projection identification information and the network information of the local area network connected to the screen projection receiving end, the server sends the first screen projection identification information to the screen projection receiving end.
[0091] After the screen projection receiving end receives the first screen projection identification information, the first screen projection identification information is displayed on the display screen of the screen projection receiving end. Exemplarily, as described above, the first screen projection identification information can be an identification code of preset digits, and the screen projection receiving end can directly display the identification code or display a QR code containing the first screen projection identification information, which is not limited in the embodiments of the present invention.
[0092] After the user sees the first screen projection identification information displayed on the screen projection receiving end, the user inputs the first screen projection identification information into the screen projection sending end. As mentioned above, the screen projection receiving end can directly display the identification code (first screen projection identification information), or it can display a QR code containing the first screen projection identification information. Accordingly, the user can directly enter the identification code in the screen projection application of the screen projection receiving end, or operate the screen projection application of the screen projection receiving end to call the camera, scan the QR code displayed on the screen projection receiving end, and parse the first screen projection identification information therefrom. The embodiment of the present invention is not limited here. The screen projection receiving end sends a resolution request to the server in response to the first screen projection identification information input by the user, and the resolution request includes the first screen projection identification information input by the user.
[0093] In response to the parsing request sent by the screen projection sending end, the server parses the network information bound to the first screen projection identification information from the binding information. Exemplarily, the server parses the first screen projection identification information from the parsing request, and uses the first screen projection identification information as an index to search for the binding information containing the first screen projection identification information, and determines the network information in the binding information, and sends the network information to the screen projection sending end.
[0094] S302: Receive network information sent by the server.
[0095] The screen projection receiver receives the network information sent by the server.
[0096] S303. Determine whether the screen projection sending end and the screen projection receiving end are in the same local area network based on network information.
[0097] The screen projection receiving end determines whether the screen projection sending end and the screen projection receiving end are in the same local area network based on the network information. If so, step S304 is executed; if not, step S305 is executed.
[0098] Exemplarily, in some embodiments of the present invention, the above-mentioned network information includes the network name (also known as Service Set Identifier, SSID) of the wireless local area network to which the screen projection receiving end is connected, the connection password, and the network address of the screen projection receiving end in the wireless local area network. It should be noted that the network address is not an IP address. The IP address consists of a network address and a host number, and the host number of the network address is 0. For example, for the IP address 192.168.1.25, its host number is 25 and the network address is 192.168.1.0. The screen projection sending end determines whether the screen projection sending end and the screen projection receiving end are in the same local area network by the network name and network address. Exemplarily, the judgment process is as follows:
[0099] 1. Get the network name of the wireless LAN to which the screen projection sender is connected and the network address of the screen projection sender.
[0100] 2. Determine whether the network name and network address of the screen projection sender are the same as the network name and network address of the screen projection receiver.
[0101] 3. If the network name and network address are the same, it is determined that the screen projection sender and the screen projection receiver are in the same local area network.
[0102] 4. If the network name or network address is different, it is determined that the screen projection sender and the screen projection receiver are not in the same local area network.
[0103] In an embodiment of the present invention, only when the network name and network address of the screen projection sending end are the same as the network name and network address of the screen projection receiving end, it is determined that the screen projection sending end and the screen projection receiving end are in the same local area network, thereby avoiding the situation where the network names of some wireless local area networks are the same, resulting in confusion in subsequent screen projection connections.
[0104] S304: Establish a screen projection connection with the screen projection receiving end based on network information.
[0105] If the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. Exemplarily, the screen projection connection is directly established with the screen projection receiving end based on the network address.
[0106] S305. Connect to the same local area network as the screen projection receiving end based on network information, and establish a screen projection connection with the screen projection receiving end.
[0107] If the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information, and a screen projection connection is established with the screen projection receiving end. Exemplarily, based on the network name and connection password of the wireless local area network connected to the screen projection receiving end, the screen projection sending end is automatically connected to the same local area network as the screen projection receiving end, and a screen projection connection is established with the screen projection receiving end.
[0108] In some embodiments of the present invention, as described above, when the user operates the screen projection receiving terminal and attempts to establish a connection with the server for the first time, the screen projection receiving terminal will send a connection test signal to the server. If the screen projection receiving terminal is successfully connected to the server, the server will feedback a feedback signal. When the screen projection receiving terminal receives the feedback signal, it is considered that the screen projection receiving terminal is successfully connected to the server; if the screen projection receiving terminal does not receive the feedback signal, it is determined that the screen projection receiving terminal is not connected to the server after a preset time. If the screen projection receiving terminal cannot connect to the server, the screen projection receiving terminal generates a second screen projection identification information, binds the second screen projection identification information to the network information of the local area network to which the screen projection receiving terminal is connected, and displays the second screen projection identification information on the display screen of the screen projection receiving terminal. As described above, the network information may include the network name of the wireless local area network to which the screen projection receiving terminal is connected, the connection password, and the network address of the screen projection receiving terminal in the wireless local area network. The second screen projection identification information may be an identification code of preset digits, and the screen projection receiving terminal may directly display the identification code or display a QR code containing the second screen projection identification information.
[0109] After the user sees the second screen projection identification information displayed on the screen projection receiving end, the user inputs the second screen projection identification information into the screen projection sending end. As mentioned above, the screen projection receiving end can directly display the identification code (the second screen projection identification information), or it can display a QR code containing the second screen projection identification information. Accordingly, the user can directly enter the identification code in the screen projection application of the screen projection receiving end, or operate the screen projection application of the screen projection receiving end to call the camera, scan the QR code displayed on the screen projection receiving end, and parse the second screen projection identification information from it. The embodiments of the present invention are not limited here.
[0110] The screen projection receiving end responds to the second screen projection identification information input by the user, and attempts to parse the network information of the local area network connected to the screen projection receiving end bound to the second screen projection identification information based on the second screen projection identification information. If the network information of the local area network connected to the screen projection receiving end is parsed, it means that the screen projection receiving end and the screen projection sending end are in the same local area network, and then a connection is established with the screen projection receiving end based on the network information; if the network information of the local area network connected to the screen projection receiving end cannot be parsed, it means that the screen projection receiving end and the screen projection sending end are not in the same local area network, and then a prompt message of screen projection failure is displayed on the display screen of the screen projection sending end.
[0111] In the screen projection method provided by an embodiment of the present invention, the server generates first screen projection identification information in response to a screen projection request sent by a screen projection receiving end, and binds the first screen projection identification information with the network information of the local area network to which the screen projection receiving end is connected, and the server sends the first screen projection identification information to the screen projection receiving end. The screen projection receiving end displays the first screen projection identification information. The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user. Based on the first screen projection identification information in the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end. When the screen projection sender and the screen projection receiver are in the same LAN, the screen projection connection is established with the screen projection receiver based on network information. When the screen projection sender and the screen projection receiver are not in the same LAN, the screen projection sender is connected to the same LAN as the screen projection receiver based on network information and establishes a screen projection connection with the screen projection receiver. During the screen projection process, the user does not need to check whether the screen projection receiver and the screen projection sender are in the same LAN, nor does he need to manually connect the screen projection sender to the same LAN as the screen projection receiver. The entire connection establishment process is automatically completed without the user's perception, which greatly improves the convenience of the screen projection connection.
[0112] Figure 4 A schematic diagram of interaction between devices in a screen projection method provided by an embodiment of the present invention, such as Figure 4 As shown, the process of the screen projection method is as follows:
[0113] The screen projection receiving end generates a screen projection request in response to the user's operation and sends it to the server, wherein the screen projection request includes the network information of the local area network to which the screen projection receiving end is connected. The server generates first screen projection identification information in response to the screen projection request sent by the screen projection receiving end, and then binds the generated first screen projection identification information and the network information of the local area network to which the screen projection receiving end is connected to obtain binding information. After receiving the first screen projection identification information, the screen projection receiving end displays the first screen projection identification information on the display screen of the screen projection receiving end. The screen projection receiving end sends a parsing request to the server in response to the first screen projection identification information input by the user, and the parsing request includes the first screen projection identification information input by the user. In response to the parsing request sent by the screen projection sending end, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end. The screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. Specifically, the screen projection sending end determines whether the screen projection sending end and the screen projection receiving end are in the same local area network. If so, it directly establishes a screen projection connection with the screen projection receiving end based on the network information; if not, it connects to the same local area network as the screen projection receiving end based on the network information, and establishes a screen projection connection with the screen projection receiving end.
[0114] The specific process of each of the above steps has been described in detail in the aforementioned embodiments, and will not be repeated here in the embodiments of the present invention.
[0115] The present invention also provides a screen projection system, comprising a server, a screen projection sending end and a screen projection receiving end, wherein the server is connected to the screen projection sending end and the screen projection receiving end respectively;
[0116] The screen projection receiving end sends a screen projection request to the server in response to the user's operation, where the screen projection request includes network information of the local area network to which the screen projection receiving end is connected;
[0117] The server generates first screen projection identification information in response to the screen projection request, binds the first screen projection identification information with the network information of the local area network connected to the screen projection receiving end, obtains binding information, and sends the first screen projection identification information to the screen projection receiving end;
[0118] The screen projection receiving end displays the first screen projection identification information;
[0119] The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user, where the parsing request includes the first screen projection identification information;
[0120] In response to the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end;
[0121] When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end connects to the same local area network as the screen projection receiving end based on network information and establishes a screen projection connection with the screen projection receiving end.
[0122] Specifically, the steps performed by the server, the screen projection sending end and the screen projection receiving end in the screen projection method have been recorded in detail in the aforementioned embodiments, and the embodiments of the present invention will not be repeated here.
[0123] Figure 5 A schematic diagram of the structure of an electronic device provided for an embodiment of the present invention, the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0124] like Figure 5 As shown, the electronic device includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0125] A number of components in the electronic device are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0126] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the screen projection method.
[0127] In some embodiments, the screen projection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the screen projection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the screen projection method in any other appropriate manner (e.g., by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0130] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0131] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0132] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0133] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0134] An embodiment of the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the screen projection method provided in any embodiment of the present application.
[0135] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0137] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A screen projection method, characterized in that: Applied to a server, the server is connected to a screen projection sending end and a screen projection receiving end respectively, and the method includes: In response to a screen projection request sent by the screen projection receiving end, generating first screen projection identification information, wherein the screen projection request includes network information of a local area network to which the screen projection receiving end is connected; Bind the first screen projection identification information with the network information of the local area network connected to the screen projection receiving end to obtain binding information, and send the first screen projection identification information to the screen projection receiving end, and the screen projection receiving end displays the first screen projection identification information; In response to a parsing request sent by the screen projection sending end, the network information bound to the first screen projection identification information is parsed from the binding information, the parsing request includes the first screen projection identification information, and the screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user; The network information is sent to the screen projection sending end. When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information and establishes a screen projection connection with the screen projection receiving end.
2. The screen projection method according to claim 1, characterized in that: Generate the first screen projection identification information, including: A random algorithm is used to randomly generate an identification code with preset digits as the first projection screen identification information.
3. The screen projection method according to claim 1, characterized in that: After generating the first projection screen identification information, the method further includes: Searching among all existing first screen projection identification information whether there is first screen projection identification information that is identical to the generated first screen projection identification information; If so, delete the generated first screen projection identification information, regenerate the first screen projection identification information, and return to execute the step of searching whether there is first screen projection identification information identical to the generated first screen projection identification information among all existing first screen projection identification information, until there is no first screen projection identification information identical to the generated first screen projection identification information among all existing first screen projection identification information; If not, save the generated first screen projection identification information.
4. The screen projection method according to any one of claims 1 to 3, characterized in that: The network information includes the network name, connection password and network address of the wireless local area network to which the screen projection receiving end is connected.
5. A screen projection method, characterized in that: Applied to a screen projection receiving end, the screen projection receiving end is connected to a server, and the server is connected to the screen projection sending end, and the method includes: In response to a user operation, a screen projection request is sent to the server, the screen projection request includes network information of a local area network to which the screen projection receiving end is connected, the server generates first screen projection identification information in response to the screen projection request, and binds the first screen projection identification information with the network information of the local area network to which the screen projection receiving end is connected to obtain binding information; Receive the first screen projection identification information sent by the server, and display the first screen projection identification information on the display screen of the screen projection receiving end.
6. The screen projection method according to claim 5, characterized in that: Also includes: In response to a user operation, determining whether a connection can be established with the server; If yes, executing the step of sending a screen projection request to the server; If not, generate second screen projection identification information, bind the second screen projection identification information to the network information of the local area network to which the screen projection receiving end is connected, and display the second screen projection identification information on the display screen of the screen projection receiving end.
7. The screen projection method according to claim 5 or 6, characterized in that: The network information includes the network name, connection password and network address of the wireless local area network to which the screen projection receiving end is connected.
8. A screen projection method, characterized in that: Applied to a screen projection sending end, the screen projection sending end is connected to a server, and the server is connected to the screen projection receiving end, and the method includes: In response to the first screen projection identification information input by the user, a parsing request is sent to the server, the parsing request includes the first screen projection identification information, and the server parses the network information bound to the first screen projection identification information from the binding information in response to the parsing request, the network information being the network information of the local area network to which the screen projection receiving end is connected; receiving the network information sent by the server; Determine whether the screen projection sending end and the screen projection receiving end are in the same local area network based on the network information; If so, establishing a screen projection connection with the screen projection receiving end based on the network information; If not, connect to the same local area network as the screen projection receiving end based on the network information, and establish a screen projection connection with the screen projection receiving end.
9. The screen projection method according to claim 8, characterized in that: The network information includes the network name, connection password and network address of the wireless local area network to which the screen projection receiving end is connected.
10. The screen projection method according to claim 9, characterized in that: Determining whether the screen projection sending end and the screen projection receiving end are in the same local area network based on the network information includes: Obtain the network name of the wireless local area network to which the screen projection sending end is connected and the network address of the screen projection sending end; Determine whether the network name and network address of the screen projection sending end are the same as the network name and network address of the screen projection receiving end; If the network name and the network address are the same, it is determined that the screen projection sending end and the screen projection receiving end are in the same local area network; If the network name or the network address is different, it is determined that the screen projection sending end and the screen projection receiving end are not in the same local area network.
11. The screen projection method according to any one of claims 8 to 10, characterized in that: Also includes: In response to the second screen projection identification information input by the user, and based on the second screen projection identification information, parsing the network information of the local area network connected to the screen projection receiving end bound to the second screen projection identification information, when the screen projection receiving end cannot establish a connection with the server, the second screen projection identification information is generated, the second screen projection identification information is bound to the network information of the local area network connected to the screen projection receiving end, and the second screen projection identification information is displayed on the display screen of the screen projection receiving end; If the network information of the local area network to which the screen projection receiving end is connected is parsed, a screen projection connection is established with the screen projection receiving end based on the network information; If the network information of the local area network to which the screen projection receiving end is connected cannot be parsed, a prompt message indicating that the screen projection has failed will be displayed on the display screen of the screen projection sending end.
12. A screen projection system, characterized in that: It includes a server, a screen projection sending end and a screen projection receiving end, wherein the server is connected to the screen projection sending end and the screen projection receiving end respectively; The screen projection receiving end sends a screen projection request to the server in response to the user's operation, wherein the screen projection request includes network information of the local area network to which the screen projection receiving end is connected; The server generates first screen projection identification information in response to the screen projection request, binds the first screen projection identification information with network information of the local area network connected to the screen projection receiving end to obtain binding information, and sends the first screen projection identification information to the screen projection receiving end; The screen projection receiving end displays the first screen projection identification information; The screen projection sending end sends a parsing request to the server in response to the first screen projection identification information input by the user, wherein the parsing request includes the first screen projection identification information; In response to the parsing request, the server parses the network information bound to the first screen projection identification information from the binding information, and sends the network information to the screen projection sending end; When the screen projection sending end and the screen projection receiving end are in the same local area network, the screen projection sending end establishes a screen projection connection with the screen projection receiving end based on the network information. When the screen projection sending end and the screen projection receiving end are not in the same local area network, the screen projection sending end is connected to the same local area network as the screen projection receiving end based on the network information and establishes a screen projection connection with the screen projection receiving end.
13. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the screen projection method as described in any one of claims 1-4, or the screen projection method as described in any one of claims 5-7, or the screen projection method as described in any one of claims 8-11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the screen projection method as described in any one of claims 1-4, or the screen projection method as described in any one of claims 5-7, or the screen projection method as described in any one of claims 8-11.