A wireless screen projection control method, device, terminal equipment and readable storage medium

By starting the lock mode in the screen projection device and detecting the IP of the user terminal, the problem of being preempted by other devices during the screen projection process is solved, ensuring the stability and normal progress of the screen projection operation.

CN112114761BActive Publication Date: 2024-12-24SZ PHOTOOL VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010818366.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2024-12-24
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

In conferences, speeches and classrooms, screen projection process is easily seized by other devices, resulting in speech interruption and affecting user experience.

Method used

By starting the lock mode in the screen projection device, it is detected whether the IP of the user terminal is the same as the IP of the pre-stored locked user terminal. If it is not the same, it is determined that the screen projection fails and a notification is generated to prevent other devices from preempting the screen projection.

Benefits of technology

It effectively avoids the problem of taking over the screen projection by other devices, and ensures the stability and normal progress of the screen projection operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112114761B_ABST
    Figure CN112114761B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of communication technology, and provides a wireless screen projection control method, including: if a screen projection request sent by a user terminal is received, the current working state of the screen projection device is detected, if the current working state is the screen projection state, whether the screen projection lock mode is turned on, if it is detected that the screen projection lock mode is turned on, the screen projection request is parsed, the IP of the user terminal is obtained, and it is determined whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal. If the IP of the user terminal is not the same as the IP of the locked user terminal, the screen projection is determined to have failed, a screen projection failure notification is generated and fed back to the user terminal. The present application starts the locking mode of the screen projection device, and when it is detected that the IP of the user terminal sending the screen projection request is different from the IP of the locked user terminal, the screen projection is determined to have failed, a screen projection failure notification is generated and fed back to the user terminal, so as to avoid the problem of screen projection being preempted by other user terminals, so that the screen projection is carried out normally, and the stability of the screen projection operation is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a wireless screen projection control method, device, terminal equipment and readable storage medium. Background Art

[0002] Wireless screen projection technology is often used in meetings, lectures and classrooms to assist users in completing presentation tasks through screen projection information.

[0003] However, during the screen projection process, other devices may occasionally take over the screen projection and cause the presentation to be interrupted, which greatly affects the user's presentation process. Summary of the invention

[0004] The embodiments of the present application provide a wireless screen projection control method, device, terminal device and readable storage medium, which can solve the problem of screen projection being preempted by other devices during the screen projection process.

[0005] In a first aspect, an embodiment of the present application provides a wireless screen projection control method, including:

[0006] If a screen projection request is received from a user terminal, the current working status is detected;

[0007] If the current working state is the screen projection state, then detecting whether the screen projection lock mode is turned on;

[0008] If it is detected that the screen projection lock mode is turned on, the screen projection request is parsed to obtain the IP address of the user terminal;

[0009] Determine whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;

[0010] If the IP of the user terminal is different from the IP of the locked user terminal, it is determined that the screen projection has failed, and a screen projection failure notification is generated and fed back to the user terminal.

[0011] In a second aspect, an embodiment of the present application provides a wireless screen projection control device, including:

[0012] A receiving module, used to detect the current working state if a screen projection request sent by a user terminal is received;

[0013] A first detection module is used to detect whether the screen projection lock mode is turned on if the current working state is the screen projection state;

[0014] A first parsing module, configured to parse the screen projection request and obtain the IP address of the user terminal if it is detected that the screen projection lock mode is turned on;

[0015] A first judgment module, used to judge whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;

[0016] The second judgment module is used to determine that the screen projection has failed if the IP of the user terminal is different from the IP of the locked user terminal, generate a screen projection failure notification and feed it back to the user terminal.

[0017] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the wireless screen projection control method as described in the first aspect above is implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the wireless screen projection control method as described in the first aspect above is implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the wireless screen projection control method described in the first aspect above.

[0020] The embodiment of the present application starts the locking mode. When it is detected that the user terminal sending the screen projection request is different from the IP address of the locked user terminal, it is determined that the screen projection has failed, and a screen projection failure notification is generated and fed back to the user terminal, thereby avoiding the problem of the screen projection being preempted by other user terminals, allowing the screen projection to proceed normally and ensuring the stability of the screen projection operation.

[0021] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 is a schematic diagram of a screen projection device provided in one embodiment of the present application;

[0024] Figure 2 It is a flowchart of a wireless screen projection control method provided in an embodiment of the present application;

[0025] Figure 3This is an application scenario diagram of a list display request based on a wireless screen projection control method provided in an embodiment of the present application;

[0026] Figure 4a This is an application scenario diagram of starting a speaker control mode based on a wireless screen projection control method provided in an embodiment of the present application;

[0027] Figure 4b This is an application scenario diagram of starting a speaker control mode based on a wireless screen projection control method provided by another embodiment of the present application;

[0028] Figure 5 is a structural schematic diagram of a wireless screen projection control device provided in another embodiment of the present application;

[0029] Figure 6 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0031] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0032] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0033] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0034] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0035] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0036] The wireless screen projection control method provided in the embodiment of the present application can be applied to terminal devices such as screen projection devices, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, laptop computers, etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.

[0037] In recent years, wireless screen projection technology has been widely used in scenarios such as meetings, lectures, and classrooms to assist users in completing presentation tasks. However, during the screen projection process, the screen may be preempted by other devices, causing the presentation to be interrupted.

[0038] To solve this problem, the present application proposes a wireless screen projection control method, a wireless screen projection control device, a terminal device and a computer-readable storage medium, which can prevent the problem of screen projection being preempted by other user terminals when the screen projection device is in the startup lock mode, so that the screen projection can proceed normally.

[0039] To implement the technical solution proposed in this application, a screen projection device can be constructed first. Figure 1 The screen projection device is composed of a central control module and a screen projection display module, each module is connected to each other, and the screen projection device is connected to one or more user terminals ( Figure 1 Only 1) communication connection is shown.

[0040] Among them, the user terminal is a terminal device that may have a screen projection demand to implement the screen projection operation, the screen projection device is a screen projection device that can provide screen projection services, the central control module is a module on the screen projection device for intermediate control of the screen projection operation, and the screen projection display module is a module on the screen projection device for displaying the corresponding screen projection information according to the screen projection request. When the user terminal needs to perform screen projection, the user terminal can send a screen projection request including the IP of the user terminal to the screen projection device; after receiving the screen projection request sent by the user terminal, the central control module of the screen projection device can parse the screen projection request, obtain the IP of the user terminal, and determine whether the user terminal is a locked user terminal that has started the lock mode based on the user terminal IP. If the user terminal is not a locked user terminal that has started the lock mode, it is determined that the screen projection has failed, preventing the user terminal from preempting the screen projection during the process of the locked user terminal performing screen projection.

[0041] In order to illustrate the technical solution proposed in this application, a specific embodiment is provided below for illustration.

[0042] Figure 2 A schematic flowchart of the wireless screen projection control method provided in the present application is shown. As an example but not a limitation, the method can be applied to a screen projection device.

[0043] S101. If a screen projection request is received from a user terminal, the current working status is detected.

[0044] In a specific application, if a screen projection request is received from a user through a user terminal, the current working state of the screen projection device is obtained; the current working state includes the screen projection state and the screen non-projection state, and the screen projection request is a request to display the projection information through the screen projection device, carrying the user terminal IP and projection information. The projection information is the information that needs to be projected and displayed in the projection request, including but not limited to pictures or videos.

[0045] It is understandable that in order to achieve the goal of preventing the screen from being preempted by other user terminals during the screen projection process, the central control module must first be written into the screen projection device. When no function operation is performed, the central control module should be displayed on the interface of the screen projection device in a fixed form (for example, it can be set to a spherical shape); the specific operations are as follows:

[0046] First, you need to create a layout file, write the UI layout of the central control module, and instantiate the view control MasterBallView;

[0047] Then through WindowManager windowManager=

[0048] (WindowManager)getSystemService(WINDOW_SERVICE) gets the WindowManager service;

[0049] By setting the property value of WindowManager.LayoutParams.type to the floating property (WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);

[0050] Add the UI view control (MasterBallView) with completed layout to the window layer through the windowManager.addView(MasterBallView,layoutParams) method;

[0051] The MasterBallView control is processed with effects (for example, rounded corners, gradients, shadows, and colors) through GradientDrawable, and the central control module is displayed on the interface of the projection device in a 3D shape.

[0052] And use the attribute animation ValueAnimator to change the attributes of the MasterBallViewi control that realizes the 3D shape to achieve a persistent shape effect and present an animation effect;

[0053] Finally, set the onTouch listener for the MasterBallView control so that the user can drag and move the MasterBallView by touching it on the interface, and move the MasterBallView to any position in the middle or upper part of the screen to avoid affecting the screen operation experience.

[0054] S102. If the current working state is the screen projection state, check whether the screen projection lock mode is turned on.

[0055] In a specific application, if the current working state of the screen projection device is the screen projection state, then it is determined that the screen projection device is projecting and displaying the projection information corresponding to the screen projection request sent by other user terminals, and it is detected whether the screen projection lock mode of the screen projection device is turned on at this moment; among which, other user terminals are user terminals other than those that send the above-mentioned screen projection request; the screen projection lock mode is a pre-set mode in which during the screen projection process, only the content corresponding to the screen projection request sent by the locked user terminal is projected and displayed.

[0056] S103. If it is detected that the screen projection lock mode is turned on, parse the screen projection request to obtain the IP address of the user terminal.

[0057] In a specific application, if it is detected that the screen projection lock mode is turned on, the screen projection request is parsed to obtain the IP address of the user terminal carried in the screen projection request.

[0058] S104: Determine whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal.

[0059] In a specific application, determine whether the IP of the user terminal carried in the screen projection request is the same as the IP of the locked user terminal stored in advance. If the IP of the user terminal carried in the screen projection request is the same as the IP of the locked user terminal stored in advance, it proves that the user terminal currently sending the screen projection request is the same as the locked user terminal. At this time, a notification of "You have occupied the screen projection device" can be returned to the locked user terminal; if the locked user terminal sends an unlock request, the screen projection lock mode is turned off, and the corresponding screen projection information is displayed according to the above-mentioned screen projection request.

[0060] S105. If the IP of the user terminal is different from the IP of the locked user terminal, it is determined that the screen projection has failed, and a screen projection failure notification is generated and fed back to the user terminal.

[0061] In a specific application, if the IP of the user terminal carried in the screen projection request is different from the IP of the pre-stored locked user terminal, it proves that the user terminal currently sending the screen projection request and the locked user terminal are not the same user terminal, and the screen projection operation of the current screen projection request is determined to have failed, and a screen projection failure notification is generated and fed back to the user terminal that sent the above screen projection request.

[0062] In one embodiment, before step S101, the following steps are included:

[0063] S201: if a device connection request sent by the user terminal is received, updating the connection state of the user terminal to connected;

[0064] S202, parsing the device connection request to obtain the IP address and device name of the user terminal;

[0065] S203: Create a corresponding device list according to the IP address and device name of the user terminal.

[0066] In a specific application, if a device connection request is received from any user terminal, the connection status of the user terminal is updated to connected, the device connection request is parsed to obtain the IP and device name of the user terminal, and a corresponding device list is established based on the IP and device name of the user terminal; wherein, the device connection request is a request sent by the user terminal to establish a communication connection with the current projection device, so as to transmit the heartbeat and projection information of the user terminal in real time; the device list is a storage of the IP and device names of user terminals that have been successfully connected to the current projection device.

[0067] In one embodiment, after step S203, the following steps are included:

[0068] Obtain the heartbeat of all the user terminals in the device list;

[0069] If an abnormal heartbeat is detected for any of the user terminals, the device name of the user terminal with the abnormal heartbeat is deleted from the device list, and the connection status of the user terminal with the abnormal heartbeat is updated to unconnected;

[0070] Send an abnormal notification to the user terminal with the abnormal heartbeat;

[0071] If a screen projection request is received from the user terminal with the abnormal heartbeat, a screen projection failure notification is generated and fed back to the user terminal with the abnormal heartbeat.

[0072] In a specific application, the heartbeats sent by all user terminals in the device list that have established a communication connection with the current screen projection device are obtained in real time and detected. If the heartbeat of any user terminal is detected to be abnormal, it is determined that the user terminal cannot send a screen projection request, and the device name and IP of the user terminal with the abnormal heartbeat are deleted from the device list, and the connection status of the user terminal with the abnormal heartbeat is updated to disconnected. Heartbeat refers to the information periodically sent between the screen projection device and each user terminal. If the heartbeat information sent by the user terminal is not received within a preset time period, the heartbeat of the user terminal is determined to be abnormal. The preset time period may refer to the periodic time length for sending heartbeats. It can be understood that if the heartbeat information sent by the user terminal is not received within the periodic time length of a heartbeat, the heartbeat of the user terminal is determined to be abnormal.

[0073] In one embodiment, after step S203, the following steps are included:

[0074] Upon receiving a list display request sent by the user terminal, obtaining device names of all user terminals in the device list;

[0075] Display the device names of all user terminals in the device list and the connection status of the user terminals; wherein the connection status includes the connected state, the main speaker control connection state and the locked connection state.

[0076] In a specific application, if a list display request is received from a user terminal, the device names of all user terminals in the device list that have established a communication connection with the current projection device are obtained and displayed, and the connection status of each user terminal is displayed at the same time; wherein the connection status includes the connected status, the main speaker control connection status, and the locked connection status. The connected status indicates that the user terminal is connected to the projection device in communication, the main speaker control connection status indicates that the user terminal is connected to the projection device in communication and the main speaker control mode is turned on; the locked connection status indicates that the user terminal is connected to the projection device in communication and the projection lock mode is turned on.

[0077] like Figure 3 As shown, an application scenario diagram of a list display request is provided.

[0078] Figure 3 In the example, taking the user terminal as a mobile phone, upon receiving a list display request sent by the user terminal, the UI interface of the central control module in the 3D spherical form is expanded to present a square form, and at the same time, the device names of all user terminals in the device list that have established communication connections with the current projection device and the connection status of each user terminal are displayed.

[0079] In one embodiment, the method further comprises:

[0080] If a lock request is received from a user terminal, detecting whether the screen projection lock mode is turned on;

[0081] If the screen projection lock mode is not enabled, enabling the screen projection lock mode according to the lock request;

[0082] Taking the user terminal sending the locking request as the locking user terminal, updating the connection state of the locking user terminal to a locking connection state;

[0083] Parse the locking request, obtain the IP and device name of the locking user terminal, and save them.

[0084] In a specific application, if a lock request is received from any user terminal, it is detected whether the screen lock mode of the current projection device has been turned on. If the screen lock mode of the current projection device has been turned on, a "device has been locked" notification is returned to the user terminal; if the screen lock mode of the current projection device is not turned on, the screen lock mode of the current projection device is turned on according to the lock request, and the user terminal that sends the lock request is used as the locked user terminal. Correspondingly, the connection state of the locked user terminal is updated to a locked connection state, the lock request is parsed, and the IP and device name of the locked user terminal are obtained and saved, so that only the projection information corresponding to the projection request sent by the locked user terminal is displayed on the screen. It can be understood that the projection lock mode is a mode in which only the projection information corresponding to the projection request sent by the locked user terminal is displayed on the screen; wherein, the lock request is a request carrying the user terminal IP and device name to apply to turn on the projection lock mode of the current projection device.

[0085] In one embodiment, the method further comprises:

[0086] If a speaker control request sent by a user terminal is received, obtaining the connection status of the user terminal;

[0087] If the connection state is the connected state, obtaining the state of the speaker control mode;

[0088] If the state of the main speaker control mode is not started, the user terminal is used as the main speaker user terminal;

[0089] Turning on the speaker control mode according to the speaker control request, and updating the connection state of the speaker user terminal to the speaker control state;

[0090] Parse the speaker control request, obtain the IP address and device name of the speaker user terminal and save them;

[0091] If an instruction sent by the speaker user terminal is received, an operation corresponding to the request is performed; wherein the request includes a request to exit screen projection, a wireless snapshot request, a wireless speech request, and a mirror preview request.

[0092] In a specific application, if a speaker control request sent by a user terminal is received, the connection status of the user terminal is obtained. If the connection status of the user terminal is connected, it is determined that the user's heartbeat is normal, and the operation of sending a screen projection request can be executed to detect whether the speaker control mode of the current screen projection device is in the on state. If the status of the speaker control mode is started, a notification of "speaker control has been started, request failed" is generated to the user terminal; if the status of the speaker control mode is not started, the user terminal that sends the above-mentioned speaker control request is used as the speaker user terminal, and the speaker control mode is turned on according to the above-mentioned speaker control request, the connection status of the speaker user terminal is updated to the speaker control status, the speaker control request is parsed, and the IP and device name of the speaker user terminal are obtained and saved; the UI interface of the display control module is displayed on the screen of the speaker user terminal, so that when receiving the instruction sent by the user through the speaker user terminal, the operation corresponding to the request is executed; wherein, the request includes an exit screen projection request, a wireless snapshot request, a wireless speech request and a mirror preview request. The request to exit screen projection is a request to disconnect the communication connection with the current screen projection device and stop the screen projection operation; the wireless snapshot request is a request to quickly obtain the display content image (which can be understood as a request to take a screenshot of the current screen projection display content); the wireless speech request is a request to send audio data during the screen projection process; the mirror preview request is a request to play the screen projection information in real time during the screen projection process.

[0093] In this embodiment, the speaker control mode is a mode in which the UI interface of the control module is displayed on the screen of the speaker user terminal, and the user directly sends requests by touching, clicking, and other operations on the screen of the speaker user terminal and performs corresponding operations; it should be noted that in the speaker control mode, the screen projection device receives and only receives instructions sent by the speaker user terminal.

[0094] In this embodiment, when a request to exit screen projection is received from a user terminal, a pull-up screen projection instruction is generated and sent to the user terminal. The user terminal performs a simulated user screen projection action according to the above-mentioned pull-up screen projection instruction, and returns the screen projection instruction to the screen projection device. When the screen projection device receives the screen projection instruction returned by the user terminal, it responds to the screen projection, thereby pulling up the projection screen of the connected non-projected device.

[0095] As shown in FIG. 4 , an application scenario diagram for starting the main speaker control mode is provided.

[0096] Figure 4aIn the example, taking the user terminal as a mobile phone, after receiving the speaker control request sent by the user terminal, if it is detected that the connection status of the user terminal is connected and the status of the speaker control mode is not started, the user terminal that sends the above speaker control request will be used as the speaker user terminal, and the UI interface 001 of the central control module will be displayed on the screen of the user terminal, so that the user can directly operate the projection device through the user terminal.

[0097] Figure 4b In the figure, when the user touches or clicks the central control module UI interface, the central control module UI interface 002 in the 3D spherical form is expanded on the main speaker user terminal to present a square form, and the operation options that can be performed at the current moment are displayed (only operations such as exiting screen projection, wireless snapshot, wireless speech and mirror preview request are shown). As can be seen from the figure, the main speaker control terminal is meizuM6.

[0098] In one embodiment, after step S102, the method further includes:

[0099] If the screen projection lock mode is not turned on, the screen projection display is performed according to the screen projection request.

[0100] In a specific application, if the screen projection lock mode is not turned on, the above-mentioned screen projection request is parsed to obtain the IP, device name and screen projection information of the corresponding user terminal; the screen projection displays the corresponding screen projection information and saves the IP and device name of the user terminal.

[0101] In one embodiment, after step S101, the following steps are included:

[0102] If the working state is a non-screen projection state and the screen projection lock mode is turned on, parsing the screen projection request to obtain the IP address of the user terminal;

[0103] Determine whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;

[0104] If the IP address of the user terminal is the same as the IP address of the locked user terminal, screen projection is performed according to the screen projection request;

[0105] If the IP of the user terminal is different from the IP of the locked user terminal, the screen projection lock mode is turned off and the screen projection display is performed according to the screen projection request.

[0106] In a specific application, if the current working state is not in the screen projection state and the screen projection lock mode is turned on, the screen projection request is parsed, the IP of the user terminal is obtained, and it is determined whether the IP of the user terminal is the same as the IP of the locked user terminal stored in advance; if the IP of the user terminal is the same as the IP of the locked user terminal, it is determined that the user terminal sending the above-mentioned screen projection request and the locked user terminal are the same user terminal, and the screen projection is displayed according to the screen projection request; if the IP of the user terminal and the IP of the locked user terminal are not the same, it is determined that the user terminal sending the above-mentioned screen projection request and the locked user terminal are different user terminals. In order to save screen projection resources, the screen projection lock mode is turned off, and the connection status of the locked user terminal is updated to the connected status, and a "screen projection mode has been released" notification is sent to the locked user terminal, and the screen projection is displayed according to the screen projection request.

[0107] This application starts the locking mode and determines that the screen projection has failed when it detects that the user terminal sending the screen projection request is different from the IP of the locked user terminal. It generates a screen projection failure notification and feeds it back to the user terminal to avoid the problem of the screen projection being preempted by other user terminals, so that the screen projection can proceed normally and the stability of the screen projection operation is guaranteed.

[0108] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0109] Corresponding to the wireless screen projection control method described in the above embodiment, Figure 5 A structural block diagram of a wireless screen projection control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0110] Reference Figure 5 , the wireless screen projection control device comprises:

[0111] The receiving module 101 is used to detect the current working state if a screen projection request sent by a user terminal is received;

[0112] The first detection module 102 is used to detect whether the screen projection lock mode is turned on if the current working state is the screen projection state;

[0113] A first parsing module 103 is configured to parse the screen projection request and obtain the IP address of the user terminal if it is detected that the screen projection lock mode is turned on;

[0114] A first determination module 104 is used to determine whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;

[0115] The second judgment module 105 is used to determine that the screen projection has failed if the IP of the user terminal is different from the IP of the locked user terminal, generate a screen projection failure notification and feed it back to the user terminal.

[0116] In one embodiment, the device comprises:

[0117] A first updating module, configured to update the connection state of the user terminal to connected if a device connection request sent by the user terminal is received;

[0118] A second parsing module, used to parse the device connection request to obtain the IP address and device name of the user terminal;

[0119] The establishment module is used to establish a corresponding device list according to the IP and device name of the user terminal.

[0120] In one embodiment, the device comprises:

[0121] A first acquisition module, used to acquire the heartbeats of all the user terminals in the device list;

[0122] A second updating module is configured to delete the device name of the user terminal with abnormal heartbeat from the device list if an abnormal heartbeat is detected for any of the user terminals, and update the connection status of the user terminal with abnormal heartbeat to unconnected;

[0123] A sending module, used for sending an abnormality notification to the user terminal with the abnormal heartbeat;

[0124] A generation module is used to generate the screen projection failure notification and feed it back to the user terminal with the abnormal heartbeat if a screen projection request sent by the user terminal with the abnormal heartbeat is received.

[0125] In one embodiment, the device comprises:

[0126] A second acquisition module, configured to acquire device names of all user terminals in the device list upon receiving a list display request sent by the user terminal;

[0127] The display module is used to display the device names of all user terminals in the device list and the connection status of the user terminals; wherein the connection status includes the connected state, the main speaker control connection state and the locked connection state.

[0128] In one embodiment, the device further comprises:

[0129] A second detection module, configured to detect whether the screen projection lock mode is turned on if a lock request sent by a user terminal is received;

[0130] A starting module, configured to enable the screen projection lock mode according to the lock request if the screen projection lock mode is not enabled;

[0131] A third updating module, configured to take the user terminal that sends the locking request as the locking user terminal, and update the connection state of the locking user terminal to a locking connection state;

[0132] The third parsing module is used to parse the locking request, obtain the IP and device name of the locking user terminal, and save them.

[0133] In one embodiment, the device further comprises:

[0134] A third acquisition module is used to obtain the connection status of the user terminal if a main speaker control request sent by the user terminal is received;

[0135] A fourth acquisition module, configured to acquire a state of a speaker control mode if the connection state is a connected state;

[0136] A third detection module, configured to use the user terminal as a speaker user terminal if the state of the speaker control mode is not started;

[0137] A fourth updating module, configured to enable the speaker control mode according to the speaker control request, and update the connection state of the speaker user terminal to the speaker control state;

[0138] The fourth parsing module is used to parse the speaker control request, obtain the IP address and device name of the speaker user terminal and save them;

[0139] An execution module is used to execute an operation corresponding to the request if an instruction sent by the main speaker user terminal is received; wherein the request includes a request to exit screen projection, a wireless snapshot request, a wireless speech request, and a mirror preview request.

[0140] In one embodiment, the device further comprises:

[0141] The screen projection module is used to perform screen projection display according to the screen projection request if the screen projection lock mode is not turned on.

[0142] This application starts the locking mode and determines that the screen projection has failed when it detects that the user terminal sending the screen projection request is different from the IP of the locked user terminal. It generates a screen projection failure notification and feeds it back to the user terminal to avoid the problem of the screen projection being preempted by other user terminals, so that the screen projection can proceed normally and the stability of the screen projection operation is guaranteed.

[0143] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0144] Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 6 As shown, the terminal device 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one is shown in the figure) a processor, a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, and when the processor 60 executes the computer program 62, the steps in any of the above-mentioned wireless screen projection control method embodiments are implemented.

[0145] The terminal device 6 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0146] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0147] In some embodiments, the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. In other embodiments, the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital card (SD), a flash card, etc. equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0148] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0149] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0150] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0152] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0153] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0154] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0156] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A wireless screen projection control method, characterized in that: include: If a screen projection request is received from a user terminal, the current working status is detected; If the current working state is the screen projection state, then detecting whether the screen projection lock mode is turned on; If it is detected that the screen projection lock mode is turned on, parsing the screen projection request to obtain the IP address of the user terminal; Determine whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal; If the IP of the user terminal is different from the IP of the locked user terminal, it is determined that the screen projection fails, and a screen projection failure notification is generated and fed back to the user terminal; If the current working state is the screen projection state, after detecting whether the screen projection lock mode is turned on, it also includes: if the screen projection lock mode is not turned on, the screen is projected and displayed according to the screen projection request.

2. The wireless screen projection control method according to claim 1, characterized in that: If a screen projection request sent by a user terminal is received, before detecting the current working state, the process includes: If a device connection request sent by the user terminal is received, updating the connection state of the user terminal to connected; Parsing the device connection request to obtain the IP address and device name of the user terminal; According to the IP address and device name of the user terminal, a corresponding device list is established.

3. The wireless screen projection control method according to claim 2, characterized in that: After establishing the corresponding device list according to the IP and device name of the user terminal, the following steps are included: Obtain the heartbeat of all the user terminals in the device list; If an abnormal heartbeat is detected for any of the user terminals, the device name of the user terminal with the abnormal heartbeat is deleted from the device list, and the connection status of the user terminal with the abnormal heartbeat is updated to unconnected; Send an abnormal notification to the user terminal with the abnormal heartbeat; If a screen projection request is received from the user terminal with the abnormal heartbeat, a screen projection failure notification is generated and fed back to the user terminal with the abnormal heartbeat.

4. The wireless screen projection control method according to claim 2, characterized in that: After establishing the corresponding device list according to the IP and device name of the user terminal, the following steps are included: Upon receiving a list display request sent by the user terminal, obtaining device names of all user terminals in the device list; Display the device names of all user terminals in the device list and the connection status of the user terminals; wherein the connection status includes the connected state, the main speaker control connection state and the locked connection state.

5. The wireless screen projection control method according to claim 1, characterized in that: The method further comprises: If a lock request is received from a user terminal, detecting whether the screen projection lock mode is turned on; If the screen projection lock mode is not enabled, enabling the screen projection lock mode according to the lock request; Taking the user terminal sending the locking request as the locking user terminal, updating the connection state of the locking user terminal to a locking connection state; Parse the locking request, obtain the IP and device name of the locking user terminal and save them.

6. The wireless screen projection control method according to claim 1, characterized in that: The method further comprises: If a speaker control request sent by a user terminal is received, obtaining the connection status of the user terminal; If the connection state is the connected state, obtaining the state of the main speaker control mode; If the state of the main speaker control mode is not activated, the user terminal is used as the main speaker user terminal; Turning on the speaker control mode according to the speaker control request, and updating the connection state of the speaker user terminal to the speaker control state; Parse the speaker control request, obtain the IP address and device name of the speaker user terminal and save them; If an instruction sent by the speaker user terminal is received, an operation corresponding to the request is performed; wherein the request includes a request to exit screen projection, a wireless snapshot request, a wireless speech request, and a mirror preview request.

7. A wireless screen projection control device, characterized in that: include: A receiving module, used to detect the current working state if a screen projection request sent by a user terminal is received; A first detection module is used to detect whether the screen projection lock mode is turned on if the current working state is the screen projection state; A first parsing module, configured to parse the screen projection request and obtain the IP address of the user terminal if it is detected that the screen projection lock mode is turned on; A first judgment module, used to judge whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal; A second judgment module is used to determine that the screen projection fails if the IP of the user terminal is different from the IP of the locked user terminal, generate a screen projection failure notification and feed it back to the user terminal; The screen projection module is used to detect whether the screen projection lock mode is turned on if the current working state is the screen projection state. If the screen projection lock mode is not turned on, the screen is projected and displayed according to the screen projection request.

8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.