CN110166823B - Screen projection method and related device - Google Patents

Screen projection method and related device Download PDF

Info

Publication number
CN110166823B
CN110166823B CN201910561895.9A CN201910561895A CN110166823B CN 110166823 B CN110166823 B CN 110166823B CN 201910561895 A CN201910561895 A CN 201910561895A CN 110166823 B CN110166823 B CN 110166823B
Authority
CN
China
Prior art keywords
screen projection
screen
target
protocol
end equipment
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
CN201910561895.9A
Other languages
Chinese (zh)
Other versions
CN110166823A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910561895.9A priority Critical patent/CN110166823B/en
Publication of CN110166823A publication Critical patent/CN110166823A/en
Application granted granted Critical
Publication of CN110166823B publication Critical patent/CN110166823B/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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

According to the screen projecting method and the related device, when the screen projecting end equipment fails to project the screen to the screen-projected end equipment, the screen-projected end equipment can obtain a screen-projecting failure message and send the screen-projecting failure message to the server. And the server analyzes the screen projection failure message to obtain target screen projection protocol information used by the screen projection end equipment, and returns the target screen projection protocol information to the screen projection end equipment. The screen projection end device takes the received target screen projection protocol information as a basis for sending screen projection contents to the screen projection end device, so that the screen projection end device can successfully analyze and display the screen projection contents. By the method, the screen projection device can dynamically adjust the screen projection basis according to the screen projection protocol used by the screen projection device, the screen projection range of the screen projection device is expanded, and the screen projection success rate is improved.

Description

Screen projection method and related device
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a screen projection method and a related device.
Background
With the rapid development of network technology and intelligent equipment, the screen projection technology is widely applied. The screen projection refers to projecting contents displayed by a screen projection end device (such as a smart phone, a tablet personal computer, or the like) onto a screen projection end device (such as a smart television, a computer, or a smart box, or the like) for display, so that a user can browse media files on the screen projection end device to realize conversion from a small screen to a large screen.
The screen projection function needs to match screen projection protocols between screen projection end equipment and screen projection end equipment, and television manufacturers and intelligent box manufacturers on the market are various at present, and the screen projection protocols used by different manufacturers are different. At present, a common device or application program providing a screen projection function generally provides only one common screen projection protocol to be compatible with most of screen projection end devices, and therefore, a screen projection failure phenomenon often occurs due to incompatibility of the screen projection end devices and the screen projection protocols used by the screen projection end devices.
Disclosure of Invention
In view of this, the present invention aims to provide a screen projection method and a related device, so as to solve the problem of screen projection failure caused by incompatibility of screen projection protocols, and the technical scheme disclosed by the present invention is as follows:
in a first aspect, the present invention provides a screen projection method, which is applied to a screen projection device, and the method includes:
acquiring a screen projection failure message after screen projection failure of the screen projection end equipment, wherein the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment;
sending the screen-casting failure message to a server so that the server analyzes the screen-casting failure message to obtain the target screen-casting protocol information;
and taking the target screen projection protocol information returned by the server as a basis for the screen projection end equipment to send screen projection content to the screen projection end equipment, so that the screen projection end equipment can successfully display the screen projection content.
In a possible implementation manner of the first aspect, taking the target screen-casting protocol information returned by the server as a basis for sending screen-casting content to the screen-cast terminal device by the screen-cast terminal device includes:
analyzing the target screen projection protocol information to obtain target protocol parameters;
and storing the target protocol parameters and the corresponding equipment identification of the screen-projected equipment.
In another possible implementation manner of the first aspect, the method further includes:
reading target protocol parameters associated with the screen-projected end equipment according to the equipment identification of the screen-projected end equipment;
converting the content to be screen-projected into target screen-projected content based on the target protocol parameter;
and sending the target screen projection content to the screen projection end equipment.
In another possible implementation manner of the first aspect, the taking the target screen projection protocol information returned by the server as a basis for the screen projection end device to send screen projection content to the screen projection end device includes:
analyzing the target screen projection protocol information to obtain the parameter type and the parameter value of the target protocol parameter;
and modifying the parameter value of the parameter with the same type as the parameter of the target protocol parameter in the screen projecting protocol of the screen projecting terminal equipment into the parameter value of the target protocol parameter to obtain the modified screen projecting protocol.
In yet another possible implementation manner of the first aspect, the method further includes:
and sending screen projection content to the screen projection end equipment according to the modified screen projection protocol.
In a second aspect, the present invention provides a screen projection method, which is applied in a server, and the method includes:
receiving a screen projection failure message sent by screen projection end equipment, wherein the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment;
analyzing the screen projection failure message to obtain the target screen projection protocol information;
and sending the target screen projection protocol information to the screen projection end equipment so that the screen projection end equipment uses the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment.
In a third aspect, the present invention further provides a screen projection apparatus, which is applied to a screen projection terminal device, and the apparatus includes:
the screen projection system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a screen projection failure message after screen projection failure of a device at a projected screen end, and the screen projection failure message carries target screen projection protocol information used by the device at the projected screen end;
the first sending module is used for sending the screen projection failure message to a server so that the server analyzes the screen projection failure message to obtain the target screen projection protocol information;
and the determining module is used for taking the target screen projection protocol information returned by the server as a basis for the screen projection end equipment to send screen projection content to the screen projection end equipment, so that the screen projection end equipment can successfully display the screen projection content.
In a possible implementation manner of the third aspect, the determining module is specifically configured to:
analyzing the target screen projection protocol information to obtain target protocol parameters;
and storing the target protocol parameters and the corresponding equipment identification of the screen-projected equipment.
In another possible implementation manner of the third aspect, the apparatus further includes:
the reading module is used for reading target protocol parameters associated with the screen-projected end equipment according to the equipment identification of the screen-projected end equipment;
the conversion module is used for converting the content to be screen-projected into target screen-projected content based on the target protocol parameters;
and the second sending module is used for sending the target screen projection content to the screen projection end equipment.
In another possible implementation manner of the third aspect, the determining module is specifically configured to:
analyzing the target screen projection protocol information to obtain the parameter type and the parameter value of the target protocol parameter;
and modifying the parameter value of the parameter with the same type as the parameter of the target protocol parameter in the screen projecting protocol of the screen projecting terminal equipment into the parameter value of the target protocol parameter to obtain the modified screen projecting protocol.
In another possible implementation manner of the third aspect, the apparatus further includes:
and the third sending module is used for sending the screen projection content to the screen projection end equipment according to the modified screen projection protocol.
In a fourth aspect, the present invention provides another screen projection apparatus, which is applied to a server, and includes:
the receiving module is used for receiving a screen projection failure message sent by screen projection end equipment, wherein the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment;
the analysis module is used for analyzing the screen projection failure message to obtain the target screen projection protocol information;
and the sending module is used for sending the target screen projection protocol information to the screen projection end equipment so that the screen projection end equipment uses the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment.
In a fifth aspect, the present invention further provides a screen projection device, which includes a memory and a processor;
the processor is used for executing the program in the memory;
the program stored in the memory is at least used to implement the screen projection method according to any one of the possible implementation manners of the first aspect.
In a sixth aspect, the present invention further provides a server, including a memory and a processor;
the processor is used for executing the program in the memory;
the program stored in the memory is at least used for realizing the screen projection method of the second aspect.
In a seventh aspect, the present invention further provides a storage medium, where a computer program is stored, and the computer program is loaded by a processor and executed to implement the screen projecting method according to any one of the possible implementation manners of the first aspect, or to implement the screen projecting method according to the second aspect.
According to the screen projection method provided by the invention, when the screen projection end equipment fails to project the screen to the screen-projected end equipment, the screen-projected end equipment can obtain a screen projection failure message and send the screen projection failure message to the server. And the server analyzes the screen projection failure message to obtain target screen projection protocol information used by the screen projection end equipment, and returns the target screen projection protocol information to the screen projection end equipment. The screen projection end device takes the received target screen projection protocol information as a basis for sending screen projection contents to the screen projection end device, so that the screen projection end device can successfully analyze and display the screen projection contents. By the method, the screen projection device can dynamically adjust the screen projection basis according to the screen projection protocol used by the screen projection device, the screen projection range of the screen projection device is expanded, and the screen projection success rate is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a screen projection system provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a screen projection method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a process for storing target screen projection protocol information according to an embodiment of the present invention;
FIG. 4 is a flowchart of a process for modifying a screen projection protocol according to target screen projection protocol information according to an embodiment of the present invention;
FIG. 5 is a flowchart of another screen projection method provided by an embodiment of the present invention;
FIG. 6 is a flowchart of another screen projection method provided by an embodiment of the present invention;
fig. 7 is a block diagram of a screen projection device according to an embodiment of the present invention;
FIG. 8 is a block diagram of another screen projection device provided by an embodiment of the present invention;
FIG. 9 is a block diagram of another screen projection device provided by an embodiment of the present invention;
fig. 10 is a block diagram of another screen projection device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic structural diagram of a screen projection system provided by an embodiment of the present invention is shown, where the system includes a screen projection end device 1 and a screen-projected end device 2.
For example, the screen projection terminal device 1 is generally a user terminal device with a smaller display screen size, such as a smart phone and a tablet computer; the device 2 to be projected is usually a smart tv, a personal computer, or a smart box, which can display the display content on the device at the projection end with a larger display screen.
The screen projection protocol used by the screen projection end equipment 1 and the screen projection end equipment 2 is compatible with each other, and the screen projection can be successful; the screen projection protocol is compatible with each other, namely the screen projection end equipment 2 can successfully analyze the message sent by the screen projection end equipment 1; and the screen projection end device 1 can successfully analyze the message sent by the screen projection end device 2.
Referring to fig. 2, a flowchart of a screen projection method provided by an embodiment of the present invention is shown, where the method is applied to the screen projection device shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
and S110, acquiring a screen projection failure message.
If the media files projected to the screen-projected end equipment by the screen-projected end equipment cannot be displayed due to the incompatibility of the screen-projected protocols, the screen projection is failed.
In an application scenario, a screen projection failure message is generated by a screen projection end device and is sent to the screen projection end device. And in the scene, the screen-projected end equipment generates a corresponding screen-projection failure message according to the error code defined by the screen-projection protocol and returns the screen-projected end equipment.
For example, a certain screen-projected end device only supports a video file in an MP4 format, and when the screen-projected end device sends a video resource address in an m3u8 format to the screen-projected end device, and after the screen-projected end device requests a corresponding video resource from the video resource server according to the video resource address, because the screen-projected end device does not support the video resource in the m3u8 format, at this time, the screen-projected end device generates a corresponding screen-projection failure message according to an error code corresponding to the condition defined by the screen-projection protocol, and returns the screen-projected end device.
In another application scenario, the screen-projection failure message is generated by the screen-projection end device according to the error information (such as an error code) returned by the screen-projection end device. For example, after receiving the error code returned by the screen-projected device, the screen-projected device generates a corresponding screen-projection failure message according to the definition of the error code in the screen-projection protocol used by the screen-projected device.
And S120, sending the screen projection failure message to the server, so that the server obtains the target screen projection protocol information used by the screen projection end equipment with screen projection failure according to the screen projection failure message.
The screen projection end equipment obtains a screen projection failure message and then sends the screen projection failure message to the server end, and the server end obtains parameter information of a target screen projection protocol used by the screen projection object (namely the screen projection end equipment) according to the screen projection failure message and sends the parameter information to the screen projection end equipment sending the screen projection failure message.
The server side can be a service side which can enable the screen projection side equipment to project the screen to the screen projection side equipment. For example, the screen projection end device and/or the screen projected end device is screen projection software installed for implementing screen projection operation, and the service end in this text is a background service end of the screen projection software.
And S130, receiving target screen projection protocol information sent by the server, and taking the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment.
And the screen projection terminal equipment receives target screen projection protocol information sent by the service terminal through a wireless network such as a WiFi network. And taking the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment. Namely, the screen projection end equipment sends screen projection content to the screen projection end equipment according to the target screen projection protocol information.
In an application scenario of the present invention, the same screen projection terminal may perform the screen projection requirements on different screen projection terminal devices at different times.
In order to achieve the purpose, the screen projection end device receives target screen projection protocol information sent by the server end, stores the target screen projection protocol information into the screen projection end device, reads the target screen projection protocol information corresponding to the screen projection end device from the screen projection end device when the screen is projected to the screen projection end device again, and sends screen projection content to the screen projection end device according to the target screen projection protocol information.
In the method, the screen projection protocol content in the screen projection end equipment does not need to be modified, and the screen projection end equipment only needs to acquire the target protocol parameter matched with the currently projected screen end equipment, so that the screen projection end equipment can adapt to any one projected screen equipment.
The following describes, with reference to fig. 3, a process of storing, by the screen projection device, target screen projection protocol information issued by the server:
s1311, analyzing the target screen projection protocol information to obtain target protocol parameters.
After receiving the target screen-casting protocol information returned by the server, the screen-casting end equipment analyzes the target screen-casting protocol information to obtain the protocol parameters carried in the target screen-casting protocol information, namely the target protocol parameters.
For example, the target screen-casting protocol information issued by the server indicates that the screen-casting device only supports the video file format of the MP4 format, and in this case, the screen-casting device analyzes the target screen-casting protocol information to obtain a target protocol parameter of MP 4.
And S1312, storing the target protocol parameters and the corresponding equipment identification of the screen-projected equipment.
In a possible implementation manner of the present invention, the key-value may be stored in a key-value manner, for example, the key value is a device identifier of the screen-projected device, and the corresponding value is a target protocol parameter.
In another possible implementation manner of the present invention, the storage may be performed in a table manner, for example, one column is a device identifier of the screen-projected device, and the other column is the target protocol parameter, where the mapping relationship is embodied in that the device identifier of the screen-projected device having the mapping relationship is stored in the same row as the target protocol parameter.
In another application scenario of the present invention, the screen-projected device of the screen-projecting device does not change basically, for example, the screen-projecting device is only used at home, and in such a scenario, after receiving the target screen-projecting protocol information returned by the server, the screen-projecting device directly modifies the protocol content of the screen-projecting protocol used by the screen-projecting device according to the target screen-projecting protocol information. As shown in fig. 4, the process of modifying the screen-casting protocol by the screen-casting device according to the target screen-casting protocol information is as follows:
s1321, analyzing the target screen projection protocol information to obtain the parameter type and the parameter value of the target protocol parameter.
After receiving the target screen projection protocol information issued by the server, the screen projection end equipment analyzes the target screen projection protocol information to obtain a target protocol parameter used by the screen projection end equipment, and further obtains the parameter type and the parameter value of the target protocol parameter.
S1322, modifying the parameter value of the parameter with the same type as the parameter in the screen projecting protocol of the screen projecting end equipment into the parameter value of the target protocol parameter to obtain the modified screen projecting protocol.
And the screen projection end equipment modifies the parameter value of the parameter with the same type as the target protocol parameter in the screen projection protocol used by the equipment into the parameter value of the target protocol parameter to obtain the modified screen projection protocol.
For example, after the screen projection end device obtains the target protocol parameter, the class including the target protocol parameter in the screen projection protocol is modified, that is, the parameter value in the class including the protocol parameter in the screen projection protocol of the screen projection end device is directly replaced by the parameter value of the target protocol parameter, so as to obtain the modified screen projection protocol.
The screen projection end device can project the screen to the screen projection end device according to the modified screen projection protocol, namely, the screen projection content which accords with the modified screen projection protocol is sent to the screen projection end device.
In the method, the screen projection end equipment directly modifies the screen projection protocol used by the screen projection end equipment, and the method is suitable for the scene that the screen projection end equipment basically does not change.
According to the screen projecting method provided by the invention, the screen projecting end equipment can acquire the target screen projecting protocol information used by the screen projecting end equipment from the server end, and dynamically adjust the basis for projecting the screen to the screen projecting end equipment according to the target screen projecting protocol information, so that the screen projecting range of the screen projecting end equipment is expanded, and the screen projecting success rate is improved.
Referring to fig. 5, a flowchart of another screen projection method provided in the embodiment of the present invention is shown, where the method will focus on a process in which a screen projection end device sends screen projection content to a screen-projected end device by using a stored target screen projection protocol parameter. As shown in fig. 5, the method may include the steps of:
and S210, the screen projection end device reads the target protocol parameters associated with the screen projection end device according to the device identification of the screen projection end device.
In an application scenario of the present invention, after the screen projection end device fails to project a screen to the screen-projected end device, the communication connection between the screen-projected end device and the screen-projected end device is not disconnected.
In another application scenario of the present invention, after the screen projection end device fails to project a screen to the screen projection end device, the communication connection between the screen projection end device and the screen projection end device is disconnected, and in this case, the screen projection end device needs to first determine whether the target protocol parameter of the screen projection end device is stored.
In an embodiment of the present invention, a device list is stored in the screen-projection-end device, and all devices in the device list are device identifiers of the screen-projection-end device, in which corresponding target protocol parameters are stored in the screen-projection-end device.
After the connection between the screen projection end equipment and the screen projection end equipment is established, the screen projection end equipment can search whether the equipment list contains the equipment identification of the screen projection end equipment or not; and if so, continuously reading the target protocol parameters associated with the screen-projected end equipment according to the mapping relation between the equipment identification of the screen-projected end equipment and the target protocol parameters.
For example, the device identifier of the screen-projected device and the corresponding target protocol parameter stored in a key-value manner are searched for a value of the device identifier of the screen-projected device, and data in the value, that is, the target protocol parameter, is read.
And S220, the screen projection end equipment acquires the content to be projected.
The content to be displayed can be specifically the content to be displayed, or can also be a source file address corresponding to the content to be displayed, and the device at the screen-projected end acquires and displays the corresponding content according to the source file region.
And S230, converting the content to be screen-projected into target screen-projected content based on the target protocol parameter.
And for the condition that the content to be subjected to screen projection is the content to be displayed, converting the content to be subjected to screen projection into target screen projection content meeting the parameter requirements of a target protocol.
And sending the source file address of the content to be projected meeting the requirement of the target protocol parameters to the screen-projected end equipment under the condition that the content to be projected is the source file address, so that the screen-projected end equipment can obtain corresponding target screen-projected content according to the source file address.
For example, it is determined that the screen-projected device only supports the video file format of MP4 format according to the target protocol parameters, the screen-projected device sends the source file address of the video file of MP4 format to the screen-projected device, so that the screen-projected device obtains the corresponding video file according to the source file address and plays the video file on the screen-projected device.
And S240, sending the target screen projection content to the screen projection end equipment.
And the screen projection end equipment sends the target screen projection content to the screen projection end equipment so that the screen projection end equipment can successfully display the target screen projection content.
In the screen projection method provided by this embodiment, when the screen projection end device projects a screen to the screen-projected end device, the target protocol parameter corresponding to the screen-projected end device is read from the screen-projected end device. And converting the content to be screen-projected into target screen-projected content according to the target protocol parameters, and sending the target screen-projected content to the screen-projected end equipment, so that the screen-projected end equipment successfully projects a screen to the screen-projected end equipment, and the screen-projected success rate of the screen-projected end equipment is improved.
Referring to fig. 6, a signaling flowchart of a screen projection system according to an embodiment of the present invention is shown, where the screen projection system includes a screen projection device, a screen-projected device, and a server. As shown in fig. 6, the method may include the steps of:
and S310, the screen projection end equipment acquires the screen projection failure message and sends the screen projection failure message to the server end.
After the screen projection end equipment fails to project the screen to the projected screen end equipment, the screen projection end equipment obtains screen projection failure information and sends the screen projection failure information to the server.
And the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment.
And S320, the server analyzes the screen projection failure message to obtain target screen projection protocol information.
The server analyzes the screen projection failure message to obtain screen projection protocol information used by the screen projection end device which fails in screen projection this time, that is, target screen projection protocol information, for example, the target screen projection protocol information may include a media file format, a video source address and the like supported by the screen projection end device.
S330, the server side sends the target screen projection protocol information to screen projection side equipment which sends screen projection failure information.
The server side sends the analyzed target screen projection protocol information to screen projection side equipment which sends the screen projection failure message; after receiving the target screen projection protocol information, the screen projection end equipment sends screen projection content to the screen projection end equipment according to the target screen projection protocol information when the screen is projected to the screen projection end equipment again.
In an embodiment of the present invention, a screen projection failure message sent by a screen projection terminal device carries a device identifier of the screen projection terminal device, for example, a unique device identifier of the screen projection terminal device, for example, an International Mobile Equipment Identity (IMEI) of a smart phone. And sending the target screen projection protocol information to the screen projection end equipment corresponding to the equipment identification.
Specifically, the server analyzes the received screen projection failure message to obtain a device identifier of the screen projection device which sends the screen projection failure message; and then, sending target screen projection protocol information to the screen projection end equipment corresponding to the equipment identification.
And S340, the screen projection end equipment sends screen projection content to the screen projection end equipment according to the target screen projection protocol information returned by the server.
According to the screen projection method provided by the embodiment, when screen projection of the screen projection end device to the screen projection end device fails, a corresponding screen projection failure message is obtained and sent to the server. And the server analyzes the screen projection failure message to obtain target screen projection protocol information used by the screen projection end equipment for the screen projection, and returns the target screen projection protocol information to the screen projection end equipment. And the screen projection end equipment communicates with the screen projection end equipment according to the received target screen projection protocol information to realize screen projection. Therefore, the screen projection end equipment can communicate with the screen projection end equipment according to the screen projection protocol used by the screen projection end equipment, the screen projection range of the screen projection end equipment is expanded, and the screen projection success rate is improved.
In another aspect, the present invention provides an embodiment of a screen projection apparatus, which is applied to a screen projection device, as shown in fig. 7, and includes: an acquisition module 110, a first sending module 120 and a determination module 130.
The obtaining module 110 is configured to obtain a screen-projection failure message after a screen projection failure of the device at the screen-projected end.
And the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment.
In an application scenario, a screen projection failure message is generated by a screen projection end device and is sent to the screen projection end device. And in the scene, the screen-projected end equipment generates a corresponding screen-projection failure message according to the error code defined by the screen-projection protocol and returns the screen-projected end equipment.
In another application scenario, the screen-projection failure message is generated by the screen-projection end device according to the error information (such as an error code) returned by the screen-projection end device. For example, after receiving the error code returned by the screen-projected device, the screen-projected device generates a corresponding screen-projection failure message according to the definition of the error code in the screen-projection protocol used by the screen-projected device.
The first sending module 120 is configured to send a screen-casting failure message to the server, so that the server analyzes the screen-casting failure message to obtain target screen-casting protocol information.
The screen projection end equipment obtains a screen projection failure message and then sends the screen projection failure message to the server end, and the server end obtains parameter information of a target screen projection protocol used by the screen projection object (namely the screen projection end equipment) according to the screen projection failure message and sends the parameter information to the screen projection end equipment sending the screen projection failure message.
The determining module 130 is configured to use the target screen-casting protocol information returned by the server as a basis for the screen-casting-end device to send the screen-casting content to the screen-cast-end device, so that the screen-cast-end device successfully displays the screen-casting content.
In an application scenario of the invention, the same screen projection terminal may perform screen projection requirements on different screen projection terminal devices at different times.
In order to achieve the purpose, the screen projection end device receives target screen projection protocol information sent by the server end, stores the target screen projection protocol information into the screen projection end device, reads the target screen projection protocol information corresponding to the screen projection end device from the screen projection end device when the screen is projected to the screen projection end device again, and sends screen projection content to the screen projection end device according to the target screen projection protocol information.
The process that the screen projection end equipment stores the target screen projection protocol information issued by the server end comprises the following steps: and analyzing the target screen projection protocol information to obtain target protocol parameters, and storing the target protocol parameters and the corresponding equipment identification of the screen projection end equipment.
In this application scenario, as shown in fig. 8, the screen projection apparatus further includes: a reading module 210, a converting module 220 and a second transmitting module 230.
The reading module 210 is configured to read a target protocol parameter associated with the screen-projected device according to the device identifier of the screen-projected device.
And a conversion module 220, configured to convert the content to be screen-projected into the target screen-projected content based on the target protocol parameter.
And a second sending module 230, configured to send the target screen projection content to the screen-projected device.
In another application scenario of the present invention, the screen-projected device that projects the screen by the screen-projecting device does not change substantially, for example, the screen-projecting function is only used at home. In the scene, after receiving target screen-casting protocol information returned by the server, the screen-casting device directly modifies the protocol content of the screen-casting protocol used by the screen-casting device according to the target screen-casting protocol information.
The process that the screen projection end equipment modifies the screen projection protocol according to the target screen projection protocol information comprises the following steps: analyzing the target screen projection protocol information to obtain the parameter type and the parameter value of the target protocol parameter; and modifying the parameter value of the parameter with the same type as the parameter of the target protocol parameter in the screen projecting protocol of the screen projecting terminal equipment into the parameter value of the target protocol parameter to obtain the modified screen projecting protocol.
In this application scenario, as shown in fig. 9, the apparatus further includes a third sending module 310.
A third sending module 310, configured to send the screen-projecting content to the screen-projecting end device according to the modified screen-projecting protocol.
According to the screen projecting device provided by the invention, the screen projecting end equipment can acquire the target screen projecting protocol information used by the screen projecting end from the server end, and dynamically adjust the basis for projecting the screen to the screen projecting end equipment according to the target screen projecting protocol information, so that the screen projecting range of the screen projecting end equipment is expanded, and the screen projecting success rate is improved.
In still another aspect, the present invention further provides a screen projection apparatus applied in a server, as shown in fig. 10, the apparatus including: a receiving module 410, a parsing module 420, and a sending module 430.
The receiving module 410 is configured to receive a screen projection failure message sent by a screen projection end device, where the screen projection failure message carries target screen projection protocol information used by the screen projection end device.
And the analysis module 420 is configured to analyze the screen-casting failure message to obtain target screen-casting protocol information.
The sending module 430 is configured to send the target screen-casting protocol information to the screen-casting end device, so that the screen-casting end device uses the target screen-casting protocol information as a basis for sending screen-casting content to the screen-casting end device.
The screen projection device provided by this embodiment receives a screen projection failure message sent by a screen projection terminal device, analyzes the screen projection failure message to obtain target screen projection protocol information used by the screen projection terminal device which is projecting the screen at this time, and returns the target screen projection protocol information to the screen projection terminal device. And the screen projection end equipment communicates with the screen projection end equipment according to the received target screen projection protocol information to realize screen projection. Therefore, the screen projection end equipment can communicate with the screen projection end equipment according to the screen projection protocol used by the screen projection end equipment, the screen projection range of the screen projection end equipment is expanded, and the screen projection success rate is improved.
In another aspect, the invention further provides a screen projection device, which includes a memory and a processor;
the processor is used for executing the program in the memory; the program stored in the memory is at least used for realizing the method steps of the screen projection end device in any one of the screen projection method embodiments.
On the other hand, the invention also provides screen projection end equipment which comprises a memory and a processor;
the processor is used for executing the program in the memory; the program stored in the memory is at least used for realizing the method steps of the screen-projected terminal device in any one of the screen-projecting method embodiments.
In still another aspect, the present invention further provides a storage medium, in which a computer program is stored, and the computer program is loaded by a processor and executed to implement the screen projection method provided in any one of the above embodiments.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The steps in the method of the embodiments of the present application may be sequentially adjusted, combined, and deleted according to actual needs.
The device and the modules and sub-modules in the terminal in the embodiments of the present application can be combined, divided and deleted according to actual needs.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of a module or a sub-module is only one logical division, and there may be other divisions when the terminal is actually implemented, for example, a plurality of sub-modules or modules may be combined or integrated into another module, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules or sub-modules described as separate parts may or may not be physically separate, and parts that are modules or sub-modules may or may not be physical modules or sub-modules, may be located in one place, or may be distributed over a plurality of network modules or sub-modules. Some or all of the modules or sub-modules can be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional module or sub-module in the embodiments of the present application may be integrated into one processing module, or each module or sub-module may exist alone physically, or two or more modules or sub-modules may be integrated into one module. The integrated modules or sub-modules may be implemented in the form of hardware, or may be implemented in the form of software functional modules or sub-modules.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A screen projection method is applied to screen projection equipment, and comprises the following steps:
acquiring a screen projection failure message after screen projection failure of the equipment at the screen projection end, wherein the screen projection failure message carries target screen projection protocol information used by the equipment at the screen projection end when the screen projection protocol of the equipment at the screen projection end is incompatible with the screen projection protocol of the equipment at the screen projection end to cause screen projection failure;
sending the screen-casting failure message to a server so that the server analyzes the screen-casting failure message to obtain the target screen-casting protocol information;
and taking the target screen projection protocol information returned by the server as a basis for the screen projection end equipment to send screen projection content to the screen projection end equipment, so that the screen projection end equipment can successfully display the screen projection content.
2. The method of claim 1, wherein the taking the target screen-casting protocol information returned by the server as a basis for the screen-casting-end device to send screen-casting content to the screen-cast-end device comprises:
analyzing the target screen projection protocol information to obtain target protocol parameters;
and storing the target protocol parameters and the corresponding equipment identification of the screen-projected equipment.
3. The method of claim 2, further comprising:
reading target protocol parameters associated with the screen-projected end equipment according to the equipment identification of the screen-projected end equipment;
converting the content to be screen-projected into target screen-projected content based on the target protocol parameter;
and sending the target screen projection content to the screen projection end equipment.
4. The method according to claim 1, wherein the taking the target screen-casting protocol information returned by the server as a basis for the screen-casting-end device to send screen-casting content to the screen-cast-end device comprises:
analyzing the target screen projection protocol information to obtain the parameter type and the parameter value of the target protocol parameter;
and modifying the parameter value of the parameter with the same type as the parameter of the target protocol parameter in the screen projecting protocol of the screen projecting terminal equipment into the parameter value of the target protocol parameter to obtain the modified screen projecting protocol.
5. The method of claim 4, further comprising:
and sending screen projection content to the screen projection end equipment according to the modified screen projection protocol.
6. A screen projection method is applied to a server and comprises the following steps:
receiving a screen projection failure message sent by screen projection end equipment, wherein when the screen projection protocol of the screen projection end equipment is incompatible with the screen projection protocol of the screen projection end equipment to cause screen projection failure, the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment;
analyzing the screen projection failure message to obtain the target screen projection protocol information;
and sending the target screen projection protocol information to the screen projection end equipment so that the screen projection end equipment uses the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment.
7. A screen projection device is applied to screen projection end equipment, and comprises:
the screen projection failure information carrying device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring screen projection failure information after screen projection failure of the screen projection end device, and when the screen projection failure is caused by incompatibility of a screen projection protocol of the screen projection end device and a screen projection protocol of the screen projection end device, the screen projection failure information carries target screen projection protocol information used by the screen projection end device;
the first sending module is used for sending the screen projection failure message to a server so that the server analyzes the screen projection failure message to obtain the target screen projection protocol information;
and the determining module is used for taking the target screen projection protocol information returned by the server as a basis for the screen projection end equipment to send screen projection content to the screen projection end equipment, so that the screen projection end equipment can successfully display the screen projection content.
8. A screen projection device is applied to a server and comprises:
the receiving module is used for receiving a screen projection failure message sent by screen projection end equipment, and when the screen projection protocol of the screen projection end equipment is incompatible with the screen projection protocol of the screen projection end equipment to cause screen projection failure, the screen projection failure message carries target screen projection protocol information used by the screen projection end equipment;
the analysis module is used for analyzing the screen projection failure message to obtain the target screen projection protocol information;
and the sending module is used for sending the target screen projection protocol information to the screen projection end equipment so that the screen projection end equipment uses the target screen projection protocol information as a basis for sending screen projection contents to the screen projection end equipment by the screen projection end equipment.
9. A screen projection terminal device is characterized by comprising a memory and a processor;
the processor is used for executing the program in the memory;
the program stored in the memory is used at least for implementing the screen projection method of any one of claims 1 to 5.
10. A server, comprising a memory and a processor;
the processor is used for executing the program in the memory;
the program stored in the memory is used at least for realizing the screen projection method of claim 6.
CN201910561895.9A 2019-06-26 2019-06-26 Screen projection method and related device Active CN110166823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910561895.9A CN110166823B (en) 2019-06-26 2019-06-26 Screen projection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910561895.9A CN110166823B (en) 2019-06-26 2019-06-26 Screen projection method and related device

Publications (2)

Publication Number Publication Date
CN110166823A CN110166823A (en) 2019-08-23
CN110166823B true CN110166823B (en) 2021-11-23

Family

ID=67627004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910561895.9A Active CN110166823B (en) 2019-06-26 2019-06-26 Screen projection method and related device

Country Status (1)

Country Link
CN (1) CN110166823B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165520B (en) * 2020-09-24 2022-06-07 茂佳科技(广东)有限公司 Screen projection control method, screen projection receiving end and storage medium
CN114040233B (en) * 2021-11-04 2023-04-11 深圳小湃科技有限公司 Screen projection service adjusting method, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658111A (en) * 2017-01-04 2017-05-10 北京竞业达数码科技有限公司 Screen projection method and device
US9807461B1 (en) * 2016-05-30 2017-10-31 Nanning Fugui Precision Industrial Co., Ltd. Communication method, mobile terminal
CN108391161A (en) * 2018-02-06 2018-08-10 苏州必捷网络有限公司 A kind of cross-platform wireless throwing screen method
CN108399056A (en) * 2018-02-26 2018-08-14 上海康斐信息技术有限公司 It is a kind of wirelessly to throw screen method and wireless router
CN108695999A (en) * 2017-04-07 2018-10-23 Oppo广东移动通信有限公司 Data throw screen method, apparatus, storage medium and electronic equipment
CN108920937A (en) * 2018-07-03 2018-11-30 广州视源电子科技股份有限公司 It throws screen system, throw screen method and apparatus
CN109451345A (en) * 2018-11-05 2019-03-08 四川长虹电器股份有限公司 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457364B (en) * 2010-10-22 2016-08-03 中兴通讯股份有限公司 The indicating means of a kind of wireless relay system mistake and receiving base station
CN102833782A (en) * 2012-08-23 2012-12-19 中兴通讯股份有限公司 Method, device and system for acquiring error code information
CN105302752B (en) * 2015-10-20 2019-02-15 北京小鸟听听科技有限公司 A kind of connection method of audio frequency apparatus, audio playing apparatus
JP6631181B2 (en) * 2015-11-13 2020-01-15 セイコーエプソン株式会社 Image projection system, projector, and method of controlling image projection system
CN108736981A (en) * 2017-04-19 2018-11-02 阿里巴巴集团控股有限公司 It is a kind of wirelessly to throw screen method, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9807461B1 (en) * 2016-05-30 2017-10-31 Nanning Fugui Precision Industrial Co., Ltd. Communication method, mobile terminal
CN106658111A (en) * 2017-01-04 2017-05-10 北京竞业达数码科技有限公司 Screen projection method and device
CN108695999A (en) * 2017-04-07 2018-10-23 Oppo广东移动通信有限公司 Data throw screen method, apparatus, storage medium and electronic equipment
CN108391161A (en) * 2018-02-06 2018-08-10 苏州必捷网络有限公司 A kind of cross-platform wireless throwing screen method
CN108399056A (en) * 2018-02-26 2018-08-14 上海康斐信息技术有限公司 It is a kind of wirelessly to throw screen method and wireless router
CN108920937A (en) * 2018-07-03 2018-11-30 广州视源电子科技股份有限公司 It throws screen system, throw screen method and apparatus
CN109451345A (en) * 2018-11-05 2019-03-08 四川长虹电器股份有限公司 A kind of method that DLNA throws screen authority managing and controlling in Android intelligent television

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android手机投屏;快感的感知;《https://www.jianshu.com/p/bc8a7ecfd083》;20180425;全文 *

Also Published As

Publication number Publication date
CN110166823A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN108933948B (en) Video playing progress synchronization method and device
US8776105B2 (en) Method and system for automatic content recognition protocols
CN112073758B (en) Cloud desktop screen projection method and device, computer equipment, computer readable storage medium and cloud desktop screen projection interaction system
US8966547B2 (en) Seamless service information providing scheme
CN104756080A (en) Augmenting capabilities of a host device
US20160164970A1 (en) Application Synchronization Method, Application Server and Terminal
CN113438527A (en) Video screen projection method, device, equipment and storage medium
US20150058452A1 (en) Video loading method, device and system of mobile terminal
CN112135186B (en) Screen projection method, device, equipment and storage medium based on small program
JP2017539103A (en) Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses
CN110166823B (en) Screen projection method and related device
CN104918105A (en) Media file multi-screen playing method, device and system
JP2017535124A (en) Method and apparatus for providing information associated with media content
WO2013152729A1 (en) Method and apparatus for providing software for terminal device
CN110390641B (en) Image desensitizing method, electronic device and storage medium
CN111159269B (en) Data processing method, device and system
WO2023020187A1 (en) Data obtaining methods and apparatuses, electronic device and storage medium
CN111859127A (en) Subscription method and device of consumption data and storage medium
CN110225395B (en) Program content display method, set top box terminal and program management system
CN104639976A (en) Method for synchronizing programs of set top box and mobile terminal, set top box and mobile terminal
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN107241619B (en) Media asset content synchronization method and device
CN108268486B (en) Multimedia content association and playing method and device, and terminal
EP4180942A1 (en) Screen projection method and apparatus, electronic device, and computer readable storage medium
CN107786420B (en) Message revocation method, message revocation server and user 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