Method, device, equipment and storage medium for establishing wireless screen projection connection

Obtaining device connection information through the server and directly establishing a wireless screen projection connection, solving the problem of low connection efficiency caused by the mobile phone's low sensitivity to QR code recognition, and improving the speed of screen projection connection.

CN111913679BActive Publication Date: 2024-11-26GUANGZHOU FANXING ENTERTAINMENT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010802999.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-11
Publication Date
2024-11-26
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In the prior art, when a mobile phone establishes a wireless screen projection connection with a computer, the mobile phone has low sensitivity to the QR code, resulting in a long recognition time and low efficiency.

Method used

Directly obtain the device connection information of the second terminal through the server, avoiding the need for scanning the code to identify the phone, and directly establishing a wireless screen projection connection.

Benefits of technology

It reduces the time for mobile phones to establish wireless screen projection connections with computers and improves connection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111913679B_ABST
    Figure CN111913679B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for establishing a wireless screen projection connection, and belongs to the field of screen projection technology. The method includes: in response to screen projection of a target application on a first terminal, obtaining target account information logged in in the target application; sending a connection information acquisition request to a server, the connection information acquisition request carries the target account information, and the target account information is used by the server to obtain the first device connection information of the second terminal logged in to the target account information; in response to receiving the first device connection information returned by the server, establishing a wireless screen projection connection with the second terminal based on the first device connection information. Since the first device connection information of the second terminal is directly obtained through the server, rather than through the first terminal scanning the QR code or other operations to obtain it, the situation of multiple code scanning of the first terminal is avoided, thereby improving the efficiency of establishing a wireless screen projection connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of screen projection technology, and in particular to a method, device, equipment and storage medium for establishing a wireless screen projection connection. Background Art

[0002] Currently, users can download live broadcast applications on their mobile phones and use them to broadcast live video. However, due to the small screen size of mobile phones, the effect of broadcasting live video on mobile phones is poor, so many users choose to project the live video interface on their mobile phones onto their computers and then broadcast live video on their computers. Before projecting the live video interface on a mobile phone onto a computer, a wireless projection connection needs to be established between the mobile phone and the computer.

[0003] In the related technology, a wireless screen projection connection is established between a mobile phone and a computer through a code scanning technology. First, open the screen projection application on the computer, and display a QR code for mobile phone scanning on the computer interface. The QR code includes the computer device's MAC address (Media Access Control Address, Media Access Control Address), IP address (Internet Protocol Address) and other connection information. The mobile phone scans the QR code to identify the connection information in the QR code; then establishes a wireless screen projection connection with the computer through the identified connection information.

[0004] However, in the above-mentioned related technologies, due to the different recognition sensitivities of mobile phones, in response to the low recognition sensitivity of mobile phones, it takes a long time for mobile phones to recognize the QR code, and sometimes even requires the mobile phone to scan multiple times before the QR code can be successfully recognized. Therefore, the efficiency of establishing a wireless screen projection connection between a mobile phone and a computer through code scanning technology is low. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for establishing a wireless screen projection connection, which can improve the efficiency of establishing a wireless screen projection connection. The technical solution is as follows:

[0006] In a first aspect, a method for establishing a wireless screen projection connection is provided, the method comprising:

[0007] In response to casting the screen of a target application on the first terminal, obtaining target account information logged in to the target application;

[0008] Sending a connection information acquisition request to a server, the connection information acquisition request carrying the target account information, the target account information being used by the server to acquire first device connection information of a second terminal that logs in to the target account information;

[0009] In response to receiving the first device connection information returned by the server, a wireless screen projection connection is established with the second terminal based on the first device connection information.

[0010] In a possible implementation, establishing a wireless screen projection connection with the second terminal based on the first device connection information includes:

[0011] Display a screen projection button, where the screen projection button carries the first device connection information;

[0012] In response to the screen projection button being triggered, a screen projection connection request is sent to the second terminal based on the first device connection information, and the screen projection connection request is used for the second terminal to establish a wireless screen projection connection with the first terminal.

[0013] In another possible implementation, the method further includes:

[0014] In response to not receiving the first device connection information returned by the server, broadcasting a connection information message to the local area network where the first terminal is located, the connection information message carrying the second device connection information of the first terminal, the second device connection information being used for a second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information;

[0015] Receive the first device connection information returned by the second terminal.

[0016] In another possible implementation, before establishing a wireless screen projection connection with the second terminal based on the first device connection information, the method further includes:

[0017] Based on the first device connection information, performing data interaction verification between the second terminal and the first terminal;

[0018] In response to the data interaction verification between the second terminal and the first terminal being successful, the step of establishing a wireless screen projection connection with the second terminal based on the first device connection information is executed.

[0019] In another possible implementation, the method further includes:

[0020] A binding request is sent to the server, where the binding request carries the first device connection information and the target account information, and the server is used to bind the first device connection information and the target account information.

[0021] In a second aspect, a method for establishing a wireless screen projection connection is provided, the method comprising:

[0022] In response to the target application on the second terminal logging into the target account information, acquiring the first device connection information of the second terminal and the target account information;

[0023] Sending the first device connection information of the second terminal and the target account information to the server, wherein the server is used to send the first device connection information to the first terminal logged in to the target account information, and the first terminal is used to send a screen projection connection request to the second terminal based on the first device connection information;

[0024] Receive a screen projection connection request sent by the first terminal, and establish a wireless screen projection connection with the first terminal based on the screen projection connection request.

[0025] In a possible implementation, the method further includes:

[0026] In response to the target application on the second terminal not logging into the target account information, starting a local area network monitoring module;

[0027] Receiving, through the local area network monitoring module, a connection information message broadcast by the first terminal, wherein the connection information message carries the second device connection information of the first terminal;

[0028] Based on the second device connection information, the first device connection information is returned to the first terminal.

[0029] In a third aspect, a method for establishing a wireless screen projection connection is provided, the method comprising:

[0030] receiving a connection information acquisition request sent by a first terminal, wherein the connection information acquisition request carries target account information logged in to a target application on the first terminal;

[0031] According to the target account information, query the first device connection information of the second terminal used for screen projection;

[0032] The first device connection information is returned to the first terminal, and the first terminal is used to establish a wireless screen projection connection with the second terminal based on the first device connection information.

[0033] In another possible implementation, querying the first device connection information of the second terminal used for screen projection according to the target account information includes:

[0034] According to the target account information, querying the terminal identifier of the second terminal that logs in the target account information from the first corresponding relationship between the terminal identifier and the account information;

[0035] According to the terminal identifier, the first device connection information of the second terminal is queried from a second corresponding relationship between the terminal identifier and the device connection information.

[0036] In another possible implementation, the method further includes:

[0037] Receiving the target account information and the first device connection information sent by the second terminal;

[0038] The target account information and the terminal identification of the second terminal are stored in the first corresponding relationship, and the first device connection information and the terminal identification of the second terminal are stored in the second corresponding relationship.

[0039] In another possible implementation, querying the first device connection information of the second terminal used for screen projection according to the target account information includes:

[0040] According to the target account information, the first device connection information of the second terminal is queried from a third corresponding relationship between the account information and the device connection information.

[0041] In a fourth aspect, a device for establishing a wireless screen projection connection is provided, the device comprising:

[0042] A first acquisition module, configured to acquire target account information logged in in the target application in response to screen projection of the target application on the first terminal;

[0043] A first sending module, configured to send a connection information acquisition request to a server, wherein the connection information acquisition request carries the target account information, and the target account information is used by the server to acquire first device connection information of a second terminal that logs in to the target account information;

[0044] A connection module is used to establish a wireless screen projection connection with the second terminal based on the first device connection information received from the server.

[0045] In one possible implementation, the connection module is used to display a screen projection confirmation button, which carries the connection information of the first device; in response to the screen projection confirmation button being triggered, based on the first device connection information, a screen projection connection request is sent to the second terminal, and the screen projection connection request is used for the second terminal to establish a wireless screen projection connection with the first terminal.

[0046] In another possible implementation, the device further includes:

[0047] a broadcast module, configured to, in response to not receiving the first device connection information returned by the server, broadcast a connection information message to the local area network where the first terminal is located, wherein the connection information message carries the second device connection information of the first terminal, and the second device connection information is used for a second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information;

[0048] The first receiving module is used to receive the first device connection information returned by the second terminal.

[0049] In another possible implementation, the device further includes:

[0050] A verification module is used to perform data interaction verification between the second terminal and the first terminal based on the connection information of the first device; in response to the data interaction verification between the second terminal and the first terminal being successful, establish a wireless screen projection connection with the second terminal based on the connection information of the first device.

[0051] In another possible implementation, the first sending module is further used to send a binding request to the server, where the binding request carries the first device connection information and the target account information, and the server is used to bind the first device connection information and the target account information.

[0052] In a fifth aspect, a device for establishing a wireless screen projection connection is provided, the device comprising:

[0053] A second acquisition module, configured to acquire the first device connection information of the second terminal and the target account information in response to the target application on the second terminal logging into the target account information;

[0054] A second sending module, used to send the first device connection information of the second terminal and the target account information to the server, the server is used to send the first device connection information to the first terminal logged in to the target account information, and the first terminal is used to send a screen projection connection request to the second terminal based on the first device connection information;

[0055] The second receiving module is used to receive the screen projection connection request sent by the first terminal, and establish a wireless screen projection connection with the first terminal based on the screen projection connection request.

[0056] In a possible implementation manner, the device further includes:

[0057] a local area network monitoring module, configured to, in response to the target application on the second terminal not logging into the target account information, start the local area network monitoring module; and receive, through the local area network monitoring module, a connection information message broadcast by the first terminal, the connection information message carrying the second device connection information of the first terminal;

[0058] The first returning module is configured to return the first device connection information to the first terminal based on the second device connection information.

[0059] In a sixth aspect, a device for establishing a wireless screen projection connection is provided, the device comprising:

[0060] A third receiving module is used to receive a connection information acquisition request sent by the first terminal, where the connection information acquisition request carries target account information logged in to the target application on the first terminal;

[0061] A query module, used to query the first device connection information of the second terminal used for screen projection according to the target account information;

[0062] The second return module is used to return the first device connection information to the first terminal, and the first terminal is used to establish a wireless screen projection connection with the second terminal based on the first device connection information.

[0063] In one possible implementation, the query module is used to query the terminal identification of the second terminal for logging into the target account information from a first correspondence between the terminal identification and the account information based on the target account information; and query the first device connection information of the second terminal from a second correspondence between the terminal identification and the device connection information based on the terminal identification of the second terminal.

[0064] In another possible implementation, the device further includes:

[0065] The third receiving module is further used to receive the target account information and the first device connection information sent by the second terminal;

[0066] The storage module is used to store the target account information and the terminal identification of the second terminal in the first corresponding relationship, and to store the first device connection information and the terminal identification of the second terminal in the second corresponding relationship.

[0067] In another possible implementation, the query module is further configured to query the first device connection information of the second terminal from a third corresponding relationship between the account information and the device connection information according to the target account information.

[0068] In the seventh aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the method for establishing a wireless screen projection connection in any of the above possible implementation methods.

[0069] In an eighth aspect, a server is provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the method for establishing a wireless screen projection connection in any of the above possible implementations.

[0070] In the ninth aspect, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed by the method for establishing a wireless screen projection connection in any of the above possible implementation methods.

[0071] In a tenth aspect, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes a computer program code, and the computer program code is stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device performs the operations performed by the method for establishing a wireless screen projection connection in any of the above possible implementations.

[0072] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0073] The embodiment of the present application provides a method for quickly establishing a wireless screen projection connection. Since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method for establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code. Therefore, it reduces the time for the first terminal to establish a wireless screen projection connection with the second terminal and improves the efficiency of establishing a wireless screen projection connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0075] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0076] Figure 2 It is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application;

[0077] Figure 3 It is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application;

[0078] Figure 4 It is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application;

[0079] Figure 5 It is an interactive flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application;

[0080] Figure 6 It is an interactive flow chart of a method for establishing a wireless screen projection connection provided in an embodiment of the present application;

[0081] Figure 7 It is a structural schematic diagram of a device for establishing a wireless screen projection connection provided in an embodiment of the present application;

[0082] Figure 8 It is a structural schematic diagram of a device for establishing a wireless screen projection connection provided in an embodiment of the present application;

[0083] Fig. 9 It is a structural schematic diagram of a device for establishing a wireless screen projection connection provided in an embodiment of the present application;

[0084] Fig.10 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0085] Fig.11 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] 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 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0087] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 The implementation environment includes a first terminal 101, a second terminal 102 and a server 103.

[0088] The first terminal 101 and the server 103 are connected via a wireless or wired network; the second terminal 102 and the server 103 are connected via a wireless or wired network. In addition, the target application provided by the server 103 may be installed on the first terminal 101 and the second terminal 102, and the user of the first terminal 101 may realize functions such as data transmission and message interaction with the server 104 through the target application, and the user of the second terminal 102 may realize functions such as data transmission and message interaction with the server 104 through the target application.

[0089] The target application may be any target application that may be broadcast live. For example, the target application may be a live broadcast application or a short video application. The first terminal 101 may be a mobile phone, a tablet computer, or other electronic devices; the second terminal 102 may be a desktop computer, a television, or other electronic devices. The server 103 may be a server, or a server cluster consisting of several servers, or a cloud computing service center.

[0090] It should be noted that the target application installed on the first terminal 101 and the target application installed on the second terminal 102 are the same application, and the user can log in to the target application installed on the first terminal 101 and the target application installed on the second terminal 102 through the same account. In addition, the first terminal 101 and the second terminal 102 can establish a wireless screen projection connection to project the display interface of the first terminal 101 on the second terminal 102.

[0091] Figure 2 is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application. Figure 2 , the method comprising:

[0092] 201. In response to projecting a screen of a target application on a first terminal, obtain target account information logged in to the target application.

[0093] 202. Send a connection information acquisition request to the server, where the connection information acquisition request carries target account information, and the target account information is used by the server to acquire first device connection information of a second terminal that logs in to the target account information.

[0094] 203. In response to receiving the first device connection information returned by the server, establish a wireless screen projection connection with the second terminal based on the first device connection information.

[0095] In a possible implementation, establishing a wireless screen projection connection with a second terminal based on the first device connection information includes:

[0096] Display a screen projection button, which carries the connection information of the first device;

[0097] In response to the screen projection button being triggered, a screen projection connection request is sent to the second terminal based on the first device connection information, and the screen projection connection request is used for the second terminal to establish a wireless screen projection connection with the first terminal.

[0098] In another possible implementation, the method further includes:

[0099] In response to not receiving the first device connection information returned by the server, broadcasting a connection information message to the local area network where the first terminal is located, the connection information message carrying the second device connection information of the first terminal, the second device connection information being used for the second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information;

[0100] Receive the first device connection information returned by the second terminal.

[0101] In another possible implementation, before establishing a wireless screen projection connection with the second terminal based on the first device connection information, the method further includes:

[0102] Based on the first device connection information, verify data interaction between the second terminal and the first terminal;

[0103] In response to the data interaction verification between the second terminal and the first terminal being successful, the step of establishing a wireless screen projection connection with the second terminal based on the first device connection information is executed.

[0104] In another possible implementation, the method further includes:

[0105] A binding request is sent to the server, where the binding request carries the first device connection information and the target account information, and the server is used to bind the first device connection information and the target account information.

[0106] In an embodiment of the present application, the first terminal sends a connection information acquisition request to the server, and obtains the first device connection information of the second terminal for logging in to the target account information through the server. Since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method for establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code, thereby reducing the time for the first terminal to establish a wireless screen projection connection with the second terminal and improving the efficiency of establishing a wireless screen projection connection.

[0107] Figure 3 is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application. Figure 3 , the method comprising:

[0108] 301. In response to a target application on a second terminal logging into a target account information, first device connection information and target account information of the second terminal are obtained.

[0109] 302. Send the first device connection information and target account information of the second terminal to the server. The server is used to send the first device connection information to the first terminal that logs in the target account information. The first terminal is used to send a screen projection connection request to the second terminal based on the first device connection information.

[0110] 303. Receive a screen projection connection request sent by the first terminal, and establish a wireless screen projection connection with the first terminal based on the screen projection connection request.

[0111] In a possible implementation, the method further includes:

[0112] In response to the target application on the second terminal not logging into the target account information, starting the local area network monitoring module;

[0113] Receiving, through the local area network monitoring module, a connection information message broadcast by the first terminal, where the connection information message carries the second device connection information of the first terminal;

[0114] Based on the second device connection information, the first device connection information is returned to the first terminal.

[0115] In an embodiment of the present application, the second terminal sends the first device connection information and the target account information of the second terminal to the server, and the first device connection information is sent to the first terminal through the server; then the first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information. Since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method for establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code. Therefore, it reduces the time for the first terminal to establish a wireless screen projection connection with the second terminal and improves the efficiency of establishing a wireless screen projection connection.

[0116] Figure 4 is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application. Figure 4 , the method comprising:

[0117] 401. Receive a connection information acquisition request sent by a first terminal, where the connection information acquisition request carries target account information logged in to a target application on the first terminal.

[0118] 402. Query the first device connection information of the second terminal used for screen projection according to the target account information.

[0119] 403. Return the first device connection information to the first terminal, and the first terminal is used to establish a wireless screen projection connection with the second terminal based on the first device connection information.

[0120] In a possible implementation, querying the first device connection information of the second terminal used for screen projection according to the target account information includes:

[0121] According to the target account information, querying the terminal identifier of the second terminal that logs into the target account information from the first corresponding relationship between the terminal identifier and the account information;

[0122] According to the terminal identifier, the first device connection information of the second terminal is queried from a second corresponding relationship between the terminal identifier and the device connection information.

[0123] In another possible implementation, the method further includes:

[0124] Receiving target account information and first device connection information sent by the second terminal;

[0125] The target account information and the terminal identification of the second terminal are stored in the first corresponding relationship, and the first device connection information and the terminal identification of the second terminal are stored in the second corresponding relationship.

[0126] In another possible implementation, querying the first device connection information of the second terminal used for screen projection according to the target account information includes:

[0127] According to the target account information, the first device connection information of the second terminal is queried from a third corresponding relationship between the account information and the device connection information.

[0128] In an embodiment of the present application, a connection information acquisition request sent by the first terminal is received, the first device connection information of the second terminal used for screen projection is queried, the first device connection information is returned to the first terminal, and the first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information. Since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method for establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code. Therefore, the time for the first terminal to establish a wireless screen projection connection with the second terminal is reduced, and the efficiency of establishing a wireless screen projection connection is improved.

[0129] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0130] Figure 5 1 is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application. In the embodiment of the present application, an example is given in which a first terminal obtains the first device connection information of a second terminal through a server. Figure 5 , the method comprising:

[0131] 501. The second terminal obtains first device connection information and target account information of the second terminal in response to a target application on the second terminal logging into the target account information.

[0132] The target application on the second terminal is an application with a video live broadcast or video playback function. The target account information includes one or more of a user's registered account, a user's registered password, a user's real name, and a user's phone number. The first device connection information of the second terminal includes one or more of a MAC address, an IP address, and port information of the second terminal.

[0133] In this step, the target application on the second terminal logs in the target account information for the first time; or the target application on the second terminal has logged in the target account information before. There are two implementation methods for the target application on the second terminal to log in the target account information:

[0134] In the first method, the target application on the second terminal logs in the target account information for the first time; an application icon corresponding to the target application is set in the display interface of the second terminal, and the user enters the login interface corresponding to the target application based on the application icon. Accordingly, this step is: in response to receiving a designated operation on the application icon, a login instruction is generated; the second terminal starts the login interface corresponding to the target application according to the login instruction; the user enters the target account information based on the login interface; the second terminal obtains the target account information, and the target application on the second terminal logs in the target account information. Optionally, the designated operation is a click operation on the application icon.

[0135] The second type is that the target application on the second terminal has previously logged in the target account information; an application icon corresponding to the target application is set in the display interface of the second terminal, and the user logs in the target account information in the target application on the second terminal based on the application icon. Accordingly, this step is: in response to receiving a designated operation on the application icon, a login instruction is generated; the second terminal obtains the target account information of the last login according to the login instruction, and logs in the target account information in the target application of the second terminal. Optionally, the designated operation is a click operation on the application icon.

[0136] In this step, the second terminal stores the first device connection information of the second terminal. The second terminal obtains the first device connection information of the second terminal in response to the target application on the second terminal starting to log in to the target account information; or the second terminal obtains the first device connection information of the second terminal in response to the target application on the second terminal successfully logging in to the target account information.

[0137] In a possible implementation, the first device connection information includes the MAC address, IP address, and port information of the second terminal. The second terminal stores a correspondence between the application identifier and the MAC address, IP address, and port information of the second terminal. Accordingly, the step for the second terminal to obtain the first device connection information of the second terminal is: the second terminal obtains the application identifier of the target application, and according to the application identifier of the target application, determines the MAC address, IP address, and port information of the second terminal corresponding to the application identifier of the target application from the correspondence between the stored application identifier and the MAC address, IP address, and port information of the second terminal.

[0138] In the embodiment of the present application, the target account information is filled in by the user based on the second terminal. The target account information is stored in the second terminal.

[0139] In a possible implementation, the second terminal stores a correspondence between the application identifier of the target application and the target account information. Accordingly, the second terminal obtains the target account information logged in the target application in the following steps: the second terminal obtains the application identifier of the target application; according to the application identifier of the target application, the target account information corresponding to the application identifier of the target application is determined from the stored correspondence between the application identifier of the target application and the target account information. Different application identifiers are used to distinguish different applications; optionally, the application identifier of the target application is the name of the target application; for example, the application identifier of the target application is live broadcast application A.

[0140] It should be noted that the second terminal stores the target account information before obtaining the target account information. The second terminal stores the target account information as follows: the second terminal displays a prompt box for registering the account information on the display interface of the target application in response to the user logging into the target application for the first time based on the second terminal. The user enters the target account information in the prompt box based on the second terminal. The second terminal obtains the target account information and generates a correspondence between the application identifier of the target application and the target account information. The second terminal stores the correspondence between the application identifier of the target application and the target account information.

[0141] In an embodiment of the present application, the second terminal directly obtains the target account information of the second terminal from the correspondence between the application identifier of the target application and the target account information stored in the second terminal, thereby avoiding network delays and improving the timeliness of the second terminal in obtaining the target account information.

[0142] 502. The second terminal sends the first device connection information and the target account information of the second terminal to the server.

[0143] In a possible implementation, the second terminal sends a binding request to the server, where the binding request carries the first device connection information of the second terminal, the target account information, and the terminal identifier of the second terminal.

[0144] It should be noted that the second terminal sends the first device connection information and the target account information to the server once in response to obtaining the first device connection information and the target account information; or the second terminal sends the first device connection information and the target account information to the server periodically in response to obtaining the first device connection information and the target account information. The sending period can be any value between 10s-500s; in the embodiment of the present application, the value of the period is not specifically limited and can be set and changed as needed.

[0145] In an embodiment of the present application, the second terminal periodically sends the first device connection information to the server. After the first device connection information and the target account information of the second terminal change, the server can promptly receive the first device connection information and the target account information of the second terminal, thereby improving the accuracy of the first device connection information and the target account information of the second terminal, thereby improving the stability of establishing the wireless screen projection connection.

[0146] In another possible implementation, in response to a change in the target account information, the second terminal sends a binding request to the server, where the binding request carries the first device connection information of the second terminal, the target account information, and the terminal identifier of the second terminal.

[0147] 503. The server receives the target account information and the first device connection information sent by the second terminal.

[0148] In a possible implementation, the server receives a binding request sent by the second terminal; and according to the binding request, parses the first device connection information, the target account information, and the terminal identifier of the second terminal carried in the binding request.

[0149] 504. The server stores the target account information and the terminal identification of the second terminal in the first corresponding relationship, and stores the first device connection information and the terminal identification of the second terminal in the second corresponding relationship.

[0150] In a possible implementation method, this step is: the server obtains the first device connection information, the target account information and the terminal identification of the second terminal, and based on the first device connection information, the target account information and the terminal identification of the second terminal; stores the target account information and the terminal identification of the second terminal in a first corresponding relationship, and stores the first device connection information and the terminal identification of the second terminal in a second corresponding relationship.

[0151] In another possible implementation, the server obtains the first device connection information, the target account information and the terminal identification of the second terminal, and stores the first device connection information, the target account information and the terminal identification of the second terminal in a fourth correspondence according to the first device connection information, the target account information and the terminal identification of the second terminal.

[0152] It should be noted that, in the process of establishing a wireless screen projection connection between the first terminal and the second terminal, steps 501 to 504 only need to be performed once. That is, in response to the target account information and the terminal identification of the second terminal being stored in the server, the first corresponding relationship is stored, and the first device connection information and the terminal identification of the second terminal are stored in the second corresponding relationship; or, in response to the fourth corresponding relationship of the first device connection information, the target account information and the terminal identification of the second terminal being stored in the server, steps 501 to 504 are not performed, and step 505 is directly performed.

[0153] 505. In response to projecting the screen of the target application on the first terminal, the first terminal obtains target account information logged in to the target application.

[0154] The target application on the first terminal is an application with video live broadcast or video playback function. The target application on the first terminal is the same application as the target application on the second terminal. The target account information logged in the target application on the first terminal is the same as the target account information logged in the target application on the second terminal. For example, the target application on the first terminal is live broadcast application A, and the target application on the second terminal is also live broadcast application A; the anchor user can log in to live broadcast application A on the first terminal and live broadcast application A on the second terminal through the same anchor account.

[0155] In a possible implementation, a screen projection button is provided in the display interface of the target application on the first terminal. Accordingly, in response to the screen projection of the target application on the first terminal, the first terminal obtains the target account information logged in the target application in the following steps: the first terminal starts the screen projection page in the target application in response to receiving the designated operation on the screen projection button and generates a screen projection instruction; the first terminal projects the target application on the first terminal according to the screen projection instruction; the first terminal obtains the target account information logged in the target application. Optionally, the designated operation is a click operation on the screen projection button.

[0156] Optionally, the target account information is filled in by the user based on the first terminal.

[0157] In a possible implementation, the first terminal stores a correspondence between an application identifier of the target application and target account information. Accordingly, the first terminal obtains the target account information logged in the target application in the following steps: the first terminal obtains the application identifier of the target application; and according to the application identifier of the target application, determines the target account information corresponding to the application identifier of the target application from the stored correspondence between the application identifier of the target application and the target account information.

[0158] The first terminal stores the target account information before acquiring the target account information. The first terminal stores the target account information as follows: the first terminal displays a prompt box for registering the account information on the display interface of the target application in response to the user logging into the target application for the first time based on the first terminal. The user enters the target account information in the prompt box based on the first terminal. The first terminal acquires the target account information and generates a correspondence between the application identifier of the target application and the target account information. The first terminal stores the correspondence between the application identifier of the target application and the target account information.

[0159] 506. The first terminal sends a connection information acquisition request to the server, where the connection information acquisition request carries target account information logged in to the target application on the first terminal.

[0160] In a possible implementation, this step is: in response to obtaining the target account information logged in to the target application, the first terminal generates a sending instruction; and according to the sending instruction, sends a connection information acquisition request to the server.

[0161] In another possible implementation, the connection information acquisition request also carries the terminal identifier of the second terminal. Optionally, the terminal identifier of the second terminal may be the name of the second terminal; for example, the name of the second terminal is XX's computer, etc.

[0162] In another possible implementation, the connection information acquisition request also carries the terminal identification of the first terminal, so that the server returns the first device connection information to the first terminal according to the terminal identification of the first terminal. Accordingly, step 505 is: the first terminal responds to the screen projection of the target application on the first terminal, and obtains the target account information logged in in the target application and the terminal identification of the first terminal.

[0163] It should be noted that before the first terminal sends a connection information acquisition request to the server, it first determines whether the first terminal has the first device connection information stored locally; in response to the first terminal not having the first device connection information stored locally, step 507 is executed.

[0164] In response to the first terminal locally storing the first device connection information, the first terminal determines the amount of the first device connection information.

[0165] In a possible implementation, in response to the number of first device connection information being one, the first terminal directly establishes a wireless screen projection connection with the second terminal based on the first device connection information.

[0166] In another possible implementation, in response to the number of first device connection information stored locally being multiple, the first terminal determines the storage time of the multiple first device connection information, and selects the most recent first device connection information from the multiple first device connection information. The first terminal establishes a wireless screen projection connection with the second terminal based on the most recent first device connection information.

[0167] In another possible implementation, in response to the number of first device connection information stored locally being multiple, the first terminal displays a connection confirmation prompt box, which includes multiple first device connection information. The first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information selected by the user in the connection confirmation button.

[0168] Optionally, the first terminal stores the first device connection information of the second terminal that is connected to the first terminal each time in response to the first terminal establishing a wireless screen projection connection with the second terminal; or, the first terminal stores the first device connection information of the second terminal that was most recently connected to the first terminal in response to the first terminal establishing a wireless screen projection connection with the second terminal.

[0169] In the embodiment of the present application, before the first terminal sends a connection information acquisition request to the server, it first determines whether the first terminal has the first device connection information stored locally; in response to the first terminal storing the first device connection information locally, a wireless screen projection connection is established with the second terminal based on the first device connection information. Since the first terminal directly obtains the first device connection information of the second terminal from the first terminal locally, the efficiency of obtaining the first device connection information is improved.

[0170] 507. The server receives a connection information acquisition request sent by the first terminal.

[0171] In a possible implementation, this step is: the server receives a connection information acquisition request sent by the first terminal, and parses the connection information acquisition request to obtain target account information logged in to the target application on the first terminal.

[0172] In another possible implementation, this step is: the server receives a connection information acquisition request sent by the first terminal, and parses the connection information acquisition request to obtain target account information logged in to the target application on the first terminal and the terminal identifier of the second terminal.

[0173] In another possible implementation, this step is: the server receives a connection information acquisition request sent by the first terminal, and parses the connection information acquisition request to obtain target account information logged in to the target application on the first terminal and the terminal identifier of the first terminal.

[0174] 508. The server queries the first device connection information of the second terminal used for screen projection according to the target account information.

[0175] In a possible implementation, the server stores a first correspondence between the terminal identifier and the account information, and a second correspondence between the terminal identifier and the device connection information. Accordingly, this step is: the server queries the terminal identifier of the second terminal that logs into the target account information from the first correspondence between the terminal identifier and the account information according to the target account information; and queries the first device connection information of the second terminal from the second correspondence between the terminal identifier and the device connection information according to the terminal identifier of the second terminal.

[0176] In another possible implementation, the server stores a fourth correspondence between the first device connection information, the target account information, and the terminal identifier of the second terminal. Accordingly, this step is: the server queries the first device connection information of the second terminal used for screen projection from the fourth correspondence between the first device connection information, the target account information, and the terminal identifier of the second terminal according to the target account information and the terminal identifier of the second terminal.

[0177] In another possible implementation, a third correspondence between account information and device connection information is stored in the server. Accordingly, the server queries the first device connection information of the second terminal for screen projection based on the target account information as follows: the server queries the first device connection information of the second terminal from the third correspondence between account information and device connection information based on the target account information.

[0178] One point that needs to be explained is that before the server queries the first device connection information of the second terminal used for screen projection based on the target account information, it needs to first store the third correspondence between the account information and the device connection information.

[0179] In a possible implementation, the third correspondence between the account information and the device connection information is sent by the first terminal to the server when the first terminal and the second terminal established a wireless screen projection connection last time. Accordingly, the server stores the third correspondence between the account information and the device connection information in the following steps: the first terminal sends a binding request to the server, the binding request carries the first device connection information and the target account information, and the server binds the first device connection information and the target account information to obtain the third correspondence between the account information and the device connection information.

[0180] In an embodiment of the present application, the third correspondence is sent by the first terminal to the server the last time the first terminal and the second terminal established a wireless screen projection connection. In this way, when the first terminal and the second terminal establish a wireless screen projection again, the server directly determines the first device connection information based on the third correspondence between the account information and the device connection information, and returns the first device connection information to the first terminal, thereby improving the efficiency of the wireless screen projection connection.

[0181] In another possible implementation, the third correspondence between the account information and the device connection information is sent by the second terminal to the server when the first terminal and the second terminal established a wireless screen projection connection last time. Accordingly, the server stores the third correspondence between the account information and the device connection information in the following steps: the second terminal sends a binding request to the server, the binding request carries the first device connection information and the target account information, and the server binds the first device connection information and the target account information to obtain the third correspondence between the account information and the device connection information.

[0182] Another point that needs to be explained is that after the server queries the first device connection information of the second terminal used for screen projection based on the target account information, it directly executes step 509; or, it first verifies the validity of the first device connection information of the second terminal, and executes step 509 in response to the validity verification of the first device connection information being passed.

[0183] In a possible implementation, the server determines the validity of the first device connection information according to the storage time of the first device connection information. Accordingly, the step of the server verifying the validity of the first device connection information of the second terminal is: the server obtains the storage time of the first device connection information, and in response to the storage time being less than a preset time length, determines that the first device connection information is valid. The preset time length may be 1 month, 2 months, or 3 months, etc.

[0184] 509. The server returns the first device connection information to the first terminal.

[0185] In a possible implementation manner, this step is: the server determines the first terminal from multiple terminals connected to the server according to the terminal identifier of the first terminal, and returns the first device connection information to the first terminal.

[0186] 510. In response to receiving the first device connection information returned by the server, the first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information.

[0187] In this step, the first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information by following the steps (1) to (3):

[0188] (1) The first terminal displays a screen projection confirmation button, which carries the first device connection information.

[0189] In a possible implementation, the screen projection confirmation button is a screen projection confirmation prompt box; the screen projection confirmation prompt box displays the first device connection information, wherein the first device connection information address corresponding to different terminals is different.

[0190] In an embodiment of the present application, since different terminals correspond to different first device connection information, the first terminal displays a screen projection confirmation button, which carries the first device connection information, thereby facilitating the determination of whether the second terminal is the target terminal to which the user intends to project the screen based on the first device connection information displayed in the prompt box.

[0191] Optionally, the connection information of the first device is the MAC address of the second terminal. Accordingly, this step is: the first terminal displays a screen projection confirmation prompt box in response to receiving the MAC address of the second terminal returned by the server, and the MAC address of the second terminal is displayed in the screen projection confirmation prompt box. Among them, different terminals have different corresponding MAC addresses; the user can determine whether the second terminal is the target terminal that the user needs to project the screen based on the MAC address of the second terminal displayed in the prompt box.

[0192] In another possible implementation, the screen projection confirmation button is a text button; for example, the screen projection confirmation button is a "Confirm" button.

[0193] One point that needs to be explained is that before the first terminal displays the screen projection confirmation button, the first terminal first verifies the connectivity of the network through a network PING (Packet Internet Grope) packet.

[0194] Among them, the step of the first terminal verifying the connectivity of the network by means of a network ping packet is: the first terminal performs data interaction verification on the second terminal and the first terminal based on the first device connection information; in response to the data interaction verification between the second terminal and the first terminal being passed, the step of establishing a wireless screen projection connection with the second terminal based on the first device connection information is executed.

[0195] In the embodiment of the present application, the first terminal verifies the connectivity of the network, and only displays the screen projection confirmation button in response to the second terminal passing the data interaction verification with the first terminal, and then establishes a wireless screen projection connection with the second terminal. This ensures that the first terminal and the second terminal can successfully establish a wireless screen projection connection, and improves the stability of establishing a wireless screen projection connection.

[0196] (2) In response to the screen projection confirmation button being triggered, the first terminal sends a screen projection connection request to the second terminal based on the first device connection information.

[0197] In this step, the first device connection information includes the MAC address, IP address and port information of the second terminal. Correspondingly, this step is: the first terminal obtains the MAC address, IP address and port information of the second terminal in response to the screen projection confirmation button being triggered; and sends a screen projection connection request to the second terminal based on the MAC address, IP address and port information of the second terminal.

[0198] In one possible implementation, the steps of the first terminal sending a screen projection connection request to the second terminal based on the MAC address, IP address and port information of the second terminal are: the first terminal determines the second terminal from multiple terminals connected to the server based on the MAC address and IP address of the second terminal; determines the target application from multiple applications installed in the second terminal based on the port information; and the first terminal sends a screen projection connection request to the target application on the second terminal.

[0199] (3) The second terminal receives the screen projection connection request sent by the first terminal, and establishes a wireless screen projection connection with the first terminal based on the screen projection connection request.

[0200] In one possible implementation, the second terminal receives a screen projection connection request sent by the first terminal, and the screen projection connection request carries the port information of the target application; the second terminal stores the correspondence between the port information and the application. Accordingly, the steps for the second terminal to establish a wireless screen projection connection with the first terminal based on the screen projection connection request are as follows: the second terminal determines the target application corresponding to the port information from the stored correspondence between the port information and the application based on the port information of the target application carried in the screen projection connection request; the second terminal uses the target application to establish a wireless screen projection connection with the first terminal.

[0201] In an embodiment of the present application, the first terminal sends a connection information acquisition request to the server, obtains the first device connection information of the second terminal that logs in the target account information through the server, and then establishes a wireless screen projection connection with the second terminal based on the first device connection information. Since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method for establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code. Therefore, the time for the first terminal to establish a wireless screen projection connection with the second terminal is reduced, and the efficiency of establishing a wireless screen projection connection is improved.

[0202] Figure 6 1 is a flow chart of a method for establishing a wireless screen projection connection provided by an embodiment of the present application. In the embodiment of the present application, the first terminal obtains the first device connection information of the second terminal through the local area network as an example. Figure 6, the method comprising:

[0203] 601. In response to the target application on the second terminal not logging into the target account information, the second terminal starts a local area network monitoring module.

[0204] The LAN monitoring module is used to monitor the connection information message in the LAN. Optionally, the LAN monitoring module is a LAN UDP (User Datagram Protocol) broadcast monitoring module.

[0205] In a possible implementation, when the second terminal starts the target application, there is no target account information in the target application, and the second terminal determines that the target application on the second terminal has not logged in the target account information. Accordingly, this step is: in response to starting the target application, the second terminal obtains the target account information in the target application; in response to being unable to obtain the target account information in the target application, it is determined that the target application has not logged in the target account information, and the local area network monitoring module is turned on.

[0206] Optionally, the second terminal starts the target application including starting a screen projection receiving page in the target application. Accordingly, in response to the target application on the second terminal not logging into the target account information, the second terminal starts the local area network monitoring module in the following steps: the second terminal obtains the target account information in the target application in response to starting the screen projection receiving page in the target application; in response to the inability to obtain the target account information in the target application, it is determined that the target application has not logged into the target account information, and the local area network monitoring module is started.

[0207] 602. In response to not receiving the first device connection information returned by the server, the first terminal broadcasts a connection information message to the local area network where the first terminal is located, where the connection information message carries the second device connection information of the first terminal.

[0208] The second device connection information of the first terminal includes one or more of a MAC address, an IP address, and port information of the first terminal.

[0209] In one possible implementation, if the first terminal does not receive the first device connection information returned by the server within the first preset time period, the first terminal broadcasts a connection information message to the local area network where the first terminal is located. Accordingly, this step is: in response to not receiving the first device connection information returned by the server within the first preset time period, the first terminal generates a sending instruction; according to the sending instruction, the connection information message is broadcast to the local area network where the first terminal is located. Optionally, the connection information message is a UDP broadcast message. The first preset time period is any value between 1s and 10s; in the embodiment of the present application, the value of the first preset time period is not specifically limited and can be set and changed as needed.

[0210] 603. The second terminal receives the connection information message broadcast by the first terminal through the local area network monitoring module.

[0211] In this step, the second terminal and the first terminal are located in the same local area network. Optionally, the second terminal receives the connection information message broadcast by the first terminal through a local area network UDP broadcast monitoring module.

[0212] 604. The second terminal returns the first device connection information to the first terminal based on the second device connection information.

[0213] In a possible implementation, the second terminal returns the first device connection information to the first terminal directly through the LAN UDP broadcast monitoring module based on the second device connection information. Optionally, the second device connection information includes the MAC address, IP address and port information of the first terminal. Accordingly, this step is: the second terminal determines the first terminal from multiple terminals connected to the LAN based on the MAC address and IP address of the first terminal; determines the target application from multiple applications installed in the first terminal based on the port information; and returns the first device connection information to the target application of the first terminal through the LAN UDP broadcast monitoring module.

[0214] In an embodiment of the present application, the first device connection information is directly returned to the target application of the first terminal through the local area network UDP broadcast monitoring module, thereby avoiding network delays and improving the timeliness of returning the first device connection information.

[0215] In another possible implementation, the second terminal returns the first device connection information to the first terminal through the local area network based on the second device connection information. The second device connection information includes the MAC address, IP address and port information of the first terminal. Accordingly, this step is: the second terminal determines the first terminal from multiple terminals connected to the local area network based on the MAC address and IP address of the first terminal; determines the target application from multiple applications installed in the first terminal based on the port information; the second terminal returns the first device connection information to the target application on the first terminal through the local area network.

[0216] 605. The first terminal receives the first device connection information returned by the second terminal, and establishes a wireless screen projection connection with the second terminal based on the first device connection information.

[0217] The method for the first terminal to establish a wireless screen projection connection with the second terminal based on the first device connection information in step 605 is the same as the method for the first terminal to establish a wireless screen projection connection with the second terminal based on the first device connection information in step 510, and will not be repeated here.

[0218] In the embodiment of the present application, the second terminal receives the connection information message broadcast by the first terminal to the local area network, and returns the first device connection information to the first terminal according to the second device connection information carried in the connection information message; then the first terminal establishes a wireless screen projection connection with the second terminal based on the first device connection information. Since the first terminal obtains the first device connection information of the second terminal through the local area network, rather than through the first terminal scanning the QR code or other operations, it avoids the situation where the first terminal scans the code multiple times, thereby improving the efficiency of establishing the wireless screen projection connection.

[0219] Figure 7 This is a schematic diagram of a device for establishing a wireless screen projection connection provided by an embodiment of the present application. Figure 7 , the device comprises:

[0220] The first acquisition module 701 is used to obtain target account information logged in in the target application in response to casting the screen of the target application on the first terminal;

[0221] A first sending module 702 is used to send a connection information acquisition request to the server, where the connection information acquisition request carries target account information, and the target account information is used by the server to acquire first device connection information of a second terminal that logs in to the target account information;

[0222] The connection module 703 is used to establish a wireless screen projection connection with the second terminal based on the first device connection information received from the server.

[0223] In one possible implementation, the connection module 703 is used to display a screen projection confirmation button, which carries the connection information of the first device; in response to the screen projection confirmation button being triggered, a screen projection connection request is sent to the second terminal based on the first device connection information, and the screen projection connection request is used for the second terminal to establish a wireless screen projection connection with the first terminal.

[0224] In another possible implementation, the device further includes:

[0225] a broadcast module, configured to, in response to not receiving the first device connection information returned by the server, broadcast a connection information message to the local area network where the first terminal is located, wherein the connection information message carries the second device connection information of the first terminal, and the second device connection information is used for the second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information;

[0226] The first receiving module is used to receive the first device connection information returned by the second terminal.

[0227] In another possible implementation, the device further includes:

[0228] The verification module is used to perform data interaction verification between the second terminal and the first terminal based on the connection information of the first device; in response to the data interaction verification between the second terminal and the first terminal being passed, a wireless screen projection connection is established with the second terminal based on the connection information of the first device.

[0229] In another possible implementation, the first sending module 702 is further configured to send a binding request to the server, where the binding request carries the first device connection information and the target account information, and the server is configured to bind the first device connection information and the target account information.

[0230] Figure 8 This is a schematic diagram of a device for establishing a wireless screen projection connection provided by an embodiment of the present application. Figure 8 , the device comprises:

[0231] The second acquisition module 801 is used to acquire the first device connection information and the target account information of the second terminal in response to the target application on the second terminal logging into the target account information;

[0232] The second sending module 802 is used to send the first device connection information and the target account information of the second terminal to the server, and the server is used to send the first device connection information to the first terminal that logs in the target account information, and the first terminal is used to send a screen projection connection request to the second terminal based on the first device connection information;

[0233] The second receiving module 803 is used to receive a screen projection connection request sent by the first terminal, and establish a wireless screen projection connection with the first terminal based on the screen projection connection request.

[0234] In a possible implementation, the device further includes:

[0235] A local area network monitoring module, configured to start the local area network monitoring module in response to the target application on the second terminal not logging into the target account information; and receive the connection information message broadcasted by the first terminal through the local area network monitoring module, the connection information message carrying the second device connection information of the first terminal;

[0236] The first returning module is used to return the first device connection information to the first terminal based on the second device connection information.

[0237] Fig. 9 This is a schematic diagram of a device for establishing a wireless screen projection connection provided by an embodiment of the present application. Fig. 9 , the device comprises:

[0238] The third receiving module 901 is used to receive a connection information acquisition request sent by the first terminal, where the connection information acquisition request carries target account information logged in to the target application on the first terminal;

[0239] A query module 902, configured to query first device connection information of a second terminal used for screen projection according to target account information;

[0240] The second return module 903 is used to return the first device connection information to the first terminal, and the first terminal is used to establish a wireless screen projection connection with the second terminal based on the first device connection information.

[0241] In one possible implementation, the query module 902 is used to query the terminal identifier of the second terminal that logs into the target account information from a first correspondence between the terminal identifier and the account information based on the target account information; and query the first device connection information of the second terminal from a second correspondence between the terminal identifier and the device connection information based on the terminal identifier of the second terminal.

[0242] In another possible implementation, the device further includes:

[0243] The third receiving module 901 is further used to receive the target account information and the first device connection information sent by the second terminal;

[0244] The storage module is used to store the target account information and the terminal identification of the second terminal in the first corresponding relationship, and to store the first device connection information and the terminal identification of the second terminal in the second corresponding relationship.

[0245] In another possible implementation, the query module 902 is further configured to query the first device connection information of the second terminal from a third correspondence between the account information and the device connection information according to the target account information.

[0246] In the embodiment of the present application, since the first terminal directly obtains the first device connection information of the second terminal through the server, the first terminal can establish a wireless screen projection connection with the second terminal based on the first device connection information without scanning the code or other operations. It can be seen that the method of establishing a wireless screen projection connection in the present application can avoid the situation where the recognition time is too long due to the low recognition sensitivity of the first terminal to the QR code, thereby reducing the time for the first terminal to establish a wireless screen projection connection with the second terminal and improving the efficiency of establishing a wireless screen projection connection.

[0247] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0248] It should be noted that: the device for establishing a wireless screen projection connection provided in the above embodiment only uses the division of the above functional modules as an example when connecting the wireless screen projection. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the classification device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for establishing a wireless screen projection connection provided in the above embodiment and the method embodiment for establishing a wireless screen projection connection belong to the same concept. The specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0249] Fig.10 1 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. The terminal 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, a head-mounted device, or any other intelligent terminal. The terminal 1000 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0250] Typically, the terminal 1000 includes a processor 1001 and a memory 1002 .

[0251] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0252] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used by the processor 1001 to implement the method for establishing a wireless screen projection connection provided in the method embodiment of the present application.

[0253] In some embodiments, the terminal 1000 may also optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface 1003 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1003 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008 and a power supply 1009.

[0254] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0255] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 8G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0256] The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a display screen, the display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the display screen 1005. The touch signal can be input to the processor 1001 as a control signal for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1005 can be one, and the front panel of the terminal 1000 is set; in other embodiments, the display screen 1005 can be at least two, which are respectively set on different surfaces of the terminal 1000 or are folded; in other embodiments, the display screen 1005 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1000. Even, the display screen 1005 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0257] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0258] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0259] The positioning component 1008 is used to locate the current geographical location of the terminal 1000 to implement navigation or LBS (Location Based Service). The positioning component 1008 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0260] The power supply 1009 is used to power various components in the terminal 1000. The power supply 1009 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0261] In some embodiments, the terminal 1000 further includes one or more sensors 1010 , including but not limited to: an acceleration sensor 1011 , a gyroscope sensor 1012 , a pressure sensor 1013 , a fingerprint sensor 1014 , an optical sensor 1015 , and a proximity sensor 1016 .

[0262] The acceleration sensor 1011 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1000. For example, the acceleration sensor 1011 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used to collect motion data of games or users.

[0263] The gyro sensor 1012 can detect the body direction and rotation angle of the terminal 1000, and the gyro sensor 1012 can cooperate with the acceleration sensor 1011 to collect the user's 3D actions on the terminal 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1012: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0264] The pressure sensor 1013 can be set on the side frame of the terminal 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1013 is set on the side frame of the terminal 1000, it can detect the user's holding signal of the terminal 1000, and the processor 1001 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is set on the lower layer of the display screen 1005, the processor 1001 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0265] The fingerprint sensor 1014 is used to collect the user's fingerprint, and the processor 1001 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1014 can be set on the front, back, or side of the terminal 1000. When a physical button or a manufacturer logo is set on the terminal 1000, the fingerprint sensor 1014 can be integrated with the physical button or the manufacturer logo.

[0266] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1015.

[0267] The proximity sensor 1016, also called a distance sensor, is usually arranged on the front panel of the terminal 1000. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from the screen-off state to the screen-on state.

[0268] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the terminal 1000, and the terminal 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0269] Fig.11 It is a block diagram of a server provided by an embodiment of the present disclosure. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1101 and one or more memories 1102, wherein the memory 1102 is used to store executable program codes, and the processor 1101 is configured to execute the above executable program codes to implement the methods for establishing a wireless screen projection connection provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server may also include other components for implementing device functions, which will not be repeated here.

[0270] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one program code. The program code is loaded and executed by a processor to implement the operations performed in the method for establishing a wireless screen projection connection in the above embodiment.

[0271] The embodiment of the present application also provides a computer program product or a computer program, wherein the computer program product or the computer program includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the computer device reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the computer device performs the operations performed by the method for establishing a wireless screen projection connection in any of the above possible implementations.

[0272] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0273] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for establishing a wireless screen projection connection, characterized in that: The method comprises: In response to casting the screen of a target application on the first terminal, obtaining target account information logged in to the target application; Determine whether the first terminal locally stores first device connection information of the second terminal; In response to the first terminal locally storing the first device connection information, determining the amount of the first device connection information; In response to the number of the locally stored first device connection information being one, establishing a wireless screen projection connection with the second terminal based on the locally stored first device connection information; In response to the number of the first device connection information stored locally being multiple, determining the storage time of the multiple first device connection information, selecting the first device connection information with the latest time from the multiple first device connection information; and establishing a wireless screen projection connection with the second terminal based on the first device connection information with the latest time; In response to the first terminal not having the first device connection information stored locally, sending a connection information acquisition request to a server, the connection information acquisition request carrying the target account information, the target account information being used by the server to acquire the first device connection information of a second terminal that logs in to the target account information; the server is used to verify the validity of the first device connection information queried according to the target account information, and return valid first connection device information to the first terminal, wherein the first device connection information stored for a time shorter than a preset time period is valid; In response to receiving the first device connection information returned by the server, performing data interaction verification between the second terminal and the first terminal based on the first device connection information; in response to the second terminal and the first terminal passing the data interaction verification, establishing a wireless screen projection connection with the second terminal based on the first device connection information; In response to not receiving the first device connection information returned by the server, broadcasting a connection information message to the local area network where the first terminal is located, the connection information message carrying the second device connection information of the first terminal, the second device connection information being used for a second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information; Receive the first device connection information returned by the second terminal.

2. The method according to claim 1, characterized in that The establishing a wireless screen projection connection with the second terminal based on the first device connection information includes: Display a screen projection confirmation button, where the screen projection confirmation button carries the first device connection information; In response to the screen projection confirmation button being triggered, a screen projection connection request is sent to the second terminal based on the first device connection information, and the screen projection connection request is used for the second terminal to establish a wireless screen projection connection with the first terminal.

3. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: A binding request is sent to the server, where the binding request carries the first device connection information and the target account information, and the server is used to bind the first device connection information and the target account information.

4. A method for establishing a wireless screen projection connection, characterized in that: The method comprises: Receive a connection information acquisition request sent by a first terminal, the connection information acquisition request carrying target account information logged in to a target application on the first terminal; the first terminal is used to determine whether the first terminal has first device connection information of the second terminal stored locally after acquiring the target account information; in response to the first terminal having the first device connection information stored locally, determine the number of the first device connection information; in response to the number of the first device connection information stored locally being one, establish a wireless screen projection connection with the second terminal based on the first device connection information stored locally; in response to the number of the first device connection information stored locally being multiple, determine the storage time of multiple first device connection information, and select the first device connection information with the most recent time from the multiple first device connection information; based on the first device connection information with the most recent time, establish a wireless screen projection connection with the second terminal; in response to the first terminal not having the first device connection information stored locally, send a connection information acquisition request to the server; According to the target account information, query the first device connection information of the second terminal used for screen projection; Obtain the storage time of the first device connection information; in response to the storage time being less than a preset time length, determine that the first device connection information is valid, return the first device connection information to the first terminal, the first terminal is used to perform data interaction verification on the second terminal and the first terminal based on the first device connection information; in response to the second terminal and the first terminal The data interaction verification is passed, establish a wireless screen projection connection with the second terminal based on the first device connection information; the first terminal is also used to, in response to not receiving the first device connection information returned by the server, broadcast a connection information message to the local area network where the first terminal is located, the connection information message carries the second device connection information of the first terminal, and the second device connection information is used for the second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information; receive the first device connection information returned by the second terminal.

5. The method according to claim 4, characterized in that The querying, according to the target account information, the first device connection information of the second terminal used for screen projection includes: According to the target account information, querying the terminal identifier of the second terminal that logs in the target account information from the first corresponding relationship between the terminal identifier and the account information; According to the terminal identifier of the second terminal, the first device connection information of the second terminal is queried from a second corresponding relationship between the terminal identifier and the device connection information.

6. The method according to claim 5, characterized in that The method further comprises: receiving the target account information and the first device connection information sent by the second terminal; The target account information and the terminal identification of the second terminal are stored in the first corresponding relationship, and the first device connection information and the terminal identification of the second terminal are stored in the second corresponding relationship.

7. The method according to claim 5, characterized in that The querying, according to the target account information, the first device connection information of the second terminal used for screen projection includes: According to the target account information, the first device connection information of the second terminal is queried from a third corresponding relationship between the account information and the device connection information.

8. A device for establishing a wireless screen projection connection, characterized in that: The device comprises: A first acquisition module is used to, in response to screen projection of a target application on a first terminal, obtain target account information logged in to the target application; determine whether the first terminal locally stores first device connection information of a second terminal; in response to the first terminal locally storing the first device connection information, determine the number of the first device connection information; in response to the number of the first device connection information stored locally being one, establish a wireless screen projection connection with the second terminal based on the first device connection information stored locally; in response to the number of the first device connection information stored locally being multiple, determine the storage time of multiple first device connection information, and select the first device connection information with the most recent time from the multiple first device connection information; based on the first device connection information with the most recent time, establish a wireless screen projection connection with the second terminal; A first sending module, configured to send a connection information acquisition request to a server in response to the first terminal not having the first device connection information locally stored, wherein the connection information acquisition request carries the target account information, and the target account information is used by the server to acquire the first device connection information of a second terminal that logs in to the target account information; the server is configured to verify the validity of the first device connection information queried according to the target account information, and return valid first connection device information to the first terminal, wherein the first device connection information stored for a time shorter than a preset time period is valid; a connection module, configured to, in response to receiving the first device connection information returned by the server, perform data interaction verification between the second terminal and the first terminal based on the first device connection information; in response to the second terminal and the first terminal passing the data interaction verification, establish a wireless screen projection connection with the second terminal based on the first device connection information; A verification module, used for, in response to not receiving the first device connection information returned by the server, broadcasting a connection information message to the local area network where the first terminal is located, the connection information message carrying the second device connection information of the first terminal, the second device connection information being used for the second terminal located in the local area network to return the first device connection information of the second terminal based on the second device connection information; and receiving the first device connection information returned by the second terminal.

9. A device for establishing a wireless screen projection connection, characterized in that: The device comprises: a third receiving module, configured to receive a connection information acquisition request sent by a first terminal, wherein the connection information acquisition request carries target account information logged in to a target application on the first terminal; the first terminal is configured to determine whether the first terminal has locally stored first device connection information of a second terminal after acquiring the target account information; in response to the first terminal having locally stored the first device connection information, determine the number of the first device connection information; in response to the number of the locally stored first device connection information being one, establish a wireless screen projection connection with the second terminal based on the locally stored first device connection information; in response to the number of the locally stored first device connection information being multiple, determine the storage time of multiple first device connection information, and select the first device connection information with the most recent time from the multiple first device connection information; based on the first device connection information with the most recent time, establish a wireless screen projection connection with the second terminal; in response to the first terminal not having locally stored the first device connection information, send a connection information acquisition request to the server; A query module, used to query the first device connection information of the second terminal used for screen projection according to the target account information; A second return module is used to obtain the storage time of the first device connection information; in response to the storage time being less than a preset time length, it is determined that the first device connection information is valid, and the first device connection information is returned to the first terminal, and the first terminal is used to perform data interaction verification on the second terminal and the first terminal based on the first device connection information; in response to the second terminal and the first terminal The data interaction verification is passed, a wireless screen projection connection is established with the second terminal based on the first device connection information; the first terminal is also used to, in response to not receiving the first device connection information returned by the server, broadcast a connection information message to the local area network where the first terminal is located, the connection information message carries the second device connection information of the first terminal, and the second device connection information is used for the second terminal located in the local area network to return the first device connection information of the second terminal according to the second device connection information; receive the first device connection information returned by the second terminal.

10. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the operations performed in the method for establishing a wireless screen projection connection as described in any one of claims 1 to 3.

11. A server, characterized in that: The server includes a processor and a memory, wherein the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the operations performed in the method for establishing a wireless screen projection connection as described in any one of claims 4 to 7.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by the processor of the terminal to implement the operations performed in the method for establishing a wireless screen projection connection as described in any one of claims 1 to 3.