Screen projection control method and device, equipment and computer readable storage medium
By acquiring the network information of the target terminal device and establishing a connection using a peer-to-peer network strategy, the problems of low screen projection efficiency and remote screen projection are solved, achieving efficient screen projection control of terminal devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2026-04-10
AI Technical Summary
Existing screen mirroring technology has low efficiency and cannot achieve remote screen mirroring from the terminal device, resulting in a poor user experience.
By acquiring the target terminal device's current network information, establishing connections between different local area networks using peer-to-peer networking policies, and receiving control commands, screen projection control can be achieved.
It improves screen projection efficiency, enables remote screen projection from terminal devices, and enhances the user experience.
Smart Images

Figure CN114650617B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of screen projection management, and particularly relates to a screen projection control method and device, equipment and a computer readable storage medium. BACKGROUND
[0002] With the continuous improvement of Internet of Things technology, terminal equipment has gradually become the main equipment of the operation center of smart home, and the smart home equipment includes smart televisions, smart display screens and the like, and the terminal equipment can be mobile phones, tablet computers and the like. In order to meet the needs of work and life, people often use screen projection to explain content and watch video content, and screen projection is to deliver audio, video and document media information to a display device for display. However, the current screen projection method requires that the control device and the display device be in the same local area network, so that a large amount of tedious preparation work needs to be done before screen projection, such as connecting the control device and the display device to the same network and debugging after connection, resulting in low screen projection efficiency, and the screen projection method cannot realize remote control screen projection, thereby causing low user experience.
[0003] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a screen projection control method, device, equipment and computer readable storage medium, which aims to solve the technical problems of low screen projection efficiency and inability to realize remote control screen projection of terminal equipment in the prior art.
[0005] To achieve the above purpose, the present application provides a screen projection control method, comprising:
[0006] obtaining current network information of a target terminal device;
[0007] establishing a connection with the target terminal device through a peer-to-peer network strategy when the current network information and the target network information are not in the same local area network;
[0008] receiving a control instruction sent by the target terminal device;
[0009] screen projecting content to be projected through the control instruction to realize control of screen projection based on the terminal device.
[0010] Optionally, the connection with the target terminal device through the peer-to-peer network strategy comprises:
[0011] determining the current network address and the current subnet mask of the target terminal device according to the current network information;
[0012] determining the target network address and the target subnet mask according to the target network information;
[0013] When the current subnet mask is consistent with the target subnet mask, the current network address and the current subnet mask are calculated to obtain a current network value;
[0014] The target network address and the target subnet mask are calculated to obtain a target network value;
[0015] When the current network value is inconsistent with the target network value, a peer-to-peer network strategy is used to establish a connection with the target terminal device.
[0016] Optionally, after determining the target network address and the target subnet mask according to the target network information, the method further includes:
[0017] When the current subnet mask is inconsistent with the target subnet mask, a peer-to-peer network strategy is used to establish a connection with the target terminal device.
[0018] Optionally, before establishing a connection with the target terminal device through the peer-to-peer network strategy, the method further includes:
[0019] The obtained preset start instruction is sent to the target terminal device, and start success information of starting the target terminal application fed back by the target terminal device based on the preset start instruction is received;
[0020] The target terminal application address and the target terminal application name are determined according to the start success information.
[0021] The peer-to-peer network strategy is generated according to the target terminal application address and the target terminal application name.
[0022] Optionally, before the content to be projected is projected through the control instruction, the method further includes:
[0023] The current running state is obtained.
[0024] When the current running state is a non-projection state, the step of projecting the content to be projected through the control instruction is performed.
[0025] Optionally, after obtaining the current running state, the method further includes:
[0026] When the current running state is a projection state, the control instruction is encapsulated to obtain an HID control instruction.
[0027] The content to be projected is projected through the control instruction, including:
[0028] The content to be projected is projected through the HID control instruction.
[0029] Optionally, before the content to be projected is projected through the control instruction, the method further includes:
[0030] The corresponding anti-control instruction is generated according to the control instruction.
[0031] sending the anti-control instruction to the current terminal device, and receiving the feedback of the to-be-screened content based on the anti-control instruction from the current terminal device.
[0032] In addition, to achieve the above object, the application further provides a screen projection control device, comprising:
[0033] The acquisition module is configured to acquire current network information of the target terminal device.
[0034] The connection module is configured to establish a connection with the target terminal device through a peer-to-peer network strategy when the current network information and the target network information are not in the same local area network.
[0035] The receiving module is configured to receive a control instruction sent by the target terminal device.
[0036] The control module is configured to project the to-be-screened content through the control instruction to realize the control of the screen projection based on the terminal device.
[0037] In addition, to achieve the above object, the application further provides a screen projection control device, comprising a memory, a processor, and a screen projection control program stored in the memory and executable on the processor, and the processor realizes the steps in the screen projection control method as described above when executing the screen projection control program.
[0038] In addition, to achieve the above object, the application further provides a computer readable storage medium, and the computer readable storage medium stores a screen projection control program, and the screen projection control program is executed by a processor to realize the steps in the screen projection control method as described above.
[0039] The screen projection control method provided by the application acquires current network information of a target terminal device, establishes a connection with the target terminal device through a peer-to-peer network strategy when the current network information and the target network information are not in the same local area network, receives a control instruction sent by the target terminal device, and projects to-be-screened content through the control instruction to realize the control of the screen projection based on the terminal device. Since the application determines whether the target terminal device and the server are in the same local area network through the current network information and the target network information, if yes, a connection with the target terminal device is established through a peer-to-peer network strategy, and then the to-be-screened content is projected through the control instruction when the connection is successful, the screen projection efficiency can be effectively improved, and the terminal device can remotely control the screen projection. BRIEF DESCRIPTION OF DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from the structures shown in the drawings without creative labor.
[0041] Figure 1 is a structural schematic diagram of a screen projection control device of a hardware running environment related to the embodiment of the present application.
[0042] Figure 2 is a flow schematic diagram of a first embodiment of a screen projection control method of the present application.
[0043] Figure 3 is a flow schematic diagram of a second embodiment of a screen projection control method of the present application.
[0044] Figure 4 is a flow schematic diagram of a third embodiment of a screen projection control method of the present application.
[0045] Figure 5 is a functional module schematic diagram of a first embodiment of a screen projection control device of the present application.
[0046] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0048] Referring to Figure 1 , Figure 1 is a structural schematic diagram of a screen projection control device of a hardware running environment related to the embodiment of the present application.
[0049] As Figure 1As shown, the screen projection control device can include a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between the components. The user interface 1003 can include a display, an input unit such as a keyboard, and can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 can be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM) such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art can understand that Figure 1 The structure shown in the figure does not constitute a limitation on the screen projection control device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0051] As Figure 1 As shown, the memory 1005 as a storage medium can include an operating system, a network communication module, a user interface module, and a screen projection control program.
[0052] In Figure 1 In the screen projection control device shown, the network interface 1004 is mainly used for data communication with the network integrated platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the screen projection control device can be arranged in the screen projection control device. The screen projection control device calls the screen projection control program stored in the memory 1005 through the processor 1001, and executes the screen projection control method provided by the embodiment of the application.
[0053] Based on the above hardware structure, the screen projection control method embodiment of the application is proposed.
[0054] Referring to Figure 2 , Figure 2 The flowchart of the first embodiment of the screen projection control method of the application is shown.
[0055] In the first embodiment, the screen projection control method includes:
[0056] Step S10, obtaining the current network information of the target terminal device.
[0057] It should be noted that the execution subject of the embodiment is a screen projection control device, and can also be other devices that can achieve the same or similar functions, such as a smart television terminal, and the like. The embodiment is not limited thereto, and in the embodiment, the smart television terminal is taken as an example for description.
[0058] It should be understood that the current network information refers to network information of a target terminal device, and the current network information includes network address, subnet mask, gateway and the like of a network used by the target terminal device. The target terminal device is a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet and the like. The embodiment is not limited thereto, and a mobile phone is taken as an example for description.
[0059] In step S20, when the current network information and the target network information are not in the same local area network, a peer-to-peer network strategy is used to establish a connection with the target terminal device.
[0060] It can be understood that the target network information refers to network information of a smart television terminal. Similarly, the target network information includes network address, subnet mask, gateway and the like of a network used by the smart television terminal. The smart television terminal can project the feedback content of the current terminal device. After obtaining the current network information and the target network information, it is determined whether the target terminal device and the smart television terminal are in the same local area network by using the network address and the subnet mask in the current network information and the network address and the subnet mask in the target network information.
[0061] It should be understood that the peer-to-peer network strategy refers to a network strategy for establishing near field communication between devices. The peer-to-peer network strategy is a P2P network connection strategy. Conventional network connection needs to ensure that the connected devices are in the same local area network. However, the devices connected by the peer-to-peer network strategy can not be in the same local area network, that is, the peer-to-peer network strategy can enable intranet devices in different local area networks to be directly connected.
[0062] In step S30, a control instruction sent by the target terminal device is received.
[0063] It should be understood that the control instruction refers to an instruction sent by the target terminal device for controlling the smart television terminal to project. After the smart television terminal and the target terminal device are successfully connected, the smart television terminal and the target terminal device can communicate and interact with each other, such as sending instructions, receiving feedback content and the like. That is, the smart television terminal receives the control instruction sent by the target terminal device.
[0064] In step S40, the content to be projected is projected by using the control instruction, so as to achieve control of projection based on the terminal device.
[0065] It can be understood that the to-be-screened content refers to the content that needs to be screened by the smart TV terminal, and the to-be-screened content is fed back to the smart TV terminal by the current terminal device, and the smart TV terminal screens the to-be-screened content after receiving the to-be-screened content.
[0066] Further, step S40 comprises: generating a corresponding counter-control instruction according to the control instruction; sending the counter-control instruction to the current terminal device, and receiving the to-be-screened content fed back by the current terminal device based on the counter-control instruction.
[0067] It should be understood that the counter-control instruction refers to an instruction used by the smart TV terminal to control the current terminal device in reverse, and the control instruction and the feedback instruction are in one-to-one correspondence, that is, the smart TV terminal generates a corresponding counter-control instruction based on the control instruction after receiving the control instruction, and sends the counter-control instruction to the current terminal device, and the current terminal device feeds back the to-be-screened content to the smart TV terminal based on the counter-control instruction after receiving the counter-control instruction, and the smart TV terminal screens the to-be-screened content through the control instruction, and the current terminal device can be a computing service device with data processing, network communication and program running functions, such as a notebook computer.
[0068] The embodiment realizes the control of the terminal device based on the screen by acquiring the current network information of the target terminal device, establishing a connection with the target terminal device through a peer-to-peer network strategy when the current network information and the target network information are not in the same local area network, receiving the control instruction sent by the target terminal device, and screening the to-be-screened content through the control instruction. Since the embodiment determines whether the target terminal device and the server are in the same local area network through the current network information and the target network information, if yes, a connection is established with the target terminal device through a peer-to-peer network strategy, and then the to-be-screened content is screened through the control instruction when the connection is successful, which can effectively improve the screen efficiency and realize the remote control of the terminal device.
[0069] In an embodiment, as Figure 3 The second embodiment of the screen control method is proposed based on the first embodiment, and step S20 comprises:
[0070] Step S201 determines the current network address and the current subnet mask of the target terminal device according to the current network information.
[0071] It should be understood that the current network address refers to the network address of the target terminal device connected to each other for communication, which can be an IP address, and the difference in physical address can be masked through the current network address, and the current subnet mask is used to divide the network address into network address and host address, and the current subnet mask is 32 bits.
[0072] In step S202, the target network address and the target subnet mask are determined according to the target network information.
[0073] It can be understood that the target network address refers to the network address of the smart TV terminal for mutual connection and communication. The target network address can be an IP address. The IP address of the smart TV terminal can be divided by the target subnet mask, i.e., the network address and the host address are determined.
[0074] Further, after step S202, the method further includes: when the current subnet mask is inconsistent with the target subnet mask, establishing a connection with the target terminal device through a peer-to-peer network strategy.
[0075] It should be understood that when it is determined that the current subnet mask is inconsistent with the target subnet mask, it indicates that the smart TV terminal and the target terminal device are not in the same local network. At this time, a connection can be established directly with the target terminal device through a peer-to-peer network strategy.
[0076] In step S203, when the current subnet mask is consistent with the target subnet mask, the current network address and the current subnet mask are calculated to obtain a current network value.
[0077] It should be understood that the current network value refers to a network value calculated by the network address and the subnet mask. After the target subnet mask of the smart TV terminal and the current subnet mask of the target terminal device are obtained, it is determined whether the target subnet mask and the current subnet mask are consistent. If so, the current network value of the target terminal device needs to be calculated. For example, the current subnet mask of the target terminal device is 255.255.255.0, and the target subnet mask of the smart TV terminal is 255.255.255.0. The current subnet mask is consistent with the target subnet mask, and the current network address is 192.168.0.101. That is, the current network value is 192.168.0.0&255.255.255.0=192.168.0.0. The specific calculation method is to convert the current network address and the current subnet mask into binary format.
[0078] In step S204, the target network address and the target subnet mask are calculated to obtain a target network value.
[0079] It can be understood that the target network value is calculated in the same way as the current network value, and is also calculated by the network address and the subnet mask, for example, the target network address is 192.168.100.5, and the target subnet mask is 255.255.255.0. The target network address and the target subnet mask are converted into binary format, and the target network value is 192.168.100.5&255.255.255.0=192.168.100.0. The specific calculation method is that 192.168.100.5 is converted into binary as 11000000101010000110010000000101, and 255.255.255.0 is converted into binary as 11111111111111111111111100000000.
[0080] Step S205, when the current network value and the target network value are inconsistent, the connection with the target terminal device is established through the peer-to-peer network strategy.
[0081] It should be understood that after obtaining the current network value and the target network value, it is determined whether the current network value and the target network value are consistent. If not, it indicates that the smart TV terminal and the target terminal device are not in the same local network, and at this time the connection with the target terminal device can be established through the peer-to-peer network strategy.
[0082] Further, before step S205, it also includes: sending the obtained preset starting instruction to the target terminal device, and receiving the starting success information of starting the target terminal application fed back by the target terminal device based on the preset starting instruction; determining the target terminal application address and the target terminal application name according to the starting success information; and generating the peer-to-peer network strategy according to the target terminal application address and the target terminal application name.
[0083] It can be understood that the target terminal application refers to the application installed in the target terminal device, which is the application required for using WIFI_Direct. The target terminal application also needs to be installed in the smart TV terminal. The smart TV terminal can broadcast its own state information through the target terminal application. The target terminal application address refers to the address of the target terminal application running in the target terminal device, and the target terminal application name refers to the name of the target terminal application in the target terminal device.
[0084] It should be understood that the preset starting instruction refers to the instruction for starting the target terminal application. After obtaining the preset starting instruction, the preset starting instruction is sent to the target terminal device to start the installed target terminal application, and the starting success information of starting the target terminal application is fed back to the smart TV terminal. The smart TV terminal generates the peer-to-peer network strategy through the target terminal application address and the target terminal application name.
[0085] The embodiment determines the current network address and the current subnet mask of the target terminal device through the current network information, and determines the target network address and the target subnet mask according to the target network information; then, it is judged whether the current subnet mask is consistent with the target subnet mask, if yes, the current network address, the current subnet mask, the target network address and the target subnet mask are calculated respectively to obtain the current network value and the target network value; then, it is further judged whether the current network value is consistent with the target network value, if not, it indicates that the target terminal device and the smart television terminal are not in the same local area network, at this time, the connection is established with the target terminal device through the peer-to-peer network strategy, so that the devices in different local area networks can be connected.
[0086] In an embodiment, as Figure 4 The third embodiment of the screen projection control method is provided based on the first embodiment, and before step S40, the method further includes:
[0087] Step S301: acquiring a current running state.
[0088] It can be understood that the current running state refers to the running state of the smart television terminal, and the running state includes a screen projection state and a non-screen projection state. The screen projection state refers to that the smart television terminal is performing screen projection. Of course, the non-screen projection state refers to that the smart television terminal is not performing screen projection at this time. The smart television terminal can be in a standby state or can be used for other functions.
[0089] Further, after step S301, the method further includes: when the current running state is the screen projection state, encapsulating the control instruction to obtain an HID control instruction.
[0090] The control instruction is used to project the content to be projected, including:
[0091] The HID control instruction is used to project the content to be projected.
[0092] It should be understood that the HID control instruction refers to a device control instruction, which includes a mouse control instruction, a keyboard control instruction, etc. When it is determined that the current running state is the screen projection state, it indicates that the smart television terminal is projecting at this time. At this time, the control instruction sent by the target terminal device needs to be encapsulated to obtain the HID control instruction, and then the HID control instruction is used to control the projection of the content to be projected.
[0093] Step S302: when the current running state is the non-screen projection state, the step of projecting the content to be projected by using the control instruction is performed.
[0094] It should be understood that after obtaining the current running state of the smart television end, it is necessary to determine whether the current running state is a non-screen projection state, and if so, the smart television end can directly screen the to-be-screened content fed back by the current terminal device.
[0095] The embodiment obtains the current running state, determines whether the current running state is a non-screen projection state, and performs the step of screening the to-be-screened content through the control instruction when the current running state is a non-screen projection state. Since the embodiment determines whether the current running state of the smart television end is a non-screen projection state after obtaining the current running state, if so, it indicates that the smart television end is not performing screen projection at this time, and the to-be-screened content is screened through the control instruction at this time, thereby improving the screen projection efficiency of the smart television end.
[0096] In addition, the embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a screen projection control program. When the screen projection control program is executed by a processor, the steps of the screen projection control method described above are realized.
[0097] Since the computer readable storage medium adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
[0098] In addition, with reference to Figure 5 , the embodiment of the present application also provides a screen projection control device, which comprises:
[0099] The acquisition module 10 is configured to acquire the current network information of the target terminal device.
[0100] The connection module 20 is configured to establish a connection with the target terminal device through a peer-to-peer network strategy when the current network information and the target network information are not in the same local area network.
[0101] The receiving module 30 is configured to receive the control instruction sent by the target terminal device.
[0102] The control module 40 is configured to screen the to-be-screened content through the control instruction to realize the control of screen projection based on the terminal device.
[0103] The embodiment obtains current network information of a target terminal device; when the current network information and target network information are not in the same local area network, establishes a connection with the target terminal device through a peer-to-peer network strategy; receives a control instruction sent by the target terminal device; and performs screen projection on to-be-projected content through the control instruction, so as to realize control of screen projection based on a terminal device. Since the embodiment determines whether the target terminal device and the server are in the same local area network through the current network information and the target network information, if yes, a connection is established with the target terminal device through the peer-to-peer network strategy, and then when the connection is successful, the to-be-projected content is projected through the control instruction, which can effectively improve the screen projection efficiency and realize remote control of screen projection by the terminal device.
[0104] It should be noted that the above-described workflow is merely illustrative and does not limit the protection scope of the present application. In actual application, a person skilled in the art can select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
[0105] In addition, technical details not described in detail in the embodiment can be referred to the screen projection control method provided by any embodiment of the present application, which will not be described here.
[0106] In an embodiment, the connection module 20 is further configured to determine a current network address and a current subnet mask of the target terminal device according to the current network information; determine a target network address and a target subnet mask according to the target network information; when the current subnet mask is consistent with the target subnet mask, calculate the current network address and the current subnet mask to obtain a current network value; calculate the target network address and the target subnet mask to obtain a target network value; and when the current network value is inconsistent with the target network value, establish a connection with the target terminal device through a peer-to-peer network strategy.
[0107] In an embodiment, the connection module 20 is further configured to, when the current subnet mask is inconsistent with the target subnet mask, establish a connection with the target terminal device through a peer-to-peer network strategy.
[0108] In an embodiment, the connection module 20 is further configured to send the obtained preset starting instruction to the target terminal device, receive starting success information of starting the target terminal application fed back by the target terminal device based on the preset starting instruction, determine a target terminal application address and a target terminal application name according to the starting success information, and generate a peer-to-peer network strategy according to the target terminal application address and the target terminal application name.
[0109] In an embodiment, the control module 40 is further configured to obtain a current running state; and when the current running state is a non-screen projection state, execute the step of projecting the to-be-projected content through the control instruction.
[0110] In an embodiment, the control module 40 is further configured to encapsulate the control instruction to obtain an HID control instruction when the current running state is the screen projection state, and project the content to be projected by using the HID control instruction.
[0111] In an embodiment, the control module 40 is further configured to generate a corresponding anti-control instruction according to the control instruction, send the anti-control instruction to the current terminal device, and receive the content to be projected fed back by the current terminal device based on the anti-control instruction.
[0112] Other embodiments of the screen projection control device or the implementation method of the present application can refer to the above-mentioned method embodiments, which will not be repeated here.
[0113] In addition, it should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional identical elements in the process, method, article or system including the element.
[0114] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0115] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by software and necessary general hardware platform, of course, they can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read only memory (ROM) / RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making a terminal device (which can be a mobile phone, a computer, an integrated platform workstation, or a network device) execute the method of each embodiment of the present application.
[0116] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation made by using the content of the present application specification and drawings, or directly or indirectly applied to other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A screen projection control method, characterized in that, The screen projection control method is applied to a smart television terminal, and the screen projection control method comprises the following steps: obtaining current network information of a target terminal device; when the current network information and target network information are not in the same local area network, establishing a connection with the target terminal device through a peer-to-peer network strategy; receiving a control instruction sent by the target terminal device; projecting the content to be projected based on the control instruction to achieve control of the projection based on the target terminal device; the step of establishing a connection with the target terminal device through a peer-to-peer network strategy comprises the following steps: determining the current network address and current subnet mask of the target terminal device according to the current network information; determining the target network address and target subnet mask according to the target network information; when the current subnet mask and the target subnet mask are consistent, calculating the current network address and the current subnet mask to obtain a current network value; calculating the target network address and the target subnet mask to obtain a target network value; when the current network value and the target network value are inconsistent, establishing a connection with the target terminal device through a peer-to-peer network strategy; before the step of projecting the content to be projected based on the control instruction, the method further comprises the following steps: generating a corresponding anti-control instruction according to the control instruction; sending the anti-control instruction to the current terminal device, and receiving feedback of the content to be projected based on the anti-control instruction from the current terminal device.
2. The method of claim 1, wherein, after the step of determining the target network address and the target subnet mask according to the target network information, the method further comprises the following step: when the current subnet mask and the target subnet mask are inconsistent, establishing a connection with the target terminal device through a peer-to-peer network strategy.
3. The method of claim 1, wherein, before the step of establishing a connection with the target terminal device through a peer-to-peer network strategy, the method further comprises the following steps: sending a preset start instruction to the target terminal device, and receiving start success information of a start target terminal application fed back from the target terminal device based on the preset start instruction; determining a target terminal application address and a target terminal application name according to the start success information; generating the peer-to-peer network strategy according to the target terminal application address and the target terminal application name.
4. The method of claim 3, wherein, before the step of projecting the content to be projected based on the control instruction, the method further comprises the following steps: obtaining a current running state; when the current running state is a non-projection state, executing the step of projecting the content to be projected based on the control instruction.
5. The method of claim 4, wherein, after the step of obtaining the current running state, the method further comprises the following step: when the current running state is a projection state, encapsulating the control instruction to obtain an HID control instruction; the step of projecting the content to be projected based on the control instruction comprises the following step: projecting the content to be projected based on the HID control instruction.
6. A screen projection control device, characterized by, The method comprises the following steps: an obtaining module is configured to obtain current network information of a target terminal device; a connection module is configured to establish a connection with the target terminal device through a peer-to-peer network strategy when the current network information and target network information are not in the same local area network; a receiving module is configured to receive a control instruction sent by the target terminal device; The control module is configured to control the to-be-screened content by the control instruction to achieve the control of the target terminal device on the screen projection. The connection module is further configured to determine a current network address and a current subnet mask of the target terminal device according to the current network information; determine a target network address and a target subnet mask according to the target network information; when the current subnet mask is consistent with the target subnet mask, calculate the current network address and the current subnet mask to obtain a current network value; When the current network value is inconsistent with the target network value, establish a connection with the target terminal device through a peer-to-peer network strategy. The control module is further configured to generate a corresponding anti-control instruction according to the control instruction; send the anti-control instruction to the current terminal device; and receive the to-be-screened content fed back by the current terminal device based on the anti-control instruction.
7. A screen projection control device, characterized by, The screen projection control device includes a memory, a processor, and a screen projection control program stored on the memory and executable on the processor. When the processor executes the screen projection control program, the steps in the screen projection control method of any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium has a screen projection control program stored thereon. When the processor executes the screen projection control program, the steps in the screen projection control method of any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Wireless screen projection method and device, intelligent tablet, terminal and system
CN110312160A
Connection establishment method and device based on local area network, terminal equipment and storage medium
CN113873684A