CN112114761A - Wireless screen projection control method and device, terminal equipment and readable storage medium - Google Patents

Wireless screen projection control method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN112114761A
CN112114761A CN202010818366.5A CN202010818366A CN112114761A CN 112114761 A CN112114761 A CN 112114761A CN 202010818366 A CN202010818366 A CN 202010818366A CN 112114761 A CN112114761 A CN 112114761A
Authority
CN
China
Prior art keywords
user terminal
screen projection
request
screen
locking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010818366.5A
Other languages
Chinese (zh)
Inventor
吴军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Photool Vision Co ltd
Original Assignee
Shenzhen Photool Vision Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Photool Vision Co ltd filed Critical Shenzhen Photool Vision Co ltd
Priority to CN202010818366.5A priority Critical patent/CN112114761A/en
Publication of CN112114761A publication Critical patent/CN112114761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application is suitable for the technical field of communication, and provides a wireless screen projection control method, which comprises the following steps: if a screen projection request sent by a user terminal is received, detecting the current working state of screen projection equipment, if the current working state is the screen projection state, detecting whether a screen projection locking mode is started, if the screen projection locking mode is started, analyzing the screen projection request, obtaining the IP of the user terminal, judging whether the IP of the user terminal is the same as the IP of a pre-stored locked user terminal, if the IP of the user terminal is not the same as the IP of the locked user terminal, judging that screen projection is failed, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal. According to the method and the device, through the starting locking mode of the screen projection equipment, when the situation that the user terminal sending the screen projection request is different from the locking user terminal IP is detected, the screen projection failure is judged, the screen projection failure notification is generated and fed back to the user terminal, the problem that the screen projection is occupied by other user terminals is avoided, the screen projection is normally carried out, and the stability of the screen projection operation is guaranteed.

Description

Wireless screen projection control method and device, terminal equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a wireless screen projection control method and device, a terminal device and a readable storage medium.
Background
In meetings, lectures and classrooms, wireless screen projection technology is generally used to assist users in completing lecture tasks through screen projection information.
However, during the screen projection process, occasionally, the screen projection is preempted by other devices, so that the speech is interrupted, and the speech process of the user is greatly influenced.
Disclosure of Invention
The embodiment of the application provides a wireless screen projection control method and device, terminal equipment and a readable storage medium, and can solve the problem that screen projection is preempted by other equipment in the screen projection process.
In a first aspect, an embodiment of the present application provides a wireless screen projection control method, including:
if a screen projection request sent by a user terminal is received, detecting the current working state;
if the current working state is a screen projection state, detecting whether a screen projection locking mode is started;
if the screen-throwing locking mode is detected to be started, analyzing the screen-throwing request to obtain the IP of the user terminal;
judging whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;
and if the IP of the user terminal is different from the IP of the locked user terminal, judging that screen projection fails, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal.
In a second aspect, an embodiment of the present application provides a wireless screen projection control device, including:
the receiving module is used for detecting the current working state if receiving a screen projection request sent by a user terminal;
the first detection module is used for detecting whether a screen projection locking mode is started or not if the current working state is a screen projection state;
the first analysis module is used for analyzing the screen projection request to obtain the IP of the user terminal if the screen projection locking mode is detected to be started;
the first judging module is used for judging whether the IP of the user terminal is the same as the IP of a pre-stored locked user terminal;
and the second judgment module is used for judging that screen projection fails if the IP of the user terminal is different from the IP of the locked user terminal, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the wireless screen projection control method according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the wireless screen projection control method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the wireless screen projection control method according to the first aspect.
According to the method and the device, through starting the locking mode, when the situation that the user terminal sending the screen projection request is different from the locked user terminal IP is detected, the screen projection failure is judged, the screen projection failure notification is generated and fed back to the user terminal, the problem that the screen projection is occupied by other user terminals is avoided, the screen projection is normally carried out, and the stability of the screen projection operation is ensured.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic view of a screen projection device provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a wireless screen projection control method according to an embodiment of the present application;
fig. 3 is an application scenario diagram of a list display request based on a wireless screen projection control method according to an embodiment of the present application;
fig. 4a is an application scenario diagram of a start-up talkback control mode based on a wireless screen projection control method according to an embodiment of the present application;
fig. 4b is an application scenario diagram of a start-up talkback control mode based on a wireless screen projection control method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a wireless screen projection control device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The wireless screen projection control method provided by the embodiment of the application can be applied to terminal devices such as screen projection equipment, mobile phones, tablet computers, wearable equipment, vehicle-mounted equipment and notebook computers, and the specific type of the terminal device is not limited at all.
In recent years, a wireless screen projection technology is widely applied to scenes such as conferences, speeches, classrooms and the like to assist a user in completing a speech task by screen projection, however, the problem that the speech is interrupted due to the screen projection being preempted by other equipment in the screen projection process occurs.
In order to solve the problem, the application provides 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 screen projection device from seizing the screen projection problem by other user terminals in a starting locking mode, so that the screen projection is normally performed.
In order to realize the technical scheme provided by the application, a screen projection device can be constructed firstly. Referring to fig. 1, the screen projection device is composed of a central control module and a screen projection display module, the modules are connected in a communication manner, and the screen projection device is connected in a communication manner with more than one user terminal (only 1 screen projection device is shown in fig. 1).
The user terminal is a terminal device which can have screen projection requirements to realize screen projection operation, the screen projection device is a screen projection device which can provide screen projection service, the central control module is a module which is used for performing intermediate control on screen projection operation on the screen projection device, and the screen projection display module is a module which is used for displaying corresponding screen projection information according to screen projection requests on the screen projection device. When a user terminal needs to perform screen projection, the user terminal can send a screen projection request comprising the IP of the user terminal to screen projection equipment; the method comprises the steps that after a central control module of the screen projection equipment receives a screen projection request sent by a user terminal, the screen projection request can be analyzed to obtain the IP of the user terminal, whether the user terminal is a locking user terminal for starting a locking mode or not is determined according to the IP of the user terminal, if the user terminal is not the locking user terminal for starting the locking mode, screen projection failure is judged, and the user terminal is prevented from seizing screen projection in the screen projection process of the locking user terminal.
In order to explain the technical solution proposed in the present application, the following description will be given by way of specific examples.
Fig. 2 shows a schematic flow chart of a wireless screen projection control method provided by the present application, which can be applied to a screen projection device by way of example and not limitation.
S101, detecting the current working state if a screen projection request sent by a user terminal is received.
In specific application, if a screen projection request sent by a user through a user terminal is received, the current working state of screen projection equipment is obtained; the current working state comprises a screen-throwing state and a screen-non-throwing state, and the screen-throwing request is a request for carrying user terminal IP and screen-throwing information and displaying screen-throwing information through screen-throwing equipment. The screen projection information is information carried by the screen projection request and required to be displayed in a screen projection mode, and the screen projection information comprises but is not limited to pictures or videos.
It can be understood that, in order to achieve the goal of preventing the screen projection from being preempted by other user terminals in the screen projection process, the central control module needs to be written in the screen projection device, and when the functional operation is not 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 be spherical); the specific operation is as follows:
firstly, a layout file needs to be created, the layout file is written into the UI layout of the central control module, and a view control MasterBallView is instantiated;
then the WindowManager windows Manager ═ is passed
(WindowManager) getsysteservice (WINDOW _ SERVICE) acquires the WindowManager SERVICE;
by setting the attribute value of windowmanager.
Adding a UI view control (MasterBallView) with finished layout to a window layer by a windows manager.
Performing effect processing (such as fillet, gradual change, shadow and color) on the MasterBallView control through GradientDrawable, and displaying the center control module on an interface of the screen projection equipment in a 3D shape;
the attribute animation ValueAnimator is used for changing the attribute of the MasterBallViewi control realizing the 3D shape so as to realize the lasting form effect and present the animation effect;
and finally, setting the monitoring of onTouch for the MasterBallView control, realizing that a user drags and moves the MasterBallView through the touch on the interface, realizing that the movable MasterBallView can move to any position in the screen, and avoiding influencing the operation experience of the screen.
S102, if the current working state is the screen projection state, detecting whether a screen projection locking mode is started or not.
In specific application, if the current working state of the screen projection equipment is the screen projection state, determining that the screen projection equipment is projecting screen and displaying screen projection information corresponding to screen projection requests sent by other user terminals at the moment, and detecting whether a screen projection locking mode of the screen projection equipment is started at the moment; the other user terminals are other user terminals except the user terminal which sends the screen projection request; the screen-casting locking mode is a preset mode for displaying the content corresponding to the screen-casting request sent by the locking user terminal in a screen casting process by casting.
S103, if the screen-throwing locking mode is detected to be started, the screen-throwing request is analyzed, and the IP of the user terminal is obtained.
In specific application, if the screen-throwing locking mode is detected to be in an opening state, the screen-throwing request is analyzed, and the IP of the user terminal carried in the screen-throwing request is obtained.
S104, judging whether the IP of the user terminal is the same as the IP of the pre-stored locked user terminal.
In specific application, whether the IP of the user terminal carried in the screen projection request is the same as the IP of the pre-stored locking user terminal or not is judged, if the IP of the user terminal carried in the screen projection request is the same as the IP of the pre-stored locking user terminal, the fact that the user terminal which sends the screen projection request currently and the locking user terminal are the same user terminal is proved, and at the moment, a notification that the screen projection equipment is occupied can be returned to the locking user terminal to inform the locking user terminal; and if the locking user terminal sends a locking releasing request, closing the screen-throwing locking mode, and throwing the screen according to the screen-throwing request to display the corresponding screen-throwing information.
And S105, if the IP of the user terminal is different from the IP of the locked user terminal, judging that screen projection fails, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal.
In the specific application, if the IP of the user terminal carried in the screen projection request is different from the IP of the pre-stored locking user terminal, the user terminal which sends the screen projection request and the locking user terminal are proved not to be the same user terminal, the screen projection operation failure of the current screen projection request is judged, and a screen projection failure notice is generated and fed back to the user terminal which sends the screen projection request.
In one embodiment, before the step S101, the method includes:
s201, if receiving a device connection request sent by the user terminal, updating the connection state of the user terminal to be connected;
s202, analyzing the equipment connection request to obtain the IP and the equipment name of the user terminal;
s203, establishing a corresponding equipment list according to the IP and the equipment name of the user terminal.
In specific application, if an equipment connection request sent by any user terminal is received, the connection state of the user terminal is updated to be connected, the equipment connection request is analyzed to obtain the IP and the equipment name of the user terminal, and a corresponding equipment list is established according to the IP and the equipment name of the user terminal; the device connection request is a request sent by a user terminal for establishing communication connection with the current screen projection device so as to transmit heartbeat and screen projection information of the user terminal in real time; the device list is used for storing the IP and the device name of the user terminal which is successfully connected with the current screen projection device.
In one embodiment, after step S203, the method includes:
acquiring the heartbeats of all the user terminals in the equipment list;
if the heartbeat of any user terminal is detected to be abnormal, deleting the equipment name of the user terminal with the abnormal heartbeat from the equipment list, and updating the connection state of the user terminal with the abnormal heartbeat to be unconnected;
sending an abnormal notification to the user terminal with abnormal heartbeat;
and if receiving a screen projection request sent by the user terminal with abnormal heartbeat, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal with abnormal heartbeat.
In the specific application, heartbeats sent by all user terminals establishing communication connection with the current screen projection equipment in an equipment list are obtained in real time and detected, if any user terminal is detected to be abnormal in heartbeat, the user terminal is judged to be incapable of sending a screen projection request, the equipment name and the IP of the user terminal with the abnormal heartbeat are deleted from the equipment list, and the connection state of the user terminal with the abnormal heartbeat is updated to be unconnected. The heartbeat refers to information periodically sent between the screen projection equipment and each user terminal. And if the heartbeat information sent by the user terminal is not received in the preset time period, judging that the heartbeat of the user terminal is abnormal. The preset time period may refer to a periodic time length of the transmission of the heartbeat. It can be understood that, if the heartbeat information sent by the user terminal is not received within the period time length of one heartbeat, it is determined that the heartbeat of the user terminal is abnormal.
In one embodiment, after step S203, the method includes:
when a list display request sent by the user terminal is received, acquiring the device names of all the user terminals in the device list;
displaying the device names of all the user terminals in the device list and the connection states of the user terminals; the connection state comprises a connected state, a talkback control connection state and a locking connection state.
In specific application, if a list display request sent by a user terminal is received, acquiring and displaying device names of all user terminals in a device list, which establish communication connection with current screen projection devices, and simultaneously displaying the connection state of each user terminal; the connection state comprises a connected state, a talkback control connection state and a locking connection state. The connected state represents that the user terminal is in communication connection with the screen projection equipment, and the talkback control connection state represents that the user terminal is in communication connection with the screen projection equipment and a talkback control mode is started; the locked connection state represents that the screen projection device is in communication connection and the screen projection locking mode is started.
As shown in fig. 3, an application scenario diagram of a list display request is provided.
In fig. 3, taking a user terminal as a mobile phone as an example, when 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 the user terminals establishing communication connection with the current screen projection device and the connection state of each user terminal in the device list are displayed.
In one embodiment, the method further comprises:
if a locking request sent by a user terminal is received, detecting whether the screen projection locking mode is started or not;
if the screen-casting locking mode is not started, starting the screen-casting locking mode according to the locking request;
updating the connection state of the locking user terminal to be a locking connection state by taking the user terminal which sends the locking request as the locking user terminal;
and analyzing the locking request, obtaining and storing the IP and the equipment name of the locking user terminal.
In specific application, if a locking request sent by any user terminal is received, whether a screen projection locking mode of current screen projection equipment is started or not is detected, and if the screen projection locking mode of the current screen projection equipment is started, a notification that the equipment is locked is returned to the user terminal; if the screen-throwing locking mode of the current screen-throwing equipment is not started, the screen-throwing locking mode of the current screen-throwing equipment is started according to the locking request, the user terminal sending the locking request is used as the locking user terminal, correspondingly, the connection state of the locking user terminal is updated to be the locking connection state, the locking request is analyzed, the IP and the equipment name of the locking user terminal are obtained and stored, and screen-throwing information corresponding to the screen-throwing request sent by the locking user terminal is displayed only by a screen. It can be understood that the screen-projection locking mode is a mode for displaying screen-projection information corresponding to a screen-projection request sent by the locked user terminal only by screen projection; the locking request is a request carrying a user terminal IP and a device name for applying to open a screen projection locking mode of the current screen projection device.
In one embodiment, the method further comprises:
if a talkback control request sent by a user terminal is received, acquiring the connection state of the user terminal;
if the connection state is the connected state, acquiring the state of a talkback control mode;
if the state of the main speaking control mode is the non-starting state, taking the user terminal as a main speaking user terminal;
starting the talkback control mode according to the talkback control request, and updating the connection state of the talkback user terminal into a talkback control state;
analyzing the talkback control request, obtaining and storing the IP and the equipment name of the talkback user terminal;
if receiving an instruction sent by the main user terminal, executing an operation corresponding to the request; wherein the request comprises a screen quitting request, a wireless snapshot request, a wireless speaking request and a mirror image preview request.
In specific application, if a talkback control request sent by a user terminal is received, acquiring the connection state of the user terminal, if the connection state of the user terminal is the connected state, judging that the heartbeat of the user is normal, executing the operation of sending a screen projection request, detecting whether the talkback control mode of the current screen projection equipment is in an open state, and if the talkback control mode is in a start state, generating a notification that the talkback control is started and the request fails to the user terminal; if the state of the talkback control mode is the non-starting state, the user terminal sending the talkback control request is used as the talkback user terminal, the talkback control mode is started according to the talkback control request, the connection state of the talkback user terminal is updated to the talkback control state, the talkback control request is analyzed, and the IP and the equipment name of the talkback user terminal are obtained and stored; displaying a UI (user interface) of a control module in a screen of the main user terminal so as to execute operation corresponding to the request when receiving an instruction sent by a user through the main user terminal; the request comprises a screen quitting request, a wireless snapshot request, a wireless speaking request and a mirror image preview request. The screen-quitting request is a request for applying disconnection of communication connection with the current screen-throwing equipment and no longer performing screen-throwing operation; the wireless snapshot request is a request for applying to rapidly acquire a display content image (which can be understood as a request for applying to perform screenshot operation on the current screen-projection display content); the wireless speaking request is a request for sending audio data in the screen projection process; the mirror image preview request is a request for playing screen projection information in real time in the screen projection process.
In this embodiment, the main speech control mode is a mode in which a UI interface of the control module is displayed in a screen of the main speech user terminal, and a user is directly received to directly send a request and perform corresponding operations by directly touching, clicking, and the like, the screen of the main speech user terminal; in the main speaking control mode, the screen projection device receives and only receives the instruction sent by the main speaking user terminal.
In this embodiment, when a screen quitting request sent by a user terminal is received, a pull-up screen-throwing instruction is generated to the user terminal, the user terminal executes a screen-throwing action of a simulation user according to the pull-up screen-throwing instruction, and returns a screen-throwing instruction to a screen-throwing device, and when the screen-throwing device receives the screen-throwing instruction returned by the user terminal, the screen-throwing device responds to screen throwing, so as to pull up a screen throwing screen of a connected device which does not throw the screen.
As shown in fig. 4, an application scenario diagram is provided for initiating the talk-around control mode.
In fig. 4a, taking a user terminal as a mobile phone as an example, after receiving a main talk control request sent by the user terminal, if it is detected that the connection state of the user terminal is a connected state and the state of the main talk control mode is an inactivated state, the user terminal sending the main talk control request is used as the main talk user terminal, and a UI interface 001 of a central control module is displayed on a screen of the user terminal, so that a user can directly operate a screen projection device through the user terminal.
In fig. 4b, when the user touches or clicks the UI interface of the central control module, the UI interface 002 of the central control module in the 3D spherical form is expanded on the terminal of the main user to present a square form, and the operation options available at the current time (only the operations of exiting the screen, the wireless snapshot, the wireless speech, the mirror image preview request, and the like are shown) are displayed. As can be seen, the master control terminal is meizuM 6.
In one embodiment, after step S102, the method further includes:
and if the screen projection locking mode is not started, screen projection display is carried out according to the screen projection request.
In specific application, if the screen-throwing locking mode is not started, analyzing the screen-throwing request to obtain the IP, the equipment name and the screen-throwing information of the corresponding user terminal; and displaying the corresponding screen projection information by the screen projection screen and storing the IP and the equipment name of the user terminal.
In one embodiment, after step S101, the method includes:
if the working state is a non-screen-casting state and the screen casting locking mode is started, analyzing the screen casting request to obtain the IP of the user terminal;
judging 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 the same as the IP of the locked user terminal, screen projection display is carried out according to the screen projection request;
and if the IP of the user terminal is different from the IP of the locked user terminal, closing the screen-throwing locking mode, and carrying out screen-throwing display according to the screen-throwing request.
In specific application, if the current working state is a non-screen-projection state and a screen projection locking mode is started, analyzing a screen projection request, acquiring an IP (Internet protocol) of a user terminal, and judging whether the IP of the user terminal is the same as the IP of a pre-stored locked user terminal or not; if the IP of the user terminal is the same as that of the locked user terminal, judging that the user terminal sending the screen projection request and the locked user terminal are the same user terminal, and performing screen projection display according to the screen projection request; if the IP of the user terminal is different from the IP of the locked user terminal, the user terminal sending the screen projection request and the locked user terminal are judged to be different user terminals, in order to save screen projection resources, the screen projection locking mode is closed, the connection state of the locked user terminal is updated to be the connected state, a notification that the screen projection mode is released is sent to the locked user terminal, and screen projection display is carried out according to the screen projection request.
According to the method and the device, by starting the locking mode, when the user terminal sending the screen projection request is detected to be different from the IP of the locked user terminal, the screen projection failure is judged, the screen projection failure notification is generated and fed back to the user terminal, the problem that the screen projection is occupied by other user terminals is avoided, the screen projection is normally carried out, and the stability of the screen projection operation is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a block diagram of a wireless screen projection control device provided in the embodiment of the present application, corresponding to the wireless screen projection control method described in the above embodiment, and only the relevant parts of the embodiment of the present application are shown for convenience of description.
Referring to fig. 5, the wireless screen projection control device includes:
the receiving module 101 is configured to detect a current working state if a screen projection request sent by a user terminal is received;
a first detecting module 102, configured to detect whether a screen-casting locking mode is turned on if the current working state is a screen-casting state;
a first analyzing module 103, configured to analyze the screen-casting request to obtain an IP of the user terminal if it is detected that the screen-casting locking mode is turned on;
a first judging module 104, configured to judge whether the IP of the ue is the same as a pre-stored IP of a locked ue;
and a second determining module 105, configured to determine that 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 the screen projection failure notification back to the user terminal.
In one embodiment, the apparatus comprises:
a first updating module, configured to update a connection state of the user terminal to a connected state if an equipment connection request sent by the user terminal is received;
the second analysis module is used for analyzing the equipment connection request to obtain the IP and the equipment name of the user terminal;
and the establishing module is used for establishing a corresponding equipment list according to the IP and the equipment name of the user terminal.
In one embodiment, the apparatus comprises:
the first acquisition module is used for acquiring the heartbeats of all the user terminals in the equipment list;
the second updating module is used for deleting the equipment name of the user terminal with abnormal heartbeat from the equipment list and updating the connection state of the user terminal with abnormal heartbeat into unconnected state if the heartbeat of any user terminal is detected to be abnormal;
a sending module, configured to send an exception notification to the user terminal with the abnormal heartbeat;
and the generating module is used for generating the screen projection failure notification and feeding the screen projection failure notification back to the user terminal with the abnormal heartbeat if receiving the screen projection request sent by the user terminal with the abnormal heartbeat.
In one embodiment, the apparatus comprises:
a second obtaining module, configured to obtain device names of all user terminals in the device list when receiving a list display request sent by the user terminal;
the display module is used for displaying the equipment names of all the user terminals in the equipment list and the connection states of the user terminals; the connection state comprises a connected state, a talkback control connection state and a locking connection state.
In one embodiment, the apparatus further comprises:
the second detection module is used for detecting whether the screen projection locking mode is started or not if a locking request sent by the user terminal is received;
the starting module is used for starting the screen projection locking mode according to the locking request if the screen projection locking mode is not started;
a third updating module, configured to update the connection state of the locked user terminal to a locked connection state by using the user terminal that sent the locking request as the locked user terminal;
and the third analysis module is used for analyzing the locking request, obtaining and storing the IP and the equipment name of the locking user terminal.
In one embodiment, the apparatus further comprises:
the third acquisition module is used for acquiring the connection state of the user terminal if a talkback control request sent by the user terminal is received;
a fourth obtaining module, configured to obtain a state of the talkback control mode if the connection state is a connected state;
a third detection module, configured to, if the state of the primary talk control mode is an inactive state, use the user terminal as a primary talk user terminal;
a fourth updating module, configured to start the talkback control mode according to the talkback control request, and update the connection state of the talkback user terminal to a talkback control state;
the fourth analysis module is used for analyzing the talkback control request, acquiring and storing the IP and the equipment name of the talkback user terminal;
the execution module is used for executing the operation corresponding to the request if receiving the instruction sent by the main user terminal; wherein the request comprises a screen quitting request, a wireless snapshot request, a wireless speaking request and a mirror image preview request.
In one embodiment, the apparatus further comprises:
and the screen projection module is used for carrying out screen projection display according to the screen projection request if the screen projection locking mode is not started.
According to the method and the device, by starting the locking mode, when the user terminal sending the screen projection request is detected to be different from the IP of the locked user terminal, the screen projection failure is judged, the screen projection failure notification is generated and fed back to the user terminal, the problem that the screen projection is occupied by other user terminals is avoided, the screen projection is normally carried out, and the stability of the screen projection operation is ensured.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps of any of the various wireless screen projection control method embodiments described above when executing the computer program 62.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is only an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a 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 memory Card (Flash Card), and the like, which are 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 for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A wireless screen projection control method is characterized by comprising the following steps:
if a screen projection request sent by a user terminal is received, detecting the current working state;
if the current working state is a screen projection state, detecting whether a screen projection locking mode is started;
if the screen-throwing locking mode is detected to be started, analyzing the screen-throwing request to obtain the IP of the user terminal;
judging whether the IP of the user terminal is the same as the pre-stored IP of the locked user terminal;
and if the IP of the user terminal is different from the IP of the locked user terminal, judging that screen projection fails, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal.
2. The wireless screen projection control method of claim 1, wherein before detecting the current working state if a screen projection request sent by a user terminal is received, the method comprises:
if receiving a device connection request sent by the user terminal, updating the connection state of the user terminal to be connected;
analyzing the equipment connection request to obtain the IP and the equipment name of the user terminal;
and establishing a corresponding equipment list according to the IP and the equipment name of the user terminal.
3. The wireless screen projection control method of claim 2, wherein after establishing the corresponding device list according to the IP and the device name of the user terminal, the method comprises:
acquiring the heartbeats of all the user terminals in the equipment list;
if the heartbeat of any user terminal is detected to be abnormal, deleting the equipment name of the user terminal with the abnormal heartbeat from the equipment list, and updating the connection state of the user terminal with the abnormal heartbeat to be unconnected;
sending an abnormal notification to the user terminal with abnormal heartbeat;
and if receiving a screen projection request sent by the user terminal with abnormal heartbeat, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal with abnormal heartbeat.
4. The wireless screen projection control method of claim 2, wherein after establishing the corresponding device list according to the IP and the device name of the user terminal, the method comprises:
when a list display request sent by the user terminal is received, acquiring the device names of all the user terminals in the device list;
displaying the device names of all the user terminals in the device list and the connection states of the user terminals; the connection state comprises a connected state, a talkback control connection state and a locking connection state.
5. The wireless screen projection control method of claim 1, further comprising:
if a locking request sent by a user terminal is received, detecting whether the screen projection locking mode is started or not;
if the screen-casting locking mode is not started, starting the screen-casting locking mode according to the locking request;
updating the connection state of the locking user terminal to be a locking connection state by taking the user terminal which sends the locking request as the locking user terminal;
and analyzing the locking request, obtaining and storing the IP and the equipment name of the locking user terminal.
6. The wireless screen projection control method of claim 1, further comprising:
if a talkback control request sent by a user terminal is received, acquiring the connection state of the user terminal;
if the connection state is the connected state, acquiring the state of a talkback control mode;
if the state of the main speaking control mode is the non-starting state, taking the user terminal as a main speaking user terminal;
starting the talkback control mode according to the talkback control request, and updating the connection state of the talkback user terminal into a talkback control state;
analyzing the talkback control request, obtaining and storing the IP and the equipment name of the talkback user terminal;
if receiving an instruction sent by the main user terminal, executing an operation corresponding to the request; wherein the request comprises a screen quitting request, a wireless snapshot request, a wireless speaking request and a mirror image preview request.
7. The wireless screen projection control method according to any one of claims 1 to 6, wherein if the current operating state is a screen projection state, detecting whether a screen projection locking mode is turned on, further comprising:
and if the screen projection locking mode is not started, screen projection display is carried out according to the screen projection request.
8. A wireless screen projection control device is characterized by comprising:
the receiving module is used for detecting the current working state if receiving a screen projection request sent by a user terminal;
the first detection module is used for detecting whether a screen projection locking mode is started or not if the current working state is a screen projection state;
the first analysis module is used for analyzing the screen projection request to obtain the IP of the user terminal if the screen projection locking mode is detected to be started;
the first judging module is used for judging whether the IP of the user terminal is the same as the IP of a pre-stored locked user terminal;
and the second judgment module is used for judging that screen projection fails if the IP of the user terminal is different from the IP of the locked user terminal, generating a screen projection failure notice and feeding the screen projection failure notice back to the user terminal.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010818366.5A 2020-08-14 2020-08-14 Wireless screen projection control method and device, terminal equipment and readable storage medium Pending CN112114761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010818366.5A CN112114761A (en) 2020-08-14 2020-08-14 Wireless screen projection control method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010818366.5A CN112114761A (en) 2020-08-14 2020-08-14 Wireless screen projection control method and device, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112114761A true CN112114761A (en) 2020-12-22

Family

ID=73804131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010818366.5A Pending CN112114761A (en) 2020-08-14 2020-08-14 Wireless screen projection control method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112114761A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079578A (en) * 2021-03-29 2021-07-06 成都飞鱼星科技股份有限公司 Smart screen wireless screen projection data priority transmission method and system
CN113207034A (en) * 2021-04-06 2021-08-03 深圳创维-Rgb电子有限公司 Mobile phone and television screen projection processing method, device, equipment and medium
CN113225714A (en) * 2021-04-16 2021-08-06 广州朗国电子科技有限公司 Screen projection method and system
WO2021175214A1 (en) * 2020-03-05 2021-09-10 荣耀终端有限公司 Projection screen connection control method and electronic device
CN113766036A (en) * 2021-09-18 2021-12-07 海信视像科技股份有限公司 Display device and information interaction method
CN113760215A (en) * 2021-11-08 2021-12-07 广州朗国电子科技股份有限公司 Multi-terminal display data transmission method, equipment and medium based on Hongming system
CN114501120A (en) * 2022-01-11 2022-05-13 烽火通信科技股份有限公司 Multi-terminal wireless screen projection switching method and electronic equipment
WO2022218153A1 (en) * 2021-04-16 2022-10-20 广州视源电子科技股份有限公司 Screen projection control method, storage medium, and communication device
WO2023130853A1 (en) * 2022-01-06 2023-07-13 海信视像科技股份有限公司 Display device and display method for prompt information

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021175214A1 (en) * 2020-03-05 2021-09-10 荣耀终端有限公司 Projection screen connection control method and electronic device
CN113079578A (en) * 2021-03-29 2021-07-06 成都飞鱼星科技股份有限公司 Smart screen wireless screen projection data priority transmission method and system
CN113207034A (en) * 2021-04-06 2021-08-03 深圳创维-Rgb电子有限公司 Mobile phone and television screen projection processing method, device, equipment and medium
CN113207034B (en) * 2021-04-06 2023-08-08 深圳创维-Rgb电子有限公司 Method, device, equipment and medium for processing mobile phone and television screen casting
WO2022218153A1 (en) * 2021-04-16 2022-10-20 广州视源电子科技股份有限公司 Screen projection control method, storage medium, and communication device
CN113225714A (en) * 2021-04-16 2021-08-06 广州朗国电子科技有限公司 Screen projection method and system
US11928383B2 (en) 2021-04-16 2024-03-12 Guangzhou Shiyuan Electronic Technology Company Limited Screen projection control method, storage medium and communication apparatus
CN113766301A (en) * 2021-09-18 2021-12-07 海信视像科技股份有限公司 Display device and interaction control method
CN113766036A (en) * 2021-09-18 2021-12-07 海信视像科技股份有限公司 Display device and information interaction method
CN113766301B (en) * 2021-09-18 2023-11-28 海信视像科技股份有限公司 Display device and interaction control method
CN113766036B (en) * 2021-09-18 2024-04-09 海信视像科技股份有限公司 Display equipment and information interaction method
CN113760215A (en) * 2021-11-08 2021-12-07 广州朗国电子科技股份有限公司 Multi-terminal display data transmission method, equipment and medium based on Hongming system
CN113760215B (en) * 2021-11-08 2022-03-08 广州朗国电子科技股份有限公司 Multi-terminal display data transmission method, equipment and medium based on Hongming system
WO2023130853A1 (en) * 2022-01-06 2023-07-13 海信视像科技股份有限公司 Display device and display method for prompt information
CN114501120A (en) * 2022-01-11 2022-05-13 烽火通信科技股份有限公司 Multi-terminal wireless screen projection switching method and electronic equipment

Similar Documents

Publication Publication Date Title
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
WO2018049888A1 (en) Application data migration method and device
JP2020504865A (en) Application data processing method, apparatus, and storage medium
CN111552450A (en) Screen projection method and device
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
EP3211527A1 (en) Multi-screen sharing based application management method and device, and storage medium
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
TW201812567A (en) Display data control method, device, and system
US20170168807A1 (en) Method and electronic device for updating application program
US11900006B2 (en) Synchronizing local room and remote sharing
US20160191575A1 (en) Bridge Device for Large Meetings
US20170163787A1 (en) Method and electronic device for upgrading or downgrading system
CN113037545A (en) Network simulation method, device, equipment and storage medium
US20240086360A1 (en) File saving method and electronic device
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
CN114327087A (en) Input event processing method and device, electronic equipment and storage medium
CN114124697A (en) Network switching method, network switching device and storage medium
US20150143261A1 (en) Information processing terminal, information processing method, and information processing system
WO2022142716A1 (en) Information processing method and apparatus regarding wireless hotspot
CN111552537B (en) Theme switching method and device, computer equipment and storage medium
CN110750408B (en) Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN113760215B (en) Multi-terminal display data transmission method, equipment and medium based on Hongming system
CN110727645B (en) Method and system for opening debug bridge adb, storage medium and electronic equipment
WO2023124929A1 (en) Application managment method and apparatus, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Wu Jun

Inventor after: Li Chao

Inventor before: Wu Jun