Screen projection processing method, system, device and computer readable storage medium
Transmit connection information through short links and establish a point-to-point network direct communication link, solving the problem that the sending and receiving ends cannot project screens when they are not connected to the same frequency band of the same router, and implementing the cross-band screen projection function, simplifying the Operation and improve screen projection experience.
Patent Information
- Application Number
- CN202211008461.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-08-22
AI Technical Summary
In the prior art, when the sending end and receiving end perform screen projection, it is necessary to connect to the same frequency band of the same WiFi router to achieve screen projection. If it is not connected to the same frequency band of the same router, screen projection cannot be achieved.
By transmitting connection information through short links, it is determined whether the sending end and the receiving end are connected to the same frequency band of the same router. If it is not in the same frequency band of the same router, a point-to-point network direct connection communication link is established to realize the transmission of screen projection content.
The screen projection between the sending end and the receiving end is realized. Even if the two are not connected to the same frequency band of the same router, the screen projection can be achieved through a point-to-point network direct connection to the communication link, simplifying the operation process and reducing the difficulty of screen projection.
Smart Images

Figure CN115499944B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a screen projection processing method, system, device and computer-readable storage medium. Background Art
[0002] "Screen casting" means projecting the screen image onto other display devices for display. For example, a video playing on a mobile phone can be cast to a TV for viewing.
[0003] At present, when using a mobile phone to cast screen, the problem of not being able to search for the receiver is often encountered. In addition to the case where the receiver does not support the screen casting function, it is mainly because the mobile phone and the receiver are not connected to the same WiFi router or are connected to different frequency bands of the same router. At present, in order to solve this problem, users can only connect the mobile phone and the receiver to the same frequency band of the same WiFi router.
[0004] From the above, it can be seen that in the prior art, when the sending end and the receiving end are projecting the screen, they need to be connected to the same frequency band of the same WiFi router to achieve it. That is, when the two are not connected to the same frequency band of the same router, screen projection cannot be achieved. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a screen projection processing method, system, device and computer-readable storage medium to solve the technical problem that screen projection cannot be achieved when the sending end and the receiving end are not connected to the same frequency band of the same router.
[0006] The specific technical solutions are as follows:
[0007] In a first aspect of an embodiment of the present invention, a screen projection processing method is provided, which is applied to a system including a transmitting end and a receiving end, and the method includes:
[0008] The transmitting end receives the connection information transmitted by the receiving end via a short link, wherein the short link is a communication link with a duration shorter than a preset duration;
[0009] The sending end determines, according to the connection information, whether the sending end and the receiving end are connected to the same frequency band of the same router, and establishes a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router;
[0010] The sending end sends the relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link;
[0011] The receiving end displays the projected screen content according to the relevant information of the projected screen content.
[0012] In a second aspect, an embodiment of the present invention provides a screen projection processing method, which is applied to a sending end, and the method includes:
[0013] Receiving connection information transmitted by a receiving end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0014] According to the connection information, determine whether the sending end and the receiving end are connected to the same frequency band of the same router, and if the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the receiving end;
[0015] The relevant information of the screen projection content is sent to the receiving end through the point-to-point network direct communication link.
[0016] In a third aspect, an embodiment of the present invention provides a screen projection processing method, which is applied to a receiving end, and the method includes:
[0017] Sending connection information to the sending end via a short link, wherein the short link is a communication link with a duration shorter than a preset duration;
[0018] When the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router, establishing a point-to-point network direct communication link with the sending end;
[0019] Receiving relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link;
[0020] The projected screen content is displayed according to the relevant information of the projected screen content.
[0021] In a fourth aspect, an embodiment of the present invention provides a screen projection processing system, the screen projection processing system comprising a transmitting end and a receiving end;
[0022] The transmitting end is used to receive the connection information transmitted by the receiving end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0023] The sending end is further used to determine whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information, and to establish a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router;
[0024] The sending end is further used to send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link;
[0025] The receiving end is used to display the projected content according to the relevant information of the projected content.
[0026] In a fifth aspect, an embodiment of the present invention provides a screen projection processing device, which is applied to a sending end, and the device includes:
[0027] A connection information receiving module, used to receive connection information transmitted by a receiving end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0028] A first establishing module, configured to determine, based on the connection information, whether the sending end and the receiving end are connected to the same frequency band of the same router, and to establish a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router;
[0029] The first sending module is used to send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link.
[0030] In a sixth aspect, an embodiment of the present invention provides a screen projection processing device, which is applied to a receiving end, and the device includes:
[0031] A connection information sending module, used to send connection information to a sending end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0032] A second establishing module, configured to establish a point-to-point network direct communication link with the sending end when the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router;
[0033] A first receiving module, used to receive relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link;
[0034] The display module is used to display the projection content according to the relevant information of the projection content.
[0035] In the seventh aspect of the implementation of the present invention, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned screen projection processing methods.
[0036] In an eighth aspect of the implementation of the present invention, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned screen projection processing methods.
[0037] The screen projection processing method provided by the embodiment of the present invention is applied to a system including a sending end and a receiving end, wherein the sending end is capable of receiving connection information transmitted by the receiving end through a short link, and thereby judging whether the sending end and the receiving end are connected to the same frequency band of the same router based on the connection information, and then establishing a point-to-point network direct communication link between the sending end and the receiving end when the two are not connected to the same frequency band of the same router, so that the sending end can send relevant information of the projection content to the receiving end through the point-to-point network direct communication link, and thus the receiving end can display the projection content based on the relevant information of the projection content.
[0038] Among them, the sending end and the receiving end are not connected to the same frequency band of the same router, which makes the sending end unable to search for the receiving end based on the frequency band of the router to which it is connected, and thus makes it impossible for the sending end to transmit relevant information of the screen projection content to the receiving end based on the frequency band of the router to which it is connected, thereby failing to realize screen projection.
[0039] The embodiments of the present invention can use the aforementioned short link transmission to determine whether the sender and the receiver are connected to the same frequency band of the same router (i.e., the aforementioned connection information), and when it is determined that the sender and the receiver are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link between the sender and the receiver, so that the sender can transmit relevant information about the screen projection content to the receiver through the point-to-point network direct communication link, thereby realizing the screen projection between the sender and the receiver. Among them, the above-mentioned short link and the point-to-point network direct communication link do not involve routers. Therefore, even if the sender and the receiver are not connected to the same frequency band of the same router, the embodiments of the present invention can also realize the screen projection between the sender and the receiver. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0041] Figure 1 A flowchart of a screen projection processing method provided by an embodiment of the present invention;
[0042] Figure 2 A flowchart of another screen projection processing method provided by an embodiment of the present invention;
[0043] Figure 3 A flowchart of another screen projection processing method provided by an embodiment of the present invention;
[0044] Figure 4 A flowchart of a specific implementation of the screen projection processing method provided by an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the principle of a specific implementation of the screen projection processing method provided by an embodiment of the present invention;
[0046] Figure 6 A block diagram of a screen projection processing system provided by an embodiment of the present invention;
[0047] Figure 7 A block diagram of a screen projection processing device provided by an embodiment of the present invention;
[0048] Figure 8 A block diagram of another screen projection processing device provided by an embodiment of the present invention;
[0049] Fig. 9 A block diagram of another screen projection processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0051] Reference Figure 1 , shows a flowchart of a screen projection processing method provided by an embodiment of the present invention, which is applied to a system including a transmitting end and a receiving end, and specifically may include the following steps:
[0052] Step 101: The transmitting end receives connection information transmitted by the receiving end via a short link.
[0053] The short link is a communication link whose duration is less than a preset duration.
[0054] In addition, the data transmitted by the short link is simple, and the amount of data transmitted is limited, and it is mostly used for one-time transmission. The above connection information is used to determine whether the sender and the receiver are connected to the same router and the same frequency band, so the above connection information only needs to be transmitted once, that is, the above connection information can be transmitted using a short link.
[0055] A long link is a communication link that lasts longer than or equal to a preset duration, such as a point-to-point network direct communication link and a WiFi router connection. In addition, the long link establishment process is more complicated, but after successful establishment, it can be used for multiple large-scale data transmissions. For example, the relevant information of the screen projection content during the screen projection process can be transmitted using a long link.
[0056] Step 102: The sending end determines whether the sending end and the receiving end are connected to the same frequency band of the same router based on the connection information, and establishes a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router.
[0057] Among them, if the sending end and the receiving end are not connected to the same frequency band of the same router, the sending end cannot search for the receiving end based on the frequency band of the router to which it is connected, so that the sending end cannot communicate with the receiving end based on the frequency band of the router to which it is connected, that is, the sending end cannot send relevant information about the screen projection content to the receiving end based on the frequency band of the router to which it is connected. In this case, in one embodiment of the present invention, a point-to-point network direct communication link can be established between the sending end and the receiving end, so as to realize screen projection from the sending end to the receiving end through the point-to-point network direct communication link.
[0058] The above-mentioned point-to-point network direct communication link enables the sender and the receiver to be connected, and no longer requires an intermediary wireless access point. That is, the above-mentioned point-to-point network direct communication link does not involve a router and is a link through which the sender and the receiver can communicate directly.
[0059] In addition, the above-mentioned point-to-point network direct communication link can be, for example: a WiFi point-to-point direct communication link or a Bluetooth point-to-point direct communication link. Among them, for WiFi point-to-point direct connection, when both the sending end and the receiving end support WiFi direct connection and both turn on the WiFi switch, they can be connected to each other without connecting to any wireless access point, so that information can be transmitted; for Bluetooth point-to-point direct connection, the sending end and the receiving end communicate via Bluetooth.
[0060] It should be noted here that in the embodiment of the present invention, the screen projection process between the transmitting end and the receiving end requires the transmission of more data, and WiFi point-to-point direct connection is more suitable for the transmission of large amounts of data than Bluetooth point-to-point direct connection. Therefore, when the above-mentioned point-to-point direct communication link is a WiFi point-to-point direct communication link, a better screen projection effect can be achieved.
[0061] Step 103: The sending end sends relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link.
[0062] The above-mentioned projection content can be any content displayed on the sending end, such as an operation interface, picture, document, video, etc. displayed on the sending end. The relevant information of the above-mentioned projection content is the instruction information for obtaining the projection content. For example, when the projection content is a video file, the relevant information of the projection content is the link address of the video file.
[0063] Step 104: The receiving end displays the projected content according to the relevant information of the projected content.
[0064] It can be seen from step 104 that after the receiving end receives the relevant information of the projected content sent by the sending end, the projected content can be obtained according to the relevant information of the projected content, thereby displaying the projected content.
[0065] In addition, a control switch can be added to the screen projection setting interface of the sending end and the receiving end. When the control switches on the sending end and the receiving end are turned on, the aforementioned steps 101 to 104 can be executed, otherwise the screen projection process is performed according to the existing technology.
[0066] It can be seen from the above steps 101 to 104 that in one implementation of an embodiment of the present invention, the sending end is able to receive the connection information transmitted by the receiving end through a short link, and thus, based on the connection information, determine whether the sending end and the receiving end are connected to the same frequency band of the same router, and then, when the two are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link between the sending end and the receiving end, so that the sending end can send relevant information of the projection content to the receiving end through the point-to-point network direct communication link, so that the receiving end can display the projection content according to the relevant information of the projection content.
[0067] Among them, the sending end and the receiving end are not connected to the same frequency band of the same router, which makes the sending end unable to search for the receiving end based on the frequency band of the router to which it is connected, and thus makes it impossible for the sending end to transmit relevant information of the screen projection content to the receiving end based on the frequency band of the router to which it is connected, thereby failing to realize screen projection.
[0068] In one embodiment of the present invention, the basis for determining whether the sender and the receiver are connected to the same frequency band of the same router (i.e., the connection information) can be transmitted through the aforementioned short link, and when it is determined that the sender and the receiver are not connected to the same frequency band of the same router, a point-to-point network direct communication link is established between the sender and the receiver, so that the sender can transmit relevant information of the screen projection content to the receiver through the point-to-point network direct communication link, thereby realizing the screen projection between the sender and the receiver. Among them, the above-mentioned short link and the point-to-point network direct communication link do not involve routers. Therefore, even if the sender and the receiver are not connected to the same frequency band of the same router, the embodiment of the present invention can also realize the screen projection between the sender and the receiver.
[0069] In addition, in the prior art, when the sending end and the receiving end are not connected to the same frequency band of the same router, the user can manually connect the two to the same frequency band of the same router, but the process is cumbersome and difficult to operate. In one embodiment of the present invention, when it is determined through the aforementioned step 102 that the sending end and the receiving end are not connected to the same frequency band of the same router, an automatic trigger can be set to establish a point-to-point network direct communication link between the sending end and the receiving end. In this way, the user does not need to switch the router and / or frequency band to which the sending end and the receiving end are connected, and the screen can be projected through the established point-to-point network direct communication link, which simplifies the screen projection operation and reduces the difficulty of screen projection.
[0070] The specific implementation of step 101 may be method 1 or method 2 as described below:
[0071] Method 1: The sender obtains the above connection information by scanning the QR code.
[0072] That is, in an optional embodiment of the present invention, the aforementioned step 101 "the transmitting end receives the connection information transmitted by the receiving end through the short link" includes the following steps G-1 to G-2:
[0073] Step G-1: The camera of the sending end scans the graphic code, wherein the graphic code is generated by the receiving end according to the connection information;
[0074] Step G-2: The sending end parses the graphic code to obtain the connection information.
[0075] Among them, scanning the graphic code belongs to a short link transmission mode; the graphic code can be, for example, a two-dimensional code.
[0076] It can be seen that in one embodiment of the present invention, the receiving end can generate a graphic code based on the above connection information, so that the camera of the sending end can scan the graphic code and then parse the graphic code to obtain the above connection information.
[0077] Among them, the above connection information is transmitted from the receiving end to the sending end by scanning the graphic code. The transmission method is simple and the user operation is convenient, which further simplifies the screen projection operation and reduces the difficulty of screen projection.
[0078] Method 2: The sender obtains the above connection information through NFC transmission.
[0079] That is, in an optional embodiment of the present invention, the transmitting end and the receiving end are respectively installed with a near field communication module; the aforementioned step 101 "the transmitting end receives the connection information transmitted by the receiving end through the short link" includes the following step H-1:
[0080] Step H-1: When the distance between the transmitting end and the receiving end is less than a preset threshold, the near field communication module installed on the transmitting end receives the connection information sent by the near field communication module installed on the receiving end.
[0081] Among them, Near Field Communication (NFC) transmission is another short link transmission method.
[0082] It can be seen that in one embodiment of the present invention, NFC modules can be installed on the sending end and the receiving end respectively, and then when the distance between the two is less than a preset threshold, the above connection information can be transmitted from the receiving end to the sending end through the NFC module.
[0083] Among them, the above connection information is transmitted from the receiving end to the sending end through NFC transmission, so that the sending end and the receiving end only need to meet the distance requirement. The transmission method is simpler and the user operation is more convenient, which further simplifies the screen projection operation and reduces the difficulty of screen projection.
[0084] In an optional embodiment of the present invention, the connection information includes second identification information of a router to which the receiving end is connected, and second frequency band information of the router to which the receiving end is connected; in the above step 102, the process in which the sending end determines whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information includes the following steps A-1 to A-2:
[0085] Step A-1: When the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information of the frequency band of the router connected to the sending end is the same as the second frequency band information, the sending end determines that it is connected to the same frequency band of the same router as the receiving end;
[0086] Step A-2: When the first identification information is different from the second identification information and / or the first frequency band information is different from the second frequency band information, the sending end determines that it is not connected to the same frequency band of the same router as the receiving end.
[0087] Among them, the first identification information is used to identify the router connected to the sender, and the first frequency band information is used to identify the frequency band of the router connected to the sender; similarly, the second identification information is used to identify the router connected to the receiver, and the second frequency band information is used to identify the frequency band of the router connected to the receiver. Therefore, by comparing the first identification information and the second identification information, it can be determined whether the sender and the receiver are connected to the same router; by comparing the first frequency band information and the second frequency band information, it can be determined whether the sender and the receiver are connected to the same frequency band.
[0088] That is, if the first identification information is the same as the second identification information, it means that the sender and the receiver are connected to the same router; if the first identification information is different from the second identification information, it means that the sender and the receiver are connected to different routers. If the first frequency band information is the same as the second frequency band information, it means that the sender and the receiver are connected to the same frequency band; if the first frequency band information is different from the second frequency band information, it means that the sender and the receiver are connected to different frequency bands.
[0089] In an optional embodiment of the present invention, the connection information includes peer-to-peer network direct connection authentication information; in the above step 102, the process of the sending end and the receiving end establishing a peer-to-peer network direct connection communication link includes the following step B-1:
[0090] Step B-1: The sending end establishes a point-to-point network direct connection communication link with the receiving end according to the point-to-point network direct connection authentication information.
[0091] The above-mentioned point-to-point network direct connection authentication information includes the identification information and password of the network hotspot created by the receiving end. The identification information and password of the network hotspot are pre-set in the receiving end. It is understandable that the identification information and password of the network hotspot created by the receiving end can also be modified in the receiving end.
[0092] In addition, after the sending end obtains the above-mentioned point-to-point network direct connection authentication information, it can scan the network hotspots created by the receiving end and display the identification information of the scanned network hotspots, so that the user can select one from the identification information of the displayed network hotspots and enter the password in the sending end. When the identification information of the network hotspot selected by the user is consistent with the identification information of the network hotspot included in the above-mentioned point-to-point network authentication information, and the entered password is consistent with the password included in the above-mentioned point-to-point network authentication information, a point-to-point network direct connection communication link is established between the sending end and the receiving end on the selected network hotspot.
[0093] Alternatively, after the sending end obtains the above-mentioned point-to-point network direct connection authentication information, it can scan the network hotspots created by the receiving end, and when the scanned network hotspots include the network hotspot identified by the identification information included in the above-mentioned point-to-point network authentication information, it automatically uses the predetermined password included in the above-mentioned point-to-point network authentication information to establish a point-to-point network direct connection communication link between the sending end and the receiving end on the network hotspot identified by the identification information included in the above-mentioned point-to-point network authentication information.
[0094] In addition, in one embodiment of the present invention, a short link is used for the transmission of the above connection information, and a point-to-point network direct communication link (i.e., a long link) is created based on the point-to-point network authentication information therein, so that subsequent screen projection is performed through the point-to-point network direct communication link. In this way, the short link and the long link complement each other, which can effectively make up for the shortcomings of the existing WiFi screen projection technology (i.e., the screen projection device must be connected to the same frequency band of the same router), thereby simplifying the screen projection operation process, shortening the waiting time for screen projection, and greatly improving the screen projection experience.
[0095] In an optional embodiment of the present invention, the connection information includes address information of the receiving end;
[0096] The method further comprises the following step C-1:
[0097] Step C-1: When the sending end and the receiving end are connected to the same frequency band of the same router, the sending end sends the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end;
[0098] The target router is a router connecting the sending end and the receiving end.
[0099] In addition, the above address information is the network address of the sender.
[0100] From this, it can be seen that if in the aforementioned step 102, after "determining whether the sending end and the receiving end are connected to the same frequency band of the same router", it is concluded that "the sending end and the receiving end are connected to the same frequency band of the same router", then the information interacted between the sending end and the receiving end can be forwarded through the above-mentioned target router connected to the sending end and the receiving end, that is, the relevant information of the above-mentioned projection content is forwarded through the target router.
[0101] Among them, when the sender and the receiver are connected to the same frequency band of the same router, if the router cannot correctly forward multicast and broadcast data packets, it will also lead to the inability to realize screen projection from the sender to the receiver. In this case, in the prior art, it is often necessary to check the function of the router to determine whether the screen projection cannot be achieved because the router cannot forward multicast and broadcast data packets. However, most users do not have professional knowledge, which increases the difficulty of screen projection.
[0102] In one embodiment of the present invention, when the sending end and the receiving end are connected to the same frequency band of the same router, the sending end can transmit relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end. In this way, even if the router connected to the sending end and the receiving end does not support forwarding multicast and broadcast data packets, screen projection between the sending end and the receiving end can also be achieved, thereby further simplifying the screen projection operation and reducing the difficulty of screen projection.
[0103] Further optionally, the above step C-1 "the sending end sends the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end" includes the following step D-1:
[0104] Step D-1: The sending end sends relevant information of the projection content and the address information of the receiving end to the target router, so that the target router sends the relevant information of the projection content to the receiving end according to the address information of the receiving end.
[0105] In the aforementioned step 101, the sending end can receive the connection information transmitted by the receiving end through a short link, and the connection information can include the address information of the receiving end. When the sending end and the receiving end are connected to the same frequency band of the same router, the sending end can send the relevant information of the projection content and the address information of the receiving end to the above-mentioned target router. In this way, the target router can forward the relevant information of the projection content to the receiving end based on the received address information.
[0106] In addition, the sending end can also control the process of the receiving end displaying the projected content, which can be described separately according to different situations of whether the sending end and the receiving end are connected to the same frequency band of the same router.
[0107] Case 1: The sender and the receiver are connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through the target router to which the two are connected, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0108] That is, in an optional embodiment of the present invention, the method further includes the following steps E-1 to E-3:
[0109] Step E-1: When the sending end and the receiving end are connected to the same frequency band of the same router, the sending end sends a capability list request message to the receiving end through the target router according to the address information of the receiving end;
[0110] Step E-2: the sending end receives the screen projection capability list forwarded by the target router for the receiving end, wherein the screen projection capability list includes at least one screen projection control capability;
[0111] Step E-3: The sending end controls the receiving end to display the projected content according to the screen projection capability list.
[0112] From this, it can be seen that if in the aforementioned step 102, after "determining whether the sending end and the receiving end are connected to the same frequency band of the same router", it is concluded that "the sending end and the receiving end are connected to the same frequency band of the same router", then the sending end can request the receiving end for the screen projection capability list through the target router based on the address information of the receiving end, so as to control the screen projection process.
[0113] Among them, in the above step E-1, "the sending end sends a capability list request message to the receiving end through the target router according to the address information of the receiving end" can be specifically: the sending end sends the address information of the receiving end and the capability list request to the target router, so that the target router forwards the capability list request message to the sending end according to the address information of the receiving end.
[0114] In addition, the above-mentioned screen projection capability list may include at least one screen projection control capability among play capability, pause capability, and jump capability.
[0115] In addition, a screen projection control capability included in the screen projection capability list corresponds to a screen projection control operation.
[0116] For example, when the sending end receives the first screen projection control operation (such as a click operation on the first preset control displayed on the sending end), it can check whether there is a playback capability in the above screen projection capability list. If so, the receiving end can be controlled to start playing the screen projection content;
[0117] When the sending end receives the second screen projection control operation (for example, a click operation on the second preset control displayed on the sending end), it can check whether there is a pause capability in the above screen projection capability list. If so, the receiving end can be controlled to pause playing the projection content;
[0118] When the sending end receives the third screen projection control operation (for example, a click operation on the third preset control displayed on the sending end), it can check whether there is a jump capability in the above-mentioned screen projection capability list. If so, the receiving end can be controlled to jump to the display interface of the specified playback progress.
[0119] Case 2: The sender and the receiver are not connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through a point-to-point network direct communication link between the two, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0120] That is, in an optional embodiment of the present invention, the method further includes the following steps F-1 to F-3:
[0121] Step F-1: When the sending end and the receiving end are not connected to the same frequency band of the same router, the sending end sends a capability list request message to the receiving end through the point-to-point network direct communication link;
[0122] Step F-2: the sending end receives the screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability;
[0123] Step F-3: The sending end controls the receiving end to display the projected content according to the screen projection capability list.
[0124] It can be seen that after the aforementioned step 102, when the sending end and the receiving end are not connected to the same frequency band of the same router, a point-to-point network direct communication link is established between the two. Therefore, the sending end can send a capability list request message to the receiving end through the point-to-point network direct communication link, and the receiving end can reply to the sending end with a screen projection capability list through the point-to-point network direct communication link.
[0125] Reference Figure 2 , shows a flowchart of a screen projection processing method embodiment of the present invention, which is applied to the sending end and may specifically include the following steps:
[0126] Step 201: Receive connection information transmitted by a receiving end via a short link.
[0127] The short link is a communication link whose duration is less than a preset duration.
[0128] Step 202: Based on the connection information, determine whether the sending end and the receiving end are connected to the same frequency band of the same router, and if the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the receiving end.
[0129] Step 203: Send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link.
[0130] Among them, after the receiving end receives the relevant information of the projection content sent by the sending end, it can obtain the projection content according to the relevant information of the projection content, thereby displaying the projection content.
[0131] The specific implementation of step 201 may be method 1 or method 2 as described below:
[0132] Method 1: The sender obtains the above connection information by scanning the QR code.
[0133] That is, in an optional embodiment of the present invention, the above step 201 "receiving the connection information transmitted by the receiving end via the short link" includes the following steps R-1 to R-2:
[0134] Step R-1: Scanning a graphic code through a camera of the sending end, wherein the graphic code is generated by the receiving end according to the connection information;
[0135] Step R-2: parse the graphic code to obtain the connection information.
[0136] Among them, scanning the graphic code belongs to a short link transmission mode; the graphic code can be, for example, a two-dimensional code.
[0137] Method 2: The sender obtains the above connection information through NFC transmission.
[0138] That is, in an optional embodiment of the present invention, the transmitting end and the receiving end are respectively installed with a near field communication module; the above step 201 "receiving the connection information transmitted by the receiving end through the short link" includes the following step T-1:
[0139] Step T-1: When the distance between the transmitting end and the receiving end is less than a preset threshold, the connection information sent by the near field communication module installed on the receiving end is received through the near field communication module installed on the transmitting end.
[0140] Among them, Near Field Communication (NFC) transmission belongs to another short link transmission mode. In an optional embodiment of the present invention, the connection information includes second identification information of the router connected to the receiving end, and second frequency band information of the router connected to the receiving end;
[0141] In the above step 202, the process of determining whether the transmitting end and the receiving end are connected to the same frequency band of the same router according to the connection information includes the following steps I-1 to I-2:
[0142] Step I-1: when the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information of the frequency band of the router connected to the sending end is the same as the second frequency band information, determining that the receiving end is connected to the same frequency band of the same router;
[0143] Step I-2: When the first identification information is different from the second identification information and / or the first frequency band information is different from the second frequency band information, determine that the receiving end is not connected to the same frequency band of the same router.
[0144] It can be seen that in an optional embodiment of the present invention, by comparing the aforementioned first identification information and the second identification information, it can be determined whether the sending end and the receiving end are connected to the same router; by comparing the aforementioned first frequency band information and the second frequency band information, it can be determined whether the sending end and the receiving end are connected to the same frequency band.
[0145] In an optional embodiment of the present invention, the connection information includes point-to-point network direct connection authentication information;
[0146] In the above step 202, the process of establishing a point-to-point network direct communication link with the receiving end includes the following step J-1:
[0147] Step J-1: Establishing a point-to-point network direct connection communication link with the receiving end according to the point-to-point network direct connection authentication information.
[0148] The point-to-point network direct connection authentication information includes the identification information and password of the network hotspot created by the receiving end. That is, in an optional embodiment of the present invention, a point-to-point network direct connection communication link between the sending end and the receiving end can be established based on the identification information and password of the network hotspot created by the receiving end.
[0149] In an optional embodiment of the present invention, the connection information includes address information of the receiving end;
[0150] The method further comprises the following step K-1:
[0151] Step K-1: When the transmitting end and the receiving end are connected to the same frequency band of the same router, the relevant information of the screen projection content is sent to the receiving end through the target router according to the address information of the receiving end;
[0152] The target router is a router connecting the sending end and the receiving end.
[0153] In addition, the above address information is the network address of the sender.
[0154] From this, it can be seen that if after "determining whether the sending end and the receiving end are connected to the same frequency band of the same router" in the aforementioned step 202, it is concluded that "the sending end and the receiving end are connected to the same frequency band of the same router", then the information interacted between the sending end and the receiving end can be forwarded through the above-mentioned target router connected to the sending end and the receiving end, that is, the relevant information of the above-mentioned projection content is forwarded through the target router.
[0155] Further optionally, step K-1 "sending the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end" includes the following step L-1:
[0156] Step L-1: Send relevant information of the projection content and the address information of the receiving end to the target router, so that the target router sends the relevant information of the projection content to the receiving end according to the address information of the receiving end.
[0157] In the aforementioned step 201, the sending end can receive the connection information transmitted by the receiving end through a short link, and the connection information can include the address information of the receiving end. When the sending end and the receiving end are connected to the same frequency band of the same router, the sending end can send the relevant information of the projection content and the address information of the receiving end to the above-mentioned target router. In this way, the target router can forward the relevant information of the projection content to the receiving end based on the received address information.
[0158] In addition, the sending end can also control the process of the receiving end displaying the projected content, which can be described separately according to different situations of whether the sending end and the receiving end are connected to the same frequency band of the same router.
[0159] Case 1: The sender and the receiver are connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through the target router to which the two are connected, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0160] That is, in an optional embodiment of the present invention, the method further includes the following steps Q-1 to Q-3:
[0161] Step Q-1: When the sending end and the receiving end are connected to the same frequency band of the same router, a capability list request message is sent to the receiving end through the target router according to the address information of the receiving end;
[0162] Step Q-2: receiving a screen projection capability list forwarded by the target router for the receiving end, wherein the screen projection capability list includes at least one screen projection control capability;
[0163] Step Q-3: According to the screen projection capability list, control the process of the receiving end displaying the screen projection content.
[0164] From this, it can be seen that if after "determining whether the sending end and the receiving end are connected to the same frequency band of the same router" in the aforementioned step 202, it is concluded that "the sending end and the receiving end are connected to the same frequency band of the same router", then the sending end can request the receiving end for the screen projection capability list through the target router based on the address information of the receiving end, so as to control the screen projection process.
[0165] Case 2: The sender and the receiver are not connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through a point-to-point network direct communication link between the two, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0166] That is, in an optional embodiment of the present invention, the method further includes the following steps W-1 to W-3:
[0167] Step W-1: When the sending end and the receiving end are not connected to the same frequency band of the same router, sending a capability list request message to the receiving end through the point-to-point network direct communication link;
[0168] Step W-2: receiving a screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability;
[0169] Step W-3: According to the screen projection capability list, control the process of the receiving end displaying the screen projection content.
[0170] Among them, after the aforementioned step 202, when the sending end and the receiving end are not connected to the same frequency band of the same router, a point-to-point network direct communication link is established between the two. Therefore, the sending end can send a capability list request message to the receiving end through the point-to-point network direct communication link, and the receiving end can reply to the sending end with a screen projection capability list through the point-to-point network direct communication link.
[0171] Reference Figure 3 , shows a flowchart of a screen projection processing method embodiment of the present invention, which is applied to a receiving end and may specifically include the following steps:
[0172] Step 301: Send connection information to the sending end via the short link.
[0173] The short link is a communication link whose duration is less than a preset duration.
[0174] Step 302: When the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the sending end.
[0175] Step 303: Receive relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link.
[0176] Step 304: Display the projected content according to the relevant information of the projected content.
[0177] The specific implementation of step 301 may be method 1 or method 2 as described below:
[0178] Method 1: The sender obtains the above connection information by scanning the QR code.
[0179] That is, in an optional embodiment of the present invention, the above step 301 "sending connection information to the sending end through the short link" includes the following step Y1:
[0180] Step Y1: Generate a graphic code according to the connection information, and display the graphic code, so that the camera of the sending end scans the graphic code and parses the graphic code to obtain the connection information.
[0181] Among them, scanning the graphic code belongs to a short link transmission mode; the graphic code can be, for example, a two-dimensional code.
[0182] Method 2: The sender obtains the above connection information through NFC transmission.
[0183] That is, in an optional embodiment of the present invention, the connection information is sent to the sending end through the short link, wherein the above step 301 "sending the connection information to the sending end through the short link" includes the following step U1:
[0184] Step U1: When the distance between the transmitting end and the receiving end is less than a preset threshold, the near field communication module installed on the receiving end sends the connection information to the near field communication module installed on the transmitting end.
[0185] Among them, Near Field Communication (NFC) transmission is another short link transmission method.
[0186] In an optional embodiment of the present invention, the connection information includes at least one of the following:
[0187] second identification information of the router connected to the receiving end, and second frequency band information of the router connected to the receiving end;
[0188] Peer-to-peer network direct connection authentication information.
[0189] Among them, after the sending end receives the above-mentioned second identification information and second frequency band information, when the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information and the second frequency band information of the frequency band of the router connected to the sending end are the same, it can be determined that the sending end is connected to the same frequency band of the same router as the receiving end; when the first identification information and the second identification information are different, and / or the first frequency band information and the second frequency band information are different, it can be determined that the sending end is not connected to the same frequency band of the same router as the receiving end.
[0190] In addition, after the sending end receives the above-mentioned point-to-point network direct connection authentication information, it can establish a point-to-point network direct connection communication link with the receiving end.
[0191] In an optional embodiment of the present invention, the connection information includes address information of the receiving end;
[0192] The method further comprises the following step O-1:
[0193] Step O-1: When the sending end and the receiving end are connected to the same frequency band of the same router, receive the relevant information of the screen projection content sent by the sending end according to the address information of the receiving end.
[0194] In addition, the above address information is the network address of the sender.
[0195] From this, it can be seen that if the sending end and the receiving end are connected to the same frequency band of the same router, the information interacted between the two ends can be forwarded through the above-mentioned target router connected to the sending end and the receiving end, that is, the relevant information of the above-mentioned projection content can be forwarded through the target router.
[0196] In an optional embodiment of the present invention, step O-1 "receiving the relevant information of the screen projection content sent by the sending end according to the address information of the receiving end" includes the following step P-1:
[0197] Step P-1: Receive the relevant information of the projection content forwarded by the target router according to the address information of the receiving end, wherein the target router is a router connecting the sending end and the receiving end, and the relevant information of the projection content and the address information of the receiving end are sent by the sending end to the target router.
[0198] In the aforementioned step 301, the receiving end can transmit connection information to the sending end through a short link, and the connection information can include the address information of the receiving end. When the sending end and the receiving end are connected to the same frequency band of the same router, the sending end can send the relevant information of the projection content and the address information of the receiving end to the above-mentioned target router. In this way, the target router can forward the relevant information of the projection content to the receiving end based on the received address information.
[0199] In addition, the sending end can also control the process of the receiving end displaying the projected content, which can be described separately according to different situations of whether the sending end and the receiving end are connected to the same frequency band of the same router.
[0200] Case 1: The sender and the receiver are connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through the target router to which the two are connected, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0201] That is, in an optional embodiment of the present invention, the method further includes the following steps Z-1 to Z-2:
[0202] Step Z-1: When the sending end and the receiving end are connected to the same frequency band of the same router, receiving a capability list request message forwarded by the target router according to the address information of the receiving end, wherein the capability list request message and the address information of the receiving end are sent by the sending end to the target router;
[0203] Step Z-2: Send the screen projection capability list of the receiving end to the target router, so that the target router forwards the screen projection capability list to the sending end, wherein the screen projection capability list includes at least one screen projection control capability.
[0204] From this, we can see that if the sender and the receiver are connected to the same frequency band of the same router, the sender can request the receiver's screen projection capability list through the target router based on the receiver's address information, so as to control the screen projection process.
[0205] Case 2: The sender and the receiver are not connected to the same frequency band of the same router. The sender's screen projection capability list is transmitted through a point-to-point network direct communication link between the two, so that the sender controls the screen projection process of the receiver based on the screen projection capability list.
[0206] That is, in an optional embodiment of the present invention, the method further includes the following steps X-1 to X-2:
[0207] Step X-1: When the sending end and the receiving end are not connected to the same frequency band of the same router, receiving a capability list request message sent by the sending end through the point-to-point network direct communication link;
[0208] Step X-2: Send the screen projection capability list of the receiving end to the sending end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability.
[0209] It can be seen that after the aforementioned step 302, when the sending end and the receiving end are not connected to the same frequency band of the same router, a point-to-point network direct communication link is established between the two. Therefore, the sending end can send a capability list request message to the receiving end through the point-to-point network direct communication link, and the receiving end can reply to the sending end with a screen projection capability list through the point-to-point network direct communication link.
[0210] In summary, the specific implementation of the screen projection processing method of the embodiment of the present invention can be as follows: Figure 4 and Figure 5 shown.
[0211] Among them, the screen projection setting interface of the sending end and the receiving end are respectively provided with a multi-link screen projection control switch, and NFC modules are respectively installed on the sending end and the receiving end.
[0212] Specifically, the execution process of the screen projection processing method when applied to the above-mentioned sending end and receiving end is as follows:
[0213] Step 401: when the multi-link screen projection control switch on the receiving end is in the on state, a QR code is generated according to the connection information and the QR code is displayed, wherein the connection information includes the second identification information of the router connected to the receiving end, the second frequency band information of the router connected to the receiving end, the point-to-point direct connection authentication information, and the address information of the receiving end;
[0214] Step 402: The camera of the transmitting end scans the QR code displayed by the receiving end and parses it to obtain the above connection information; or, when the transmitting end is close to the receiving end so that the distance between the two ends is less than a preset threshold, the NFC module on the transmitting end receives the connection information transmitted by the NFC module on the receiving end;
[0215] Among them, the transmission method of scanning the QR code and the transmission method of the NFC module described here belong to Figure 5 The “short link” transmission mode shown in .
[0216] Step 403: The sending end determines whether the sending end and the receiving end are connected to the same frequency band of the same router according to the first identification information of the router connected to the sending end, the first frequency band information of the frequency band of the router connected to the sending end, and the second identification information and the second frequency band information in the above connection information;
[0217] In the first aspect, when the transmitting end and the receiving end are connected to the same frequency band of the same router, the following steps 404 to 408 are performed:
[0218] Step 404: the sending end sends a capability list request message and the address information of the receiving end to the target router, so that the target router forwards the capability list request message to the receiving end according to the address information of the receiving end, wherein the target router is a router connecting the sending end and the receiving end;
[0219] Step 405: the receiving end returns a screen projection capability list to the target router, so that the target router forwards the screen projection capability list to the sending end, wherein the screen projection capability list includes at least one screen projection control capability;
[0220] Step 406: the sending end sends the link information of the video file and the address information of the receiving end to the target router, so that the target router forwards the link information to the receiving end according to the address information of the receiving end;
[0221] Step 407: The receiving end obtains the video file according to the link information and plays the video file;
[0222] Step 408: The sending end controls the receiving end to play the video file according to the screen projection capability list;
[0223] It is understood that the order of steps 404 to 407 is not limited;
[0224] In the second aspect, when the transmitting end and the receiving end are not connected to the same frequency band of the same router, the following steps 409 to 414 are performed:
[0225] Step 409: The sending end establishes a WiFi point-to-point direct communication link between the sending end and the receiving end according to the point-to-point direct connection authentication information in the connection information;
[0226] Step 410: The sending end sends a capability list request message to the receiving end via the WiFi point-to-point direct communication link;
[0227] Step 411: the receiving end returns a screen projection capability list to the sending end through a WiFi point-to-point direct communication link, wherein the screen projection capability list includes at least one screen projection control capability;
[0228] Step 412: The sending end sends link information of the video file to the receiving end via the WiFi point-to-point direct communication link;
[0229] Step 413: The receiving end obtains the video file according to the link information and plays the video file;
[0230] Step 414: The sending end controls the receiving end to play the video file according to the screen projection capability list;
[0231] It is understood that the order of steps 410 to 413 is not limited;
[0232] It should be noted that if the request for the capability list in step 404 fails, the process may jump to subsequent steps 409 to 414 .
[0233] From the above, it can be seen that the screen projection processing method of the embodiment of the present invention can adopt NFC or QR code scanning, WiFi point-to-point direct connection and other links, to assist the conventional WiFi router connection link to jointly complete the screen projection function, thereby lowering the use threshold of the screen projection function (the two ends participating in the screen projection are connected to the same WiFi router, and there is no need to purchase a WiFi router), solving the user's difficult problems and improving the ease of use of the screen projection function.
[0234] Figure 6 is a structural block diagram of a screen projection processing system provided by an embodiment of the present invention, such as Figure 6 As shown, the screen projection processing system 50 includes a sending end 501 and a receiving end 502;
[0235] The transmitting end 501 is used to receive the connection information transmitted by the receiving end 502 via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0236] The sending end 501 is further used to determine whether the sending end 501 and the receiving end 502 are connected to the same frequency band of the same router according to the connection information, and to establish a point-to-point network direct communication link with the receiving end 502 when the sending end 501 and the receiving end 502 are not connected to the same frequency band of the same router;
[0237] The sending end 501 is further used to send relevant information of the screen projection content to the receiving end 502 through the point-to-point network direct communication link;
[0238] The receiving end 502 is used to display the projected content according to the relevant information of the projected content.
[0239] In an optional embodiment of the present invention, the connection information includes second identification information of the router connected to the receiving end 502 and second frequency band information of the router connected to the receiving end 502;
[0240] The sending end 501 determines, according to the connection information, whether the sending end 501 and the receiving end 502 are connected to the same frequency band of the same router, specifically for:
[0241] When the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information of the frequency band of the router connected to the sending end is the same as the second frequency band information, the sending end 501 determines that it is connected to the same frequency band of the same router as the receiving end 502;
[0242] When the first identification information is different from the second identification information and / or the first frequency band information is different from the second frequency band information, the transmitting end 501 determines that it is not connected to the same frequency band of the same router as the receiving end 502.
[0243] In an optional embodiment of the present invention, the connection information includes point-to-point network direct connection authentication information;
[0244] The sending end 501 and the receiving end 502 establish a point-to-point network direct communication link, which is specifically used for:
[0245] The sending end 501 establishes a point-to-point network direct connection communication link with the receiving end 502 according to the point-to-point network direct connection authentication information.
[0246] In an optional embodiment of the present invention, the connection information includes address information of the receiving end 502;
[0247] In the case where the sending end 501 and the receiving end 502 are connected to the same frequency band of the same router, the sending end 501 is further used to send the relevant information of the screen projection content to the receiving end 502 through the target router according to the address information of the receiving end 502;
[0248] The target router is a router connecting the sending end 501 and the receiving end 502 .
[0249] In an optional embodiment of the present invention, the sending end 501 sends the relevant information of the screen projection content to the receiving end 502 through the target router according to the address information of the receiving end 502, specifically for:
[0250] The sending end 501 sends the relevant information of the projection content and the address information of the receiving end 502 to the target router, so that the target router sends the relevant information of the projection content to the receiving end 502 according to the address information of the receiving end 502.
[0251] In an optional embodiment of the present invention, the sending end 501 is further configured to:
[0252] In the case where the sending end 501 and the receiving end 502 are connected to the same frequency band of the same router, sending a capability list request message to the receiving end 502 through the target router according to the address information of the receiving end 502;
[0253] Receiving a screen projection capability list forwarded by the target router for the receiving end 502, wherein the screen projection capability list includes at least one screen projection control capability;
[0254] According to the screen projection capability list, the process of controlling the receiving end 502 to display the screen projection content.
[0255] In an optional embodiment of the present invention, the sending end 501 is further configured to:
[0256] In the case where the sending end 501 and the receiving end 502 are not connected to the same frequency band of the same router, sending a capability list request message to the receiving end 502 through the point-to-point network direct communication link;
[0257] Receiving a screen projection capability list sent by the receiving end 502 through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability;
[0258] According to the screen projection capability list, the process of controlling the receiving end 502 to display the screen projection content.
[0259] In an optional embodiment of the present invention, the transmitting end 501 receives the connection information transmitted by the receiving end 502 via the short link, specifically for:
[0260] The camera of the transmitting end 501 scans the graphic code, wherein the graphic code is generated by the receiving end 502 according to the connection information;
[0261] The sending end 501 parses the graphic code to obtain the connection information.
[0262] In an optional embodiment of the present invention, the transmitting end 501 and the receiving end 502 are respectively installed with a near field communication module;
[0263] The transmitting end 501 receives the connection information transmitted by the receiving end 502 via the short link, specifically for:
[0264] When the distance between the transmitting end 501 and the receiving end 502 is less than a preset threshold, the near field communication module installed on the transmitting end 501 receives the connection information sent by the near field communication module installed on the receiving end 502 .
[0265] Figure 7 is a structural block diagram of a screen projection processing device provided by an embodiment of the present invention, and the screen projection processing device can be applied to a transmitting end. Figure 7 As shown, the screen projection processing device 60 includes the following modules:
[0266] The connection information receiving module 601 is used to receive the connection information transmitted by the receiving end through the short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0267] A first establishing module 602 is used to determine whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information, and to establish a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router;
[0268] The first sending module 603 is used to send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link.
[0269] In an optional embodiment of the present invention, the connection information includes second identification information of the router connected to the receiving end, and second frequency band information of the router connected to the receiving end;
[0270] The first establishing module 602 determines whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information, and is specifically used to:
[0271] When the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information of the frequency band of the router connected to the sending end is the same as the second frequency band information, determining that the receiving end is connected to the same frequency band of the same router;
[0272] When the first identification information is different from the second identification information and / or the first frequency band information is different from the second frequency band information, it is determined that the receiving end is not connected to the same frequency band of the same router.
[0273] In an optional embodiment of the present invention, the connection information includes point-to-point network direct connection authentication information;
[0274] The first establishing module 602 establishes a point-to-point network direct communication link with the receiving end, specifically for:
[0275] A point-to-point network direct connection communication link is established with the receiving end according to the point-to-point network direct connection authentication information.
[0276] In an optional embodiment of the present invention, the connection information includes address information of the receiving end;
[0277] The device also includes:
[0278] The second sending module 604 is used to send the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router;
[0279] The target router is a router connecting the sending end and the receiving end.
[0280] In an optional embodiment of the present invention, the second sending module 604 sends the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end, specifically for:
[0281] Send relevant information of the projection content and the address information of the receiving end to the target router, so that the target router sends the relevant information of the projection content to the receiving end according to the address information of the receiving end.
[0282] In an optional embodiment of the present invention, the device further comprises:
[0283] The third sending module 605 is used to send a capability list request message to the receiving end through the target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router;
[0284] A second receiving module 606 is configured to receive a screen projection capability list forwarded by the target router for the receiving end, wherein the screen projection capability list includes at least one screen projection control capability;
[0285] The first control module 607 is used to control the process of the receiving end displaying the projected content according to the screen projection capability list.
[0286] In an optional embodiment of the present invention, the device further comprises:
[0287] A fourth sending module 608, configured to send a capability list request message to the receiving end through the point-to-point network direct communication link when the sending end and the receiving end are not connected to the same frequency band of the same router;
[0288] A third receiving module 609 is configured to receive a screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability;
[0289] The second control module 610 is used to control the process of the receiving end displaying the projected content according to the screen projection capability list.
[0290] In an optional embodiment of the present invention, the connection information receiving module 601 is specifically used for:
[0291] Scanning a graphic code through a camera of the sending end, wherein the graphic code is generated by the receiving end according to the connection information;
[0292] The graphic code is parsed to obtain the connection information.
[0293] In an optional embodiment of the present invention, a near field communication module is installed on the transmitting end and the receiving end respectively;
[0294] The connection information receiving module 601 is specifically used for:
[0295] When the distance between the transmitting end and the receiving end is less than a preset threshold, the connection information sent by the near field communication module installed on the receiving end is received through the near field communication module installed on the transmitting end.
[0296] Figure 8 1 is a structural block diagram of a screen projection processing device provided by an embodiment of the present invention, and the screen projection processing device can be applied to a receiving end. Figure 8 As shown, the screen projection processing device 70 includes the following modules:
[0297] A connection information sending module 701 is used to send connection information to a sending end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0298] A second establishing module 702 is used to establish a point-to-point network direct communication link with the sending end when the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router;
[0299] The first receiving module 703 is used to receive the relevant information of the screen projection content sent by the sending end through the point-to-point network direct communication link;
[0300] The display module 704 is used to display the projected content according to the relevant information of the projected content.
[0301] In an optional embodiment of the present invention, the connection information includes at least one of the following:
[0302] second identification information of the router connected to the receiving end, and second frequency band information of the router connected to the receiving end;
[0303] Peer-to-peer network direct connection authentication information.
[0304] In an optional embodiment of the present invention, the connection information includes address information of the receiving end;
[0305] The device also includes:
[0306] The fourth receiving module 705 is used to receive the relevant information of the screen projection content sent by the sending end according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router.
[0307] In an optional embodiment of the present invention, the fourth receiving module 705 receives the relevant information of the screen projection content sent by the sending end according to the address information of the receiving end, and is specifically used for:
[0308] The receiving target router forwards the relevant information of the projection content according to the address information of the receiving end, wherein the target router is a router connecting the sending end and the receiving end, and the relevant information of the projection content and the address information of the receiving end are sent by the sending end to the target router.
[0309] In an optional embodiment of the present invention, the device further comprises:
[0310] A fifth receiving module 706, configured to receive a capability list request message forwarded by the target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router, wherein the capability list request message and the address information of the receiving end are sent by the sending end to the target router;
[0311] The fifth sending module 707 is used to send the screen projection capability list of the receiving end to the target router, so that the target router forwards the screen projection capability list to the sending end, wherein the screen projection capability list includes at least one screen projection control capability.
[0312] In an optional embodiment of the present invention, the device further comprises:
[0313] A sixth receiving module 708, configured to receive a capability list request message sent by the sending end through the point-to-point network direct communication link when the sending end and the receiving end are not connected to the same frequency band of the same router;
[0314] The sixth sending module 709 is used to send the screen projection capability list of the receiving end to the sending end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability.
[0315] In an optional embodiment of the present invention, the connection information sending module 701 is specifically used for:
[0316] A graphic code is generated according to the connection information, and the graphic code is displayed, so that the camera of the sending end scans the graphic code and parses the graphic code to obtain the connection information.
[0317] In an optional embodiment of the present invention, the connection information sending module 701 is specifically used for:
[0318] When the distance between the transmitting end and the receiving end is less than a preset threshold, the connection information is sent to the near field communication module installed on the transmitting end through the near field communication module installed on the receiving end.
[0319] like Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of the screen projection processing device provided in an embodiment of the present invention. Fig. 9 , including a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82, and the memory 83 communicate with each other through the communication bus 84;
[0320] A memory 83, for storing computer programs;
[0321] The processor 81 is used to execute the program stored in the memory 83 to implement the following steps:
[0322] Receiving connection information transmitted by a receiving end via a short link, wherein the short link is a communication link whose duration is less than a preset duration;
[0323] According to the connection information, determine whether the sending end and the receiving end are connected to the same frequency band of the same router, and if the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the receiving end;
[0324] Sending relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link;
[0325] Alternatively, implement the following steps:
[0326] Sending connection information to the sending end via a short link, wherein the short link is a communication link with a duration shorter than a preset duration;
[0327] When the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router, establishing a point-to-point network direct communication link with the sending end;
[0328] Receiving relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link;
[0329] The projected screen content is displayed according to the relevant information of the projected screen content.
[0330] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.
[0331] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0332] In another embodiment of the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the screen projection processing method described in any one of the above embodiments.
[0333] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the screen projection processing method described in any one of the above embodiments.
[0334] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0335] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0336] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0337] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A screen projection processing method, characterized in that: Applied to a system including a transmitting end and a receiving end, the method includes: The transmitting end receives connection information transmitted by the receiving end via a short link, wherein the short link is a communication link whose duration is less than a preset duration, and the connection information includes second identification information of a router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; The sending end determines, based on the connection information, whether the sending end and the receiving end are connected to the same frequency band of the same router, and establishes a point-to-point network direct communication link with the receiving end if the sending end and the receiving end are not connected to the same frequency band of the same router, wherein the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; The sending end sends the relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link; The receiving end displays the projected content according to the relevant information of the projected content; In the case where the sending end and the receiving end are connected to the same frequency band of the same router, the sending end sends a capability list request message to the receiving end through the target router according to the address information of the receiving end; the sending end receives the screen projection capability list forwarded by the target router for the receiving end, and the target router is a router connecting the sending end and the receiving end; In the case where the sending end and the receiving end are not connected to the same frequency band of the same router, the sending end sends a capability list request message to the receiving end through the point-to-point network direct communication link; the sending end receives the screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability; The sending end controls the process of the receiving end displaying the projected content according to the screen projection capability list.
2. The method according to claim 1, characterized in that The sending end determines, according to the connection information, whether the sending end and the receiving end are connected to the same frequency band of the same router, including: When the first identification information of the router connected to the sending end is the same as the second identification information, and the first frequency band information of the frequency band of the router connected to the sending end is the same as the second frequency band information, the sending end determines to be connected to the same frequency band of the same router as the receiving end; When the first identification information is different from the second identification information and / or the first frequency band information is different from the second frequency band information, the sending end determines that it is not connected to the same frequency band of the same router as the receiving end.
3. The method according to claim 1, characterized in that The connection information includes point-to-point network direct connection authentication information; The sending end and the receiving end establish a point-to-point network direct communication link, including: The sending end establishes a point-to-point network direct connection communication link with the receiving end according to the point-to-point network direct connection authentication information.
4. The method according to claim 1, characterized in that: The method further comprises: In the case that the sending end and the receiving end are connected to the same frequency band of the same router, the sending end sends the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end.
5. The method according to claim 4, characterized in that The sending end sends the relevant information of the screen projection content to the receiving end through the target router according to the address information of the receiving end, including: The sending end sends the relevant information of the projection content and the address information of the receiving end to the target router, so that the target router sends the relevant information of the projection content to the receiving end according to the address information of the receiving end.
6. The method according to claim 1, characterized in that The sending end receives the connection information transmitted by the receiving end through the short link, including: The camera of the sending end scans the graphic code, wherein the graphic code is generated by the receiving end according to the connection information; The sending end parses the graphic code to obtain the connection information.
7. The method according to claim 1, characterized in that The transmitting end and the receiving end are respectively equipped with a near field communication module; The sending end receives the connection information transmitted by the receiving end through the short link, including: When the distance between the transmitting end and the receiving end is less than a preset threshold, the near field communication module installed on the transmitting end receives the connection information sent by the near field communication module installed on the receiving end.
8. A screen projection processing method, characterized in that: Applied to the sending end, the method includes: Receiving connection information transmitted by a receiving end via a short link, wherein the short link is a communication link with a duration less than a preset duration, and the connection information includes second identification information of a router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; According to the connection information, determine whether the sending end and the receiving end are connected to the same frequency band of the same router, and if the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the receiving end, wherein the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; Sending relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link; In the case where the sending end and the receiving end are connected to the same frequency band of the same router, sending a capability list request message to the receiving end through the target router according to the address information of the receiving end; receiving the screen projection capability list forwarded by the target router for the receiving end, the target router being a router connecting the sending end and the receiving end; When the sending end and the receiving end are not connected to the same frequency band of the same router, sending a capability list request message to the receiving end through the point-to-point network direct communication link; receiving a screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability; According to the screen projection capability list, the process of controlling the receiving end to display the projected content is controlled.
9. A screen projection processing method, characterized in that: Applied to the receiving end, the method includes: Sending connection information to the sending end through a short link, wherein the short link is a communication link whose duration is less than a preset duration, and the connection information includes second identification information of the router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; When the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router, establish a point-to-point network direct communication link with the sending end, and the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; Receiving relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link; Displaying the projected screen content according to the relevant information of the projected screen content; In the case where the sending end and the receiving end are connected to the same frequency band of the same router, receiving a capability list request message forwarded by a target router according to the address information of the receiving end, wherein the capability list request message and the address information of the receiving end are sent by the sending end to the target router; sending the screen projection capability list of the receiving end to the target router, so that the target router forwards the screen projection capability list to the sending end, and the target router is a router connecting the sending end and the receiving end; When the sending end and the receiving end are not connected to the same frequency band of the same router, a capability list request message sent by the sending end is received through the point-to-point network direct communication link; and the screen projection capability list of the receiving end is sent to the sending end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability.
10. A screen projection processing system, characterized in that: The screen projection processing system includes a transmitting end and a receiving end; The transmitting end is used to receive connection information transmitted by the receiving end via a short link, wherein the short link is a communication link with a duration less than a preset duration, and the connection information includes second identification information of a router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; The sending end is further used to determine whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information, and to establish a point-to-point network direct communication link with the receiving end when the sending end and the receiving end are not connected to the same frequency band of the same router, wherein the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; The sending end is further used to send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link; The receiving end is used to display the projected content according to the relevant information of the projected content; The sending end is further used to send a capability list request message to the receiving end through a target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router, and the target router is a router connecting the sending end and the receiving end; When the sending end and the receiving end are not connected to the same frequency band of the same router, sending a capability list request message to the receiving end through the point-to-point network direct communication link; receiving a screen projection capability list sent by the receiving end through the point-to-point network direct communication link, wherein the screen projection capability list includes at least one screen projection control capability; According to the screen projection capability list, the process of controlling the receiving end to display the projected content is controlled.
11. A screen projection processing device, characterized in that: Applied to a transmitting end, the device comprises: A connection information receiving module, configured to receive connection information transmitted by a receiving end via a short link, wherein the short link is a communication link with a duration less than a preset duration, and the connection information includes second identification information of a router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; A first establishing module is used to determine whether the sending end and the receiving end are connected to the same frequency band of the same router according to the connection information, and to establish a point-to-point network direct communication link with the receiving end when the sending end and the receiving end are not connected to the same frequency band of the same router, wherein the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; A first sending module, used to send relevant information of the screen projection content to the receiving end through the point-to-point network direct communication link; A third sending module is used to send a capability list request message to the receiving end through a target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router, and the target router is a router connecting the sending end and the receiving end; A second receiving module is used to receive a screen projection capability list forwarded by the target router for the receiving end, wherein the screen projection capability list includes at least one screen projection control capability; A first control module, configured to control the receiving end to display the screen projection content according to the screen projection capability list; A fourth sending module, configured to send a capability list request message to the receiving end through the point-to-point network direct communication link when the sending end and the receiving end are not connected to the same frequency band of the same router; A third receiving module is used to receive the screen projection capability list sent by the receiving end through the point-to-point network direct communication link; The second control module is used to control the process of the receiving end displaying the projected content according to the screen projection capability list.
12. A screen projection processing device, characterized in that: Applied to a receiving end, the device comprises: A connection information sending module, configured to send connection information to a sending end through a short link, wherein the short link is a communication link whose duration is less than a preset duration, and the connection information includes second identification information of a router connected to the receiving end and address information of the receiving end, and second frequency band information of the router connected to the receiving end; A second establishing module, configured to establish a point-to-point network direct communication link with the sending end when the connection information indicates that the sending end and the receiving end are not connected to the same frequency band of the same router, wherein the point-to-point network direct communication link is established based on the identification information and password of the network hotspot created by the receiving end; A first receiving module, used to receive relevant information about the screen projection content sent by the sending end through the point-to-point network direct communication link; A display module, used to display the projection content according to the relevant information of the projection content; a fifth receiving module, configured to receive a capability list request message forwarded by a target router according to the address information of the receiving end when the sending end and the receiving end are connected to the same frequency band of the same router, wherein the capability list request message and the address information of the receiving end are sent by the sending end to the target router, and the target router is a router connecting the sending end and the receiving end; a fifth sending module, configured to send the screen projection capability list of the receiving end to the target router, so that the target router forwards the screen projection capability list to the sending end, wherein the screen projection capability list includes at least one screen projection control capability; A sixth receiving module, configured to receive a capability list request message sent by the sending end through the point-to-point network direct communication link when the sending end and the receiving end are not connected to the same frequency band of the same router; The sixth sending module is used to send the screen projection capability list of the receiving end to the sending end through the point-to-point network direct communication link.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the screen projection processing method as described in any one of claims 1-7, or implements the screen projection processing method as described in claim 8 or 9.
Citation Information
Patent Citations
Screen projection control method, device and equipment and computer readable storage medium
CN114650617A
Method for transmitting screen-projection audio and video data, and related devices
WO2022143034A1