CN112188277B - Screen projection control method and device, electronic equipment and computer program medium - Google Patents

Screen projection control method and device, electronic equipment and computer program medium Download PDF

Info

Publication number
CN112188277B
CN112188277B CN201910586666.2A CN201910586666A CN112188277B CN 112188277 B CN112188277 B CN 112188277B CN 201910586666 A CN201910586666 A CN 201910586666A CN 112188277 B CN112188277 B CN 112188277B
Authority
CN
China
Prior art keywords
projected
screen
equipment
description file
identification information
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.)
Active
Application number
CN201910586666.2A
Other languages
Chinese (zh)
Other versions
CN112188277A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910586666.2A priority Critical patent/CN112188277B/en
Publication of CN112188277A publication Critical patent/CN112188277A/en
Application granted granted Critical
Publication of CN112188277B publication Critical patent/CN112188277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests

Abstract

The disclosure provides a screen projection control method, a screen projection control device, electronic equipment and a computer program medium. The screen projection control method comprises the steps of obtaining identification information of equipment to be projected; sending the identification information of the equipment to be projected to a server; receiving an equipment description file from the server, wherein the equipment description file is determined by the server based on the identification information of the equipment to be projected and the corresponding relation between the identification information and the equipment description file; and controlling the equipment to be projected based on the equipment description file received from the server. The technical scheme provided by the disclosure effectively solves the problem that screen projection control cannot be carried out on the screen to be projected due to the fact that the user terminal and the screen to be projected equipment cannot be adapted.

Description

Screen projection control method and device, electronic equipment and computer program medium
Technical Field
The present disclosure relates to the field of screen projection technologies, and in particular, to a screen projection control method and apparatus, an electronic device, and a computer program medium.
Background
When a user performs screen projection control on a network television box in a local area network through a user terminal, the network television box cannot identify a request sent by the user terminal and used for acquiring a device description file containing control information, or the user terminal cannot identify response information of the network television box aiming at the request for acquiring the device description file containing the control information, so that the user terminal and the network television box cannot be adapted, and the user terminal cannot perform screen projection control on the network television box in the local area network.
Disclosure of Invention
One purpose of the present disclosure is to solve the problem that the screen projection control of the screen to be projected device cannot be performed due to the fact that the user terminal and the screen to be projected device cannot be adapted.
According to an aspect of the disclosed embodiments, a screen projection control method is disclosed, which includes:
acquiring identification information of a device to be projected;
sending the identification information of the equipment to be projected to a server;
receiving a device description file from the server, wherein the device description file is determined by the server based on the identification information of the device to be subjected to screen projection and the corresponding relation between the identification information and the device description file;
and controlling the equipment to be screened based on the equipment description file received from the server.
According to an aspect of the disclosed embodiments, a screen projection control method is disclosed, which includes:
receiving identification information of a device to be projected, which is sent by a user terminal;
determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file;
and sending the device description file to the user terminal so that the user terminal controls the device to be subjected to screen projection based on the device description file.
According to an aspect of the disclosed embodiments, a screen projection control device is disclosed, comprising:
the first acquisition unit is used for acquiring the identification information of the device to be projected;
a first sending unit, configured to send the identification information of the device to be screen-projected to a server
The first receiving unit is used for receiving an equipment description file from the server, wherein the equipment description file is determined by the server based on the identification information of the equipment to be screened and the corresponding relation between the identification information and the equipment description file;
and the first control unit is used for controlling the equipment to be projected on the basis of the equipment description file received from the server.
In one embodiment, the first obtaining unit includes:
and the sending subunit is used for sending a request for acquiring the identification information to the device to be projected.
And the receiving subunit is configured to receive response information from the to-be-screen-projected device for the request for acquiring the identification information, and extract the identification information of the to-be-screen-projected device from the response information.
In one embodiment, the screen projection control device further comprises:
and the second acquisition unit is used for sending an acquisition request for acquiring the device description file of the device to be projected to the device to be projected.
The first acquisition unit includes:
the first obtaining subunit is configured to obtain, if obtaining the device description file of the device to be screen-projected fails, identification information of the device to be screen-projected.
In one embodiment, the screen projection control device further comprises:
the monitoring unit is used for monitoring response information of the screen to be projected to the acquisition request within a preset time period after the acquisition request is sent;
and the monitoring and evaluating unit is used for failing to acquire the equipment description file of the equipment to be screen-projected if the equipment description file of the equipment to be screen-projected, which is fed back by the equipment to be screen-projected according to the acquisition request, is not monitored in the preset time period.
In one embodiment, the screen projection control device further comprises:
and the second control unit is used for controlling the screen to be projected according to the equipment description file fed back by the screen to be projected if the equipment description file of the screen to be projected fed back by the screen to be projected to the screen to be projected fed back by the screen to be projected is monitored within a preset time period after the acquisition request is sent and the equipment description file can be identified.
In one embodiment, the screen projection control device further comprises:
and the second sending unit is used for uploading the identification information of the screen to be projected and the equipment description file fed back by the screen to be projected to the server if the equipment description file of the screen to be projected fed back by the screen to be projected to the acquisition request is monitored within a preset time period after the acquisition request is sent and the equipment description file can be identified, so that the server establishes the corresponding relationship between the identification information and the equipment description file.
In an embodiment, if the device description file received from the server includes at least two device description files, the first control unit is configured to control the device to be screened based on a device description file with a highest priority in the at least two device description files.
According to an aspect of the disclosed embodiment, a screen projection control device is also disclosed, including:
the second receiving unit is used for receiving the identification information of the equipment to be projected, which is sent by the user terminal;
the execution unit is used for determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file;
and the second sending unit is used for sending the device description file to the user terminal so that the user terminal controls the device to be projected on the screen based on the device description file.
In one embodiment, the correspondence between the identification information and the device description file includes a correspondence between feature information of the identification information and the device description file, and the screen-projection control apparatus further includes:
the fourth acquisition unit is used for acquiring the identification information and the equipment description files of at least two pieces of equipment to be projected;
the second execution unit is used for determining the screen to be projected which is mutually associated according to the device description files of the at least two screen to be projected;
the comparison unit is used for carrying out XOR comparison on the identification information corresponding to the mutually associated devices to be projected to obtain the characteristic information of the identification information;
and the generating unit is used for correspondingly storing the characteristic information of the identification information and the device description file of the device to be projected, which is associated with each other, and generating the corresponding relation between the characteristic information of the identification information and the device description file.
In one embodiment, the second execution unit includes:
the execution subunit is configured to format the device description files corresponding to the at least two devices to be projected to obtain at least two formatted data;
the comparison subunit is used for comparing the tree structures of the formatted data and comparing the node values of the formatted data;
and the association subunit is used for determining the devices to be projected corresponding to the formatted data with consistent tree structures and consistent node values as the devices to be projected which are associated with each other.
In one embodiment, the screen projection control device further includes:
a third execution unit, configured to determine priorities of at least two device description files;
a fourth sending unit, configured to send the priorities of at least two device description files to the user terminal.
According to an aspect of the embodiments of the present disclosure, there is provided an electronic device including:
a memory storing computer readable instructions;
a processor reading computer readable instructions stored by the memory to perform the method as described above.
According to an aspect of embodiments of the present disclosure, there is provided a computer program medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method as described above.
In the embodiment of the disclosure, by acquiring the identification information of the device to be screen-projected by the user terminal, sending the identification information to the server, and by the server according to the identification information of the device to be screen-projected, and the corresponding relation between the identification information and the device description file determines a device description file for controlling the device to be projected, and the determined device description file is sent to the user terminal, so that even when the device to be screen-shot cannot identify the request for acquiring the device description file sent by the terminal or the user terminal cannot identify the response information fed back by the device to be screen-shot aiming at the request for acquiring the device description file, the user terminal can also control the screen to be projected according to the device description file acquired from the server, so that the problem that the screen to be projected cannot be controlled due to the fact that the user terminal and the screen to be projected cannot be matched is effectively solved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 illustrates a schematic diagram of a system architecture to which a screen projection control method according to an example embodiment of the present disclosure is applied.
Fig. 2 illustrates a flowchart of a screen-projection control method at a user terminal side according to an example embodiment of the present disclosure.
Fig. 3 shows a detailed flowchart of step S110 of a screen-projection control method at a user terminal side according to an example embodiment of the present disclosure.
Fig. 4 illustrates a flowchart of a screen-projection control method at a user terminal side according to another example embodiment of the present disclosure.
Fig. 5 illustrates a flowchart of a screen-projection control method at a user terminal side according to another example embodiment of the present disclosure.
Fig. 6 illustrates a flowchart of a user terminal-side screen projection control method according to another example embodiment of the present disclosure.
Fig. 7 illustrates a flowchart of a user terminal-side screen projection control method according to another example embodiment of the present disclosure.
Fig. 8 illustrates a flowchart of a screen-projection control method at a user terminal side according to another example embodiment of the present disclosure.
Fig. 9 shows a flowchart of a server-side screen projection control method according to an example embodiment of the present disclosure.
Fig. 10 shows a flowchart of a server-side screen projection control method according to another example embodiment of the present disclosure.
Fig. 11 shows a detailed flowchart of step S320 of the screen projection control method on the server side according to an example embodiment of the present disclosure.
Fig. 12 shows a detailed flowchart of step S320 of a server-side screen projection control method according to another example embodiment of the present disclosure.
Figure 13 shows a flowchart of interaction between a user terminal and a server based on a screen projection control method according to an example embodiment of the present disclosure,
fig. 14 is a block diagram illustrating a screen-projection control apparatus at a user terminal side according to an example embodiment of the present disclosure.
Fig. 15 is a block diagram of a server-side screen projection control apparatus according to an example embodiment of the present disclosure.
Fig. 16 illustrates a hardware block diagram of an electronic device according to an example embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more example embodiments. In the following description, numerous specific details are provided to give a thorough understanding of example embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, steps, and so forth.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
FIG. 1 shows a schematic diagram of a system architecture applied in accordance with an embodiment of the present disclosure. The system architecture comprises at least one user terminal 1, a server 2 in wireless communication connection with the user terminal 1, and at least one device to be projected 3 connected with the user terminal 1.
The user terminal 1 may be one of a smart phone, a tablet computer, and a portable computer, and the user terminal 1 may perform screen projection control on at least one device to be projected 3 in the same lan as the user terminal 1 based on a protocol (DLNA) specified by the Digital home Network Alliance. The device 3 to be projected can be an electronic display device for outputting images, such as a smart television, and the device 3 to be projected can further include a network television box connected with the smart television, data interaction is performed between the user terminal 1 and the network television box, so that screen projection control of the smart television is realized, and the user terminal 1 can specifically perform data interaction between the screen projection application and the network television box.
The server 2 has a software-oriented server and a hardware-oriented server. In terms of hardware, the server 2 is a physically existing server, and may be a server configured by one physical computer or a cluster server configured by combining a plurality of physical computers. From the software perspective, a server refers to computer software with server-side functions and running server-side software. It may be a virtual server that occupies only a part of one computer, or may be a virtual cluster server that occupies a part or all of a plurality of computers, respectively. Particularly in a cloud environment, the application of the virtual cluster server is common. Thus, the overall system architecture can be viewed as being constructed from numerous nodes and connecting channels. In terms of "hardware", the architecture is built up from a myriad of hardware servers and other digital computing device terminals (such as the network television 1, etc.) and intermediate connection devices (such as network cables, routers, etc.). In terms of "soft", the framework is built up from numerous running server-side software and client-side software (e.g., applications on the user terminal 1) and their interconnections. The server 2 receives the identification information of the screen device 3 to be projected, which is sent by the screen projecting application on the user terminal 1, and the server 2 determines an equipment description file corresponding to the identification information of the screen device 3 to be projected according to the identification information of the screen device 3 to be projected and the corresponding relation between the identification information and the equipment description file, and sends the equipment description file to the screen projecting application on the user terminal 1, so that the screen projecting application on the user terminal 1 can control the screen device 3 to be projected based on the equipment description file. As can be seen, according to the technical solution of the embodiment of the present invention, even when the device to be screen-projected 3 cannot recognize the request for acquiring the device description file sent by the user terminal 1 or the user terminal 1 cannot recognize the response information fed back by the device to be screen-projected 3 in response to the request for acquiring the device description file, the user terminal 1 may control the device to be screen-projected 3 according to the device description file acquired from the server 2, thereby effectively solving the problem that the device to be screen-projected 3 and the user terminal 1 cannot be screen-projected due to the fact that they cannot be adapted.
Some aspects of the embodiments of the present disclosure may be embodied based on a system architecture such as that shown in fig. 1 or variations thereof.
The embodiment of the disclosure provides a screen projection control method on a user terminal side and a screen projection control method on a server side.
Referring to fig. 2, fig. 2 is a flowchart illustrating a screen projection control method at a user terminal according to an example embodiment of the present disclosure, the screen projection control method being executed by a user terminal, the screen projection control method including:
and step S110, acquiring identification information of the device to be projected.
And step S120, sending the identification information of the device to be projected to a server.
Step S130, receiving an equipment description file from the server, where the equipment description file is determined by the server based on the identification information of the equipment to be screened and the corresponding relationship between the identification information and the equipment description file.
Step S140, controlling the device to be projected based on the device description file received from the server.
These steps are described in detail below.
In step S110, the identification information is used as characteristic information for identifying the identity of the device to be projected by the server or the user terminal, and the identification information may be Media Access Control Address (MAC) information of the device to be projected, a device number of the device to be projected, or a product model of the device to be projected. The MAC address information of the device to be screen-projected serves as the unique physical address information of the device to be screen-projected, the device number of the device to be screen-projected serves as the unique serial number of each produced device to be screen-projected by a manufacturer, and the identification information enables the server or the user terminal to identify the identity of the device to be screen-projected. It should be noted that the MAC address information is specifically a character string, and may be a 6-group 16-ary character string, for example, "00-0 a-0b-0c-0d-0 e".
When a user terminal controls a device to be screen-projected, an equipment description file of the device to be screen-projected needs to be acquired, and the user terminal can acquire the equipment description file for controlling the device to be screen-projected from a server, wherein the equipment description file contains all control information for screen projection control of the device to be screen-projected, the control information can include a control point address of each service on the device to be screen-projected, an action name of each service action and a parameter requirement of each service action, and services on the device to be screen-projected can include services such as video playing, pausing, control of playing progress, volume adjustment and the like. It should be noted that the device description file may be an Extensible Markup Language (XML) file.
When a user terminal needs to call a certain service of a device to be screen-thrown, the user terminal and the device to be screen-thrown are connected in the same local area network, the user terminal sends service calling information containing action name information and parameter requirement information to a control point address corresponding to the service in the device to be screen-thrown, the device to be screen-thrown receives the service calling information sent by the user terminal, and executes corresponding service according to the action name information and the parameter requirement information in the service calling information, so that screen-throwing control of the device to be screen-thrown by the user terminal is realized.
When the user terminal acquires the device description file for controlling the screen device to be projected from the server, the identification information of the screen device to be projected can be acquired, the identification information of the screen device to be projected is sent to the server, and then the device description file for controlling the screen device to be projected is acquired from the server through the identification information of the screen device to be projected.
Referring to fig. 3, fig. 3 shows a flowchart of step S110 of a screen-projection control method at a user terminal side in an example embodiment of the present disclosure, and in this embodiment, step S110 may include the following steps:
step S1101, sending a request for obtaining identification information to the device to be projected.
Step S1102, receiving response information from the device to be screen-projected, the request for obtaining the identification information, and extracting the identification information of the device to be screen-projected from the response information.
In step S1101, when the user terminal needs to acquire the identification information of the device to be screen-projected, the user terminal may be connected to the same lan as the device to be screen-projected, and the user terminal sends a request for acquiring the identification information to the device to be screen-projected connected to the same lan. If the identification information is the equipment number of the equipment to be screen-projected or the product model of the equipment to be screen-projected, the request can be an acquisition request for acquiring the equipment information of the equipment to be screen-projected; if the identification information is MAC Address information, the request may be a request for acquiring MAC Address information specified in Address Resolution Protocol (ARP).
In step S1102, when the identification information is the device number of the device to be screen-projected or the product model of the device to be screen-projected, after the device to be screen-projected receives an acquisition request of device information of the device to be screen-projected from the user terminal, the device to be screen-projected calls the device number of the device to be screen-projected or the product model of the device to be screen-projected from the factory configuration module in the local memory, adds the acquired device number of the device to be screen-projected or the product model of the device to be screen-projected to a response to the acquisition request of the device information of the device to be screen-projected, and sends the response to the user terminal, so that the user terminal acquires the device number of the device to be screen-projected or the product model of the device to be screen-projected.
If the identification information is the MAC address information, after the screen to be projected equipment receives a request for acquiring the MAC address information from the user terminal, the screen to be projected equipment checks the request to determine whether the request is a request for acquiring the MAC address information specified by an ARP protocol. And if the verification is successful, the device to be screen-projected acquires the MAC address information of the device to be screen-projected from the configuration information for storing the MAC address information. And the screen to be projected equipment adds the acquired MAC address information of the screen to be projected equipment to response information of the request for acquiring the MAC address information and sends the response information of the request for acquiring the MAC address information to the user terminal.
After receiving response information of a request for acquiring the MAC address information from the equipment to be screen-shot, the user terminal verifies the response information to determine whether the response information is the response information of the request for acquiring the MAC address specified by the ARP protocol, and if the verification is successful, the user terminal extracts the MAC address information of the equipment to be screen-shot from the response information. The MAC address information of the equipment to be screen-projected is acquired by adopting an ARP protocol, and the method can be realized only by the existing ARP protocol without establishing an additional communication mechanism.
In an embodiment, on the premise that the identification information of the device to be screen-projected is known, the identification information of the device to be screen-projected may be input by an entity button or a virtual control provided by the user terminal, so that the user terminal obtains the identification information of the device to be screen-projected.
Referring to fig. 2 again, in step S120, after the user terminal obtains the identification information of the device to be screen-projected, the user terminal may store the identification information of the device to be screen-projected, and send the obtained identification information of the device to be screen-projected to the server. The server is pre-stored with the corresponding relation between the identification information and the device description file, and can determine the device description file corresponding to the received identification information according to the identification information received from the user terminal and the corresponding relation between the identification information and the device description file pre-stored in the server, and further determine the device description file for controlling the screen projection device. And after determining to obtain the equipment description file corresponding to the received identification information, the server sends the determined equipment description file to the user terminal.
In step S130, the user terminal receives a device description file from the server, where the device description file is determined by the server based on the identification information of the device to be screened, which is received from the user terminal, and the corresponding relationship between the identification information and the device description file.
In step S140, after receiving the device description file from the server, the user terminal controls the device to be projected according to the device description file received from the server.
In an embodiment, if the device description file received from the server includes at least two device description files, the step S140 of controlling the device to be screen-thrown based on the device description file received from the server includes:
and controlling the equipment to be subjected to screen projection based on the equipment description file with the highest priority in the at least two equipment description files.
When the device description file received by the user terminal from the server comprises at least two device description files, the user terminal can control the device to be screened based on the device description file with the highest priority in the at least two device description files, and then the device description file with the highest priority is selected from the at least two device description files in order to control the screen-screened device.
It can be understood that, when the user terminal controls the screen-casting device through the device description file with the highest priority, if the user terminal does not monitor that the screen-casting device sends the response information of the screen-casting control information to the user terminal through the device description file with the highest priority, the user terminal may further select the device description file with the second highest priority to control the screen-casting device.
In an embodiment, the priorities of the at least two device profiles may be determined by the user terminal, or may be determined by the server, where after determining the priorities of the at least two device profiles, the server issues the determined priorities of the at least two device profiles to the user terminal.
In one embodiment, when determining the priority of at least two device description files, the user terminal may determine the priority of the device description file according to the data size of the device description file. Specifically, when the data size of the device description file is determined, the data size of the device description file can be determined by calculating all byte numbers in the device description file, and the smaller the data size of the device description file is, the higher the priority is; the larger the data amount of the device description file, the lower the priority. When the user terminal initiates control to the device to be projected by selecting the device description file with smaller data volume, the transmitted data volume can be effectively reduced, and further network resources can be saved.
In summary, by acquiring the identification information of the device to be screened by the user terminal, sending the identification information to the server, and by the server according to the identification information of the device to be screened, and the corresponding relation between the identification information and the device description file determines a device description file for controlling the device to be projected, and the determined device description file is sent to the user terminal, so that even when the device to be screen-shot cannot identify the request for acquiring the device description file sent by the terminal or the user terminal cannot identify the response information fed back by the device to be screen-shot aiming at the request for acquiring the device description file, the user terminal can also control the screen to be projected according to the device description file acquired from the server, so that the problem that the screen to be projected cannot be controlled due to the fact that the user terminal and the screen to be projected cannot be matched is effectively solved.
Referring to fig. 4, fig. 4 shows a flowchart of a screen projection control method at a user terminal side in an example embodiment according to the present disclosure.
Before step S110 of acquiring identification information of a device to be projected, the method further includes:
step S105, sending an acquisition request for acquiring the device description file of the device to be projected to the device to be projected.
The step S110 of acquiring the identification information of the device to be projected includes:
step S1103, if the device description file of the device to be screen-projected fails to be obtained, obtaining the identification information of the device to be screen-projected.
In step S105, after sending the request for obtaining the device description file of the device to be screen-projected to the device to be screen-projected, the user terminal may fail to obtain the device description file of the device to be screen-projected. When the user terminal determines that the device description file of the device to be screen-projected fails to be acquired, the user terminal cannot control screen projection of the device to be screen-projected.
In step S1103, when the user terminal fails to acquire the device description file of the device to be screen-projected, the user terminal may send a request for acquiring the identifier information of the device to be screen-projected to the device to be screen-projected. If the identification information of the device to be screen-projected is the MAC address information of the device to be screen-projected, the request for obtaining the identification information of the device to be screen-projected may be a request for obtaining the MAC address information specified by the ARP protocol. The user terminal receives response information of the screen to be projected to a request for acquiring the MAC address information of the screen to be projected, extracts the MAC address information of the screen to be projected from the response information, and sends the MAC address of the screen to be projected to the server.
If the identification information of the device to be screen-projected is the MAC address information of the device to be screen-projected, the corresponding relation between the identification information prestored in the server and the device description file is the corresponding relation between the MAC address information and the device description file. The server sends the determined equipment description file to the user terminal according to the MAC address information of the equipment to be screen-projected, which is received from the user terminal, and the equipment description file corresponding to the MAC address information of the equipment to be screen-projected, which is determined according to the corresponding relation between the MAC address information and the equipment description file. The user terminal performs screen projection control on the screen to be projected through the device description file received from the server, and the problem that screen projection control cannot be performed on the screen to be projected due to the fact that the user terminal and the screen to be projected cannot be matched is effectively solved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a screen projection control method at a user terminal side in an exemplary embodiment of the present disclosure, and in an embodiment, after step S105 of sending an acquisition request for acquiring a device description file of the device to be screen projected to the device to be screen projected, the method further includes:
and step S106, monitoring response information of the screen to be projected to the acquisition request in a preset time period after the acquisition request is sent.
Step S107, if the device description file of the device to be screen-projected fed back by the device to be screen-projected according to the acquisition request is not monitored in the preset time period, failing to acquire the device description file of the device to be screen-projected.
In step S106, when the user terminal sends the request for obtaining the device description file of the device to be screen-projected to the device to be screen-projected, the device to be screen-projected cannot recognize the request sent by the user terminal, and when the device to be screen-projected cannot recognize the request sent by the user terminal, the device to be screen-projected cannot feed back the device description file of the device to be screen-projected to the user terminal. After sending an acquisition request for acquiring the device description file of the device to be projected to the device to be projected, the user terminal can monitor whether the device description file of the device to be projected, which is fed back by the device to be projected according to the acquisition request, is received within a preset time period, and then timely confirm whether the device to be projected feeds back the device description file.
In step S107, if the user terminal does not monitor the device description file of the device to be screen cast fed back by the device to be screen cast in response to the acquisition request within the preset time period, the user terminal may timely confirm that the device to be screen cast does not feed back the device description file, and thus the user terminal determines that the device description file of the device to be screen cast fails to be acquired. The method comprises the steps that after a user terminal sends an obtaining request for obtaining the device description file of the device to be projected to the device to be projected, whether the device to be projected feeds back the device description file or not is monitored, and whether the device to be projected feeds back the device description file or not can be quickly and effectively confirmed by the user terminal.
Referring to fig. 6, fig. 6 shows a flowchart of a screen projection control method at a user terminal side in an example embodiment of the present disclosure, and in an embodiment, after step S105 of sending an acquisition request for acquiring a device description file of the device to be screen projected to the device to be screen projected, the method further includes:
step S108, if it is monitored that the device to be screen-projected device feeds back the device description file of the device to be screen-projected according to the acquisition request within a preset time period after the acquisition request is sent, but the device description file cannot be identified, the device description file of the device to be screen-projected fails to be acquired.
In step S108, after the user terminal sends an acquisition request for acquiring the device description file of the device to be screen-projected to the device to be screen-projected, if the device to be screen-projected recognizes the acquisition request, the device to be screen-projected feeds back the device description file of the device to be screen-projected to the user terminal according to the acquisition request. Although the user terminal receives the device description file of the device to be screened, which is fed back by the device to be screened, the user terminal may be unable to identify that the device description file fed back by the device to be screened is the device description file for controlling the device to be screened, for example, a screen-casting application on the user terminal has a software version that is not the latest software version, so that the user terminal may be unable to identify that the device description file fed back by the device to be screened is the device description file for controlling the device to be screened. When the user terminal monitors the device description file of the to-be-projected device fed back by the to-be-projected device according to the acquisition request within a preset time period after the user terminal sends the acquisition request, but the device description file fed back by the to-be-projected device cannot be identified as the device description file for controlling the to-be-projected device, the user terminal determines that the device description file of the to-be-projected device fails to be acquired.
Referring to fig. 7, fig. 7 is a flowchart illustrating a screen projection control method at a user terminal side according to an exemplary embodiment of the present disclosure, and after step S105 of sending an acquisition request for acquiring a device description file of the device to be screen projected to the device to be screen projected, the method further includes:
step S109, if it is monitored that the device to be screen-projected is the device description file of the device to be screen-projected fed back by the device to be screen-projected to the acquisition request within the preset time period after the acquisition request is sent, and the device description file can be identified, controlling the device to be screen-projected according to the device description file fed back by the device to be screen-projected.
After the user terminal sends an acquisition request for acquiring the device description file of the device to be screen-projected to the device to be screen-projected, if the device description file of the device to be screen-projected, which is fed back by the device to be screen-projected to the acquisition request, is monitored within a preset time period after the acquisition request is sent and the device description file can be identified, the user terminal confirms that the acquisition of the device description file of the device to be screen-projected is successful, and the user terminal can directly control the device to be screen-projected through the identified device description file.
Referring to fig. 8, fig. 8 is a flowchart illustrating a screen projection control method at a user terminal side in an exemplary embodiment of the present disclosure, and in this embodiment, after step S105 of sending an acquisition request for acquiring a device description file of the device to be screen projected to the device to be screen projected, the method further includes:
step S150, if the device description file of the to-be-projected device fed back by the to-be-projected device to the acquisition request is monitored within a preset time period after the acquisition request is sent, and the device description file can be identified, uploading the identification information of the to-be-projected device and the device description file fed back by the to-be-projected device to the server, so that the server establishes a corresponding relationship between the identification information and the device description file.
In step S150, the user terminal monitors the device description file of the device to be projected, which is fed back to the acquisition request by the device to be projected, within a preset time period after the acquisition request is sent, and can identify the device description file. The user terminal can directly control the device to be projected through the identified device description file. It should be noted that, after the identification information obtained by the user terminal from the device to be screen-projected, the user terminal may also upload the identification information obtained from the device to be screen-projected and the device description file fed back by the device to be screen-projected to the server, so that the server establishes a corresponding relationship between the identification information and the device description file.
Referring to fig. 9, fig. 9 is a flowchart illustrating a server-side screen projection control method according to an exemplary embodiment of the present disclosure, the server-side screen projection control method being executed by a server, the server-side screen projection control method including:
step S210, receiving the identification information of the device to be projected, which is sent by the user terminal.
Step S220, determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file.
Step S230, sending the device description file to the user terminal, so that the user terminal controls the device to be projected based on the device description file.
In step S210, the server receives identification information of the device to be screen-projected, which is sent by the user terminal, where the identification information is used as feature information for identifying the identity of the device to be screen-projected by the server or the user terminal, and the identification information may be information such as MAC address information or device number.
In step S220, since the server pre-stores the corresponding relationship between the identification information and the device description file, the server may determine the device description file corresponding to the received identification information according to the identification information received from the user terminal and the corresponding relationship between the identification information and the device description file pre-stored in the server, and further determine the device description file for controlling the device to be screen-projected.
In one embodiment, if the identification information of the device to be screen-projected is the device number of the device to be screen-projected, the correspondence between the identification information prestored in the server and the device description file is the correspondence between the device number of the device to be screen-projected and the device description file corresponding to the device to be screen-projected. For the device number of the device to be screen-projected, which is received from the user terminal, the server can quickly and accurately determine the device description file for controlling the device to be screen-projected, which corresponds to the device number, based on the corresponding relationship between the device number and the device description file. And the server sends the determined equipment description file to the user terminal, so that the user terminal can control the screen projection equipment according to the equipment description file received from the server.
In an embodiment, if the identification information of the device to be screen-projected is the product model of the device to be screen-projected, the corresponding relationship between the identification information and the device description file prestored in the server is the corresponding relationship between the product model of the device to be screen-projected and the device description file corresponding to the device to be screen-projected, and for the product model of the device to be screen-projected received from the user terminal, the server may still determine the device description file for controlling the device to be screen-projected of the product model based on the corresponding relationship between the product model and the device description file. In the screen-to-be-projected equipment with the same product model produced by each manufacturer, the corresponding equipment description files in the screen-to-be-projected equipment are consistent, so that the screen-to-be-projected equipment with the same product model can be classified into the same category according to the product model of the screen-to-be-projected equipment, and the corresponding relation between the screen-to-be-projected equipment in the same category and the equipment description file is established.
In one embodiment, if the identification information of the device to be screen-projected is the MAC address information of the device to be screen-projected, the correspondence between the identification information prestored in the server and the device description file is a one-to-one correspondence between the MAC address information of the device to be screen-projected and the device description file corresponding to the device to be screen-projected. The server can accurately determine the device description file for controlling the device to be screen-projected according to the MAC address information of a certain device to be screen-projected, which is received from the user terminal, by pre-storing the corresponding relation between the MAC address information and the device description file. And the server sends the determined equipment description file to the user terminal, so that the user terminal can control the screen to be projected according to the equipment description file received from the server.
Referring to fig. 10, fig. 10 is a flowchart illustrating a screen projection control method on a server side according to an example embodiment of the present disclosure, in this embodiment, a correspondence between the identification information and the device description file includes a correspondence between feature information of the identification information and the device description file, where the screen projection control method on the server side further includes:
step S310, obtaining the identification information and the device description file of at least two devices to be projected.
Step S320, determining the devices to be projected which are associated with each other according to the device description files of the at least two devices to be projected.
And step S330, performing XOR comparison on the identification information corresponding to the correlated equipment to be projected, and determining to obtain the characteristic information of the identification information.
Step S340, correspondingly storing the characteristic information of the identification information and the device description file of the device to be projected, which are associated with each other, and generating a corresponding relationship between the characteristic information of the identification information and the device description file.
In step S310, in this embodiment, it is described by taking the identification information as the MAC address information as an example, and the preset correspondence between the identification information and the device description file may be a correspondence between feature information of the MAC address information and the device description file, that is, a correspondence between a part of information in the MAC address information and the device description file. When the server establishes the corresponding relationship between the characteristic information of the MAC address information and the device description file, the MAC address information and the device description file of at least two devices to be projected need to be acquired, so as to generate the corresponding relationship between the characteristic information of the MAC address information and the device description file.
In one embodiment, the acquiring identification information and device description files of at least two devices to be projected S310 includes:
and receiving the identification information of at least two pieces of equipment to be screened and the equipment description file uploaded by the user terminal.
If the identification information of the device to be screen-projected is the MAC address information of the device to be screen-projected, the MAC address information and the device description file of at least two devices to be screen-projected, which are acquired by the server, can also be uploaded by the user terminals, wherein the MAC address information and the device description file of the device to be screen-projected can be uploaded by one or more user terminals, and for each user terminal, the MAC address information and the device description file of one or more devices to be screen-projected can be simultaneously uploaded to the server each time.
Certainly, the obtained MAC address information and device description files of the at least two devices to be screen-projected may also be preconfigured in the server, for example, a manager of the server obtains the MAC address information and the device description file of the existing device to be screen-projected from the market, and uploads the obtained MAC address information and the device description file of the device to be screen-projected to the server, so that the server obtains the MAC address information and the device description file of the device to be screen-projected.
With continued reference to fig. 10, in step S320, when the device to be screened is a device of a certain model manufactured by the same manufacturer, the information in the device description file of the device to be screened is consistent. Therefore, the acquired at least two pieces of equipment to be screen-projected can be classified according to the information in the equipment description file, when the information in the equipment description file is consistent, the equipment to be screen-projected corresponding to the equipment description file with consistent information is taken as a class and is determined as the equipment to be screen-projected which is mutually associated, and then the MAC address information corresponding to the mutually associated equipment to be screen-projected can be conveniently analyzed so as to determine the common characteristic information of the MAC address information of the mutually associated equipment to be screen-projected.
Referring to fig. 11, fig. 11 is a flowchart illustrating a step S320 of a screen projection control method on a server side according to an exemplary embodiment of the present disclosure, in this embodiment, the step S320 of determining identification information associated with each other according to device description files of the at least two devices to be screen projected includes the following steps:
step S3201, formatting the device description files corresponding to the at least two screen projection devices to obtain at least two formatted data;
step S3202, comparing the structure of the formatted data, and comparing the node value of the formatted data;
step S3203, the devices to be projected corresponding to the formatted data with consistent structures and consistent node values are determined as the devices to be projected which are associated with each other.
In step S3201, the embodiment continues to use the identification information as the MAC address information for example, because the device description file of the device to be screened is generally an XML file, when determining whether the XML file is a consistent XML file, the XML file may be formatted to obtain corresponding formatted data, and whether the information in the two device description files is consistent is determined based on the feature information included in the formatted data, such as the feature information of the structure and the node value.
In step S3202, for all the obtained formatted data, the server compares whether the structures in all the formatted data are consistent and compares whether the node values in the formatted data are consistent. When the structures in the two formatted data are consistent and the node values are consistent, the information in the two device description files corresponding to the two formatted data are consistent; when the structures in the two formatted data are consistent but the node values are inconsistent, the node values in the two formatted data are inconsistent but the structures are consistent, or the structure node values in the two formatted data are inconsistent and the structures are inconsistent, then the information in the two device description files corresponding to the two formatted data are inconsistent.
In step S3203, the devices to be screen-projected corresponding to the formatted data with the same structure and the same node value are determined as the devices to be screen-projected which are associated with each other, so as to facilitate analysis and processing of the MAC address information of the devices to be screen-projected which are associated with each other, so as to determine common characteristic information of the MAC address information of the devices to be screen-projected which are associated with each other.
Still referring to fig. 10, in step S330, for the MAC address information of the devices to be screen-dropped, which are associated with each other, the server compares the MAC address information of the devices to be screen-dropped, which are associated with each other, to determine the feature information of the MAC address information of the devices to be screen-dropped, which are associated with each other. Specifically, the character strings corresponding to the MAC address information of the devices to be projected that are associated with each other may be subjected to xor comparison to determine the characteristic information included in the MAC address information.
For example, when the correlated device to be projected includes three pieces of MAC address information, the corresponding three pieces of MAC address information are "0 f-1a-f0-0 a-ac-bc", "0 f-1 b-11-22-33-54" and "0 f-1 c-66-77-88-99", respectively, the characters at each position in the three pieces of MAC address information are subjected to xor comparison, and the xor result is "000111111111". In the xor result, "0" indicates that the characters at the corresponding positions in the MAC address information are the same, and "1" indicates that the characters at the corresponding positions in the MAC address information are different, so that it can be determined that the three pieces of MAC address information have the same characters at the first to third positions, respectively, and the diagnostic information of the corresponding three pieces of MAC address information is "af 1".
In step S340, the server stores the feature information of the MAC address information in correspondence with the device description file corresponding to the feature information of the MAC address information, and generates a correspondence between the feature information of the MAC address information and the device description file. It should be noted that, because the feature information of the MAC address information is the same feature information that two or more pieces of MAC address information have at the same time, in the correspondence relationship between the feature information of the MAC address information and the device profile, the feature information of the MAC address information is stored in correspondence with two or more device profiles.
By setting the corresponding relation between the characteristic information of the MAC address information and the device description file, the server can accurately determine the device description file which is used for controlling the device to be screen-projected and received from the user terminal. In addition, compared with the one-to-one correspondence relationship formed by the MAC address information of each device to be screened and the device description file corresponding to the device to be screened, the method does not need to store the MAC address information of each device to be screened, and further can reduce the data volume of the server for storing the MAC address information, so that the storage resources in the server are saved.
In an embodiment, the correspondence between the feature information of the identification information and the device description file may be a mapping table formed between the feature information of the identification information and the corresponding device description file, or, of course, a data set formed between the feature information of the identification information and the corresponding device description file.
Referring to fig. 12, fig. 12 is a flowchart illustrating a screen projection control method on a server side according to an exemplary embodiment of the present disclosure, where the screen projection control method in this embodiment further includes:
step S240, determining the priority of at least two device description files.
Step S250, sending the priorities of at least two device description files to the user terminal.
In step S240, as can be seen from the foregoing description, when the server determines that the device description file corresponding to the identification information of the device to be screen-projected is obtained according to the identification information of the device to be screen-projected received from the user terminal and the correspondence between the identification information and the device description file, at least two determined device description files may be provided. For the plurality of determined device description files, in order to enable the user terminal to better control the device to be screened from the device description file received from the server, the server may determine the priority of at least two device description files required to be sent to the user terminal.
In one embodiment, when determining the priority of at least two device description files required to be sent to the user terminal, the server may determine the priority of the device description file according to the data size of the device description file. Specifically, when the data size of the device description file is determined, the data size of the device description file can be determined by calculating all byte numbers in the device description file, and the smaller the data size of the device description file is, the higher the priority is; the larger the data amount of the device description file, the lower the priority.
In step S250, the server sends the priorities of the at least two device description files to the user terminal, so that the user terminal can select a device description file with the highest priority from the multiple device description files according to the priorities to control the device to be screened, and further, the user terminal can select a suitable device description file from the at least two device description files in order to control the device to be screened.
In order to display the interaction relationship between the user terminal and the server, referring to fig. 13, fig. 13 is a flowchart illustrating the interaction between the user terminal and the server based on the screen projection control method according to an exemplary embodiment of the present disclosure, and steps of the user terminal side and the server side are embodied in the flowchart of fig. 13.
The screen projection control method of the user terminal comprises the following steps:
and step S410, acquiring identification information of the device to be projected.
Step S420, sending the identification information of the device to be projected to a server.
Step S460, receiving an equipment description file from the server, where the equipment description file is determined by the server based on the identification information of the equipment to be screen-thrown and the corresponding relationship between the identification information and the equipment description file.
Step S470, controlling the device to be screened based on the device description file received from the server.
The screen projection control method of the server side comprises the following steps:
and step S430, receiving the identification information of the device to be projected, which is sent by the user terminal.
Step S440, determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file.
Step S450, the device description file is sent to the user terminal, so that the user terminal controls the device to be projected on the screen based on the device description file.
For the above-mentioned related descriptions of step S410 to step S470, please refer to the related descriptions of the screen projection control methods of the user terminal side and the service side in the foregoing embodiments, which are not described herein again.
As shown in fig. 14, according to an embodiment of the present disclosure, there is also provided a screen-projection control apparatus at a user terminal side, including:
a first obtaining unit 510, configured to obtain identification information of a device to be screen-projected.
A first sending unit 520, configured to send the identification information of the device to be screen-projected to a server.
A first receiving unit 530, configured to receive a device description file from the server, where the device description file is determined by the server based on the identification information of the device to be screened and a correspondence between the identification information and the device description file.
A first control unit 540, configured to control the device to be screened based on the device description file received from the server.
In one embodiment, the first obtaining unit 510 includes:
and the sending subunit is used for sending a request for acquiring the identification information to the device to be projected.
And the receiving subunit is configured to receive response information from the to-be-screen-projected device for the request for acquiring the identification information, and extract the identification information of the to-be-screen-projected device from the response information.
In one embodiment, the apparatus further comprises:
and the second acquisition unit is used for sending an acquisition request for acquiring the equipment description file of the equipment to be projected to the equipment to be projected.
The first obtaining unit 510 includes:
the first obtaining subunit is configured to obtain, if obtaining the device description file of the device to be screen-projected fails, identification information of the device to be screen-projected.
In one embodiment, the apparatus further comprises:
the monitoring unit is used for monitoring response information of the screen to be projected to the acquisition request within a preset time period after the acquisition request is sent;
and the monitoring and evaluating unit is used for failing to acquire the equipment description file of the equipment to be screen-projected if the equipment description file of the equipment to be screen-projected, which is fed back by the equipment to be screen-projected according to the acquisition request, is not monitored in the preset time period.
In one embodiment, the apparatus further comprises:
and the monitoring and identifying unit is used for failing to acquire the equipment description file of the equipment to be screen-projected if the equipment description file of the equipment to be screen-projected, which is fed back by the equipment to be screen-projected according to the acquisition request, is monitored within a preset time period after the acquisition request is sent, but the equipment description file cannot be identified.
In one embodiment, the apparatus further comprises:
and the second control unit is used for controlling the screen to be projected according to the equipment description file fed back by the screen to be projected if the equipment description file of the screen to be projected fed back by the screen to be projected to the screen to be projected fed back by the screen to be projected is monitored within a preset time period after the acquisition request is sent and the equipment description file can be identified.
In one embodiment, the apparatus further comprises:
and the second sending unit is used for uploading the identification information of the screen to be projected and the equipment description file fed back by the screen to be projected to the server if the equipment description file of the screen to be projected fed back by the screen to be projected to the acquisition request is monitored within a preset time period after the acquisition request is sent and the equipment description file can be identified, so that the server establishes the corresponding relationship between the identification information and the equipment description file.
In an embodiment, if the device description file received from the server includes at least two device description files, the first control unit 540 is further configured to control the device to be screened based on the device description file with the highest priority in the at least two device description files.
As shown in fig. 15, according to an embodiment of the present disclosure, there is also provided a server-side screen projection control apparatus including:
a second receiving unit 610, configured to receive identifier information of a device to be screened, where the identifier information is sent by a user terminal;
a first executing unit 620, configured to determine, according to the identification information of the device to be screen-screened and a correspondence between the identification information and a device description file, a device description file corresponding to the identification information of the device to be screen-screened;
a third sending unit 630, configured to send the device description file to the user terminal, so that the user terminal controls the device to be screened based on the device description file.
In one embodiment, the correspondence between the identification information and the device description file includes a correspondence between identified feature information and the device description file, and the screen-projection control apparatus further includes:
the fourth acquisition unit is used for acquiring the identification information and the equipment description files of at least two pieces of equipment to be projected;
the second execution unit is used for determining the screen to be projected which is mutually associated according to the device description files of the at least two screen to be projected;
the comparison unit is used for carrying out XOR comparison on the identification information corresponding to the correlated equipment to be projected and determining the characteristic information of the identification information;
and the generating unit is used for correspondingly storing the characteristic information of the identification information and the device description file of the device to be projected, which is associated with each other, and generating the corresponding relation between the characteristic information of the identification information and the device description file.
In one embodiment, the second execution unit includes:
the execution subunit is used for formatting the device description files corresponding to the at least two screen projection devices to obtain at least two formatted data;
the comparison subunit is used for comparing the tree structures of the formatted data and comparing the node values of the formatted data;
and the association subunit is used for determining the devices to be projected corresponding to the formatted data with consistent tree structures and consistent node values as the devices to be projected which are associated with each other.
In one embodiment, the second receiving unit 610 is further configured to receive identification information of at least two devices to be screened and a device description file, which are uploaded by the user terminal.
In one embodiment, the screen projection control device further includes:
a third execution unit, configured to determine priorities of at least two device description files;
a fourth sending unit, configured to send the priorities of at least two device description files to the user terminal.
The screen projection control method according to the embodiment of the present disclosure may be implemented by an electronic device, for example, an electronic device such as the user terminal 1 or the server 2 in fig. 16. The user terminal 1 or the server 2 according to the embodiment of the present disclosure is described below with reference to fig. 16. The user terminal 1 or the server 2 shown in fig. 16 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 16, the user terminal 1 or the server 2 is represented in the form of a general-purpose computing device. The components of the user terminal 1 or the server 2 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that can be executed by the processing unit 810 such that the processing unit 810 performs the steps according to various exemplary embodiments of the present invention described in the description part of the above exemplary methods of the present specification. For example, the processing unit 810 may perform the various steps as shown in fig. 2 or as shown in fig. 9.
The memory unit 820 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The user terminal 1 or server 2 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the user terminal 1 or server 2, and/or with any devices (e.g., router, modem, etc.) that enable the user terminal 1 or server 2 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the user terminal 1 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the user terminal 1 via a bus 830. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the user terminal 1 or the server 2, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer program medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method described in the above method embodiment section.
According to an embodiment of the present disclosure, there is also provided a program product for implementing the method in the above method embodiment, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (14)

1. A screen projection control method is characterized by comprising the following steps:
acquiring identification information of a device to be projected;
sending the identification information of the equipment to be projected to a server;
receiving a device description file from the server, wherein the device description file is determined by the server based on the identification information of the device to be screened and a corresponding relationship between the identification information and the device description file, and the corresponding relationship comprises: the method comprises the steps that a relation is established between characteristic information obtained by carrying out XOR comparison on equipment description files of the screen projection equipment which are mutually associated and identification information corresponding to the screen projection equipment which are mutually associated;
and controlling the equipment to be projected based on the equipment description file received from the server.
2. The method of claim 1, wherein the obtaining identification information of the device to be projected comprises:
sending a request for acquiring identification information to the equipment to be projected;
and receiving response information of the request for acquiring the identification information from the equipment to be screen-projected, and extracting the identification information of the equipment to be screen-projected from the response information.
3. The method of claim 1, further comprising, before obtaining identification information of a device to be projected:
sending an acquisition request for acquiring an equipment description file of the equipment to be screen-projected to the equipment to be screen-projected;
the acquiring of the identification information of the device to be projected comprises the following steps:
and if the equipment description file of the equipment to be screen-projected fails to be acquired, acquiring the identification information of the equipment to be screen-projected.
4. The method according to claim 3, wherein after sending an acquisition request for acquiring the device description file of the device to be screened to the device to be screened, the method further comprises:
monitoring response information of the equipment to be screen-thrown to the acquisition request within a preset time period after the acquisition request is sent;
if the device description file of the device to be screen-projected fed back by the device to be screen-projected according to the acquisition request is not monitored in the preset time period, failing to acquire the device description file of the device to be screen-projected.
5. The method according to claim 3, wherein after sending an acquisition request for acquiring the device description file of the device to be screened to the device to be screened, the method further comprises:
if the device description file of the device to be projected fed back by the device to be projected to the acquisition request is monitored within a preset time period after the acquisition request is sent, and the device description file can be identified, controlling the device to be projected according to the device description file fed back by the device to be projected.
6. The method of claim 5, further comprising:
if the equipment description file of the equipment to be screen-thrown, fed back by the equipment to be screen-thrown to the acquisition request, is monitored within a preset time period after the acquisition request is sent, and the equipment description file can be identified, uploading identification information of the equipment to be screen-thrown and the equipment description file fed back by the equipment to be screen-thrown to the server, so that the server establishes a corresponding relationship between the identification information and the equipment description file.
7. The method of claim 1, wherein if the device description file received from the server comprises at least two device description files, the controlling the device to be screen-cast based on the device description file received from the server comprises:
and controlling the equipment to be subjected to screen projection based on the equipment description file with the highest priority in the at least two equipment description files.
8. A screen projection control method is characterized by comprising the following steps:
acquiring identification information and equipment description files of at least two pieces of equipment to be projected;
determining the screen devices to be projected which are mutually associated according to the device description files of the at least two screen devices to be projected;
carrying out XOR comparison on the identification information corresponding to the mutually associated devices to be projected to obtain the characteristic information of the identification information;
correspondingly storing the characteristic information of the identification information and the device description file of the device to be projected which is associated with the characteristic information, and generating a corresponding relation between the characteristic information of the identification information and the device description file;
receiving identification information of a device to be projected, which is sent by a user terminal;
determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file;
and sending the device description file to the user terminal so that the user terminal controls the device to be projected on the screen based on the device description file.
9. The method according to claim 8, wherein the determining the screen to be projected devices associated with each other according to the device description files of the at least two screen to be projected devices comprises:
formatting the device description files corresponding to the at least two devices to be projected to obtain at least two pieces of formatted data;
comparing the structure of the formatted data and comparing the node values contained in the formatted data;
and determining the devices to be projected corresponding to the formatted data with consistent structures and consistent node values as the devices to be projected which are associated with each other.
10. The method of claim 8, wherein if there are at least two device description files sent to the user terminal, the method further comprises:
determining the priority of at least two device description files;
and sending the priorities of at least two device description files to the user terminal.
11. A screen projection control device, comprising:
the first acquisition unit is used for acquiring the identification information of the device to be projected;
a first sending unit, configured to send the identification information of the device to be screen-projected to a server
A first receiving unit, configured to receive a device description file from the server, where the device description file is determined by the server based on identification information of the device to be screened and a correspondence between the identification information and the device description file, and the correspondence includes: the method comprises the steps that a relation is established between characteristic information obtained by carrying out XOR comparison on equipment description files of the screen projection equipment which are mutually associated and identification information corresponding to the screen projection equipment which are mutually associated;
and the first control unit is used for controlling the equipment to be projected on the basis of the equipment description file received from the server.
12. A screen projection control device, comprising:
the fourth acquisition unit is used for acquiring the identification information and the equipment description files of at least two pieces of equipment to be projected;
the second execution unit is used for determining the mutually associated devices to be projected according to the device description files of the at least two devices to be projected;
the comparison unit is used for carrying out XOR comparison on the identification information corresponding to the correlated equipment to be projected and determining the characteristic information of the identification information;
the generating unit is used for correspondingly storing the characteristic information of the identification information and the device description file of the device to be projected, which are associated with each other, and generating the corresponding relation between the characteristic information of the identification information and the device description file;
the second receiving unit is used for receiving the identification information of the device to be projected, which is sent by the user terminal;
the execution unit is used for determining an equipment description file corresponding to the identification information of the equipment to be screen-projected according to the identification information of the equipment to be screen-projected and the corresponding relation between the identification information and the equipment description file;
and the second sending unit is used for sending the device description file to the user terminal so that the user terminal controls the device to be screened based on the device description file.
13. An electronic device, comprising:
a memory storing computer readable instructions;
a processor that reads computer readable instructions stored by the memory to perform the method of any of claims 1-7 or 8-10.
14. A computer program medium having computer readable instructions stored thereon which, when executed by a processor of a computer, cause the computer to perform the method of any of claims 1-7 or 8-10.
CN201910586666.2A 2019-07-01 2019-07-01 Screen projection control method and device, electronic equipment and computer program medium Active CN112188277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910586666.2A CN112188277B (en) 2019-07-01 2019-07-01 Screen projection control method and device, electronic equipment and computer program medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910586666.2A CN112188277B (en) 2019-07-01 2019-07-01 Screen projection control method and device, electronic equipment and computer program medium

Publications (2)

Publication Number Publication Date
CN112188277A CN112188277A (en) 2021-01-05
CN112188277B true CN112188277B (en) 2022-08-26

Family

ID=73915586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910586666.2A Active CN112188277B (en) 2019-07-01 2019-07-01 Screen projection control method and device, electronic equipment and computer program medium

Country Status (1)

Country Link
CN (1) CN112188277B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268216A (en) * 2021-06-15 2021-08-17 北京字跳网络技术有限公司 Screen projection control method and device and readable storage medium
CN113825000B (en) * 2021-09-18 2023-04-07 北京奇艺世纪科技有限公司 Screen projection method and device, electronic equipment and storage medium
CN114040233B (en) * 2021-11-04 2023-04-11 深圳小湃科技有限公司 Screen projection service adjusting method, equipment and storage medium
CN114064549A (en) * 2021-11-23 2022-02-18 上海闻泰电子科技有限公司 Method and device for converting device description information, computer device and medium
CN114827682A (en) * 2022-04-08 2022-07-29 北京字节跳动网络技术有限公司 Screen projection method, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399056A (en) * 2018-02-26 2018-08-14 上海康斐信息技术有限公司 It is a kind of wirelessly to throw screen method and wireless router
CN108810594A (en) * 2018-05-04 2018-11-13 新华三技术有限公司 Remote screen projection method, device and system
CN109408020A (en) * 2018-12-18 2019-03-01 锐捷网络股份有限公司 It is a kind of to realize the method and apparatus for throwing screen service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399056A (en) * 2018-02-26 2018-08-14 上海康斐信息技术有限公司 It is a kind of wirelessly to throw screen method and wireless router
CN108810594A (en) * 2018-05-04 2018-11-13 新华三技术有限公司 Remote screen projection method, device and system
CN109408020A (en) * 2018-12-18 2019-03-01 锐捷网络股份有限公司 It is a kind of to realize the method and apparatus for throwing screen service

Also Published As

Publication number Publication date
CN112188277A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN112188277B (en) Screen projection control method and device, electronic equipment and computer program medium
CN110784758B (en) Screen projection processing method and device, electronic equipment and computer program medium
US9620118B2 (en) Method and system for testing closed caption content of video assets
CN111309279B (en) Multi-screen interactive display method and device
JP6582100B2 (en) Method and apparatus for providing voice service
EP2282543A2 (en) Audio/video monitoring service using set-top boxes and application servers
US20140310741A1 (en) System for sharing data via cloud server and method thereof
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
CN110855680B (en) Internet of things equipment docking method and device
CN110177300B (en) Program running state monitoring method and device, electronic equipment and storage medium
CN109275042A (en) A kind of distribution method, device, terminal and the storage medium of barrage message
CN112492329B (en) Live broadcast method and device
CN105635200B (en) Information processing method, electronic equipment, server and system
CN114040232A (en) Screen projection system, method, electronic device and storage medium
AU2015272424A1 (en) Communication apparatus, communication system, communication management system, communication control method, and computer program product
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN114422618A (en) IOT platform protocol adaptation method, device, equipment and medium based on cloud protogenesis
CN108235111B (en) Information sharing method and intelligent set top box
CN111901695A (en) Video content interception method, device and equipment and computer storage medium
CN106992893A (en) The management method and device of router
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
WO2021012741A1 (en) Abnormal front-end operation reminder method based on experience library and related device
CN109948082B (en) Live broadcast information processing method and device, electronic equipment and storage medium
CN113626321B (en) Bridging test method, device, system and storage medium
CN115454576A (en) Virtual machine process management method and system and electronic equipment

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
GR01 Patent grant
GR01 Patent grant