CN113438527A - Video screen projection method, device, equipment and storage medium - Google Patents
Video screen projection method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113438527A CN113438527A CN202110711720.9A CN202110711720A CN113438527A CN 113438527 A CN113438527 A CN 113438527A CN 202110711720 A CN202110711720 A CN 202110711720A CN 113438527 A CN113438527 A CN 113438527A
- Authority
- CN
- China
- Prior art keywords
- screen
- screen projection
- video
- equipment
- dlna
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000004044 response Effects 0.000 claims description 52
- 238000004891 communication Methods 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 7
- 238000005266 casting Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 101000826116 Homo sapiens Single-stranded DNA-binding protein 3 Proteins 0.000 description 2
- 102100023008 Single-stranded DNA-binding protein 3 Human genes 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Projection Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
- Transforming Electric Information Into Light Information (AREA)
Abstract
The application discloses a video screen projection method, a video screen projection device, video screen projection equipment and a storage medium. The method comprises the following steps: equipment discovery is carried out according to a Digital Living Network Alliance (DLNA) protocol to obtain equipment information of candidate screen projection equipment; according to the device information of the candidate screen projection device, determining the screen projection device matched with the target device information, wherein the target device information comprises the screen projection device information acquired by the screen projection device, and the screen projection device establishes mirror image connection with the screen projection device; and establishing DLNA connection with the screen projected equipment, and sending a video instruction message to the screen projected equipment based on the DLNA connection, wherein the screen projected equipment is used for playing video according to the video instruction message after the mirror image connection is disconnected. The mirror image screen projection is converted into the DLNA screen projection, the problems that the mirror image is lost, the frame is lost, the definition is not high, black edges exist and the like are solved, meanwhile, the operation of a user on screen projection equipment can not be influenced, and the user experience is improved.
Description
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a video screen projection method, apparatus, device, and storage medium.
Background
With the rapid development of computer technology, the mobile phone can display the whole screen of the mobile phone on a large screen in a mirror image mode. The mirror image is a multi-screen interaction function module carried by the projection equipment such as a mobile phone, a computer and the like, and the whole screen of the projection equipment can be displayed on a large screen of the projection equipment in a mirror image mode, for example, a main interface of the mobile phone can be displayed on a large screen of a television through the mirror image.
At present, a mirror image is limited by network, bandwidth and other influences, and the problems of frame loss, screen blurring, low definition, black edges and the like often occur in a video displayed on a large screen; and the mirror image is to synchronize the picture on the mobile phone or the tablet to the large screen, so the mobile phone or the tablet can not exit the video being played and the like, once the mobile phone exits to push out the video being played, the picture on the large screen device can also disappear, the operation on the mobile phone of the user is influenced, and the user experience is reduced.
Disclosure of Invention
An object of the embodiments of the present application is to provide a video projection method, apparatus, device and storage medium, so as to solve the problems of low definition of the image, black edge and the like.
In view of the above technical problems, the present application is implemented by the following technical solutions:
in a first aspect of the present application, there is provided a video screen projection method, applied to a screen projection device, including: equipment discovery is carried out according to a Digital Living Network Alliance (DLNA) protocol to obtain equipment information of candidate screen projection equipment; determining the screen projected equipment matched with target equipment information according to the equipment information of the candidate screen projected equipment, wherein the target equipment information comprises the screen projected equipment information acquired by the screen projected equipment, and the screen projected equipment establishes mirror image connection with the screen projected equipment; and establishing DLNA connection with the screen projected equipment, and sending a video instruction message to the screen projected equipment based on the DLNA connection, wherein the screen projected equipment is used for playing video according to the video instruction message after the mirror image connection is disconnected.
The screen projection operation is performed according to a Digital Living Network Alliance (DLNA) protocol so as to convert the mirror image screen projection corresponding to the screen projected device into a DLNA screen projection, and the method comprises the following steps: establishing DLNA connection with the screen projected equipment; and sending a push sheet instruction through the DLNA connection, wherein the push sheet instruction carries the video address information of the screen projection equipment, and the screen projection equipment is used for playing the video corresponding to the video address information.
The establishing of the DLNA connection with the screen projected device and the sending of the video instruction message to the screen projected device based on the DLNA connection comprise: sending a DLNA connection request message to the screen projected equipment; after receiving a DLNA connection response message, establishing the DLNA connection according to the DLNA connection response message, wherein the DLNA connection response message is a message sent by the screen thrown device; and sending the video instruction message to the screen thrown device through the DLNA connection, wherein the video instruction message comprises a push sheet instruction and a video playing instruction, the push sheet instruction carries video address information, the video playing instruction carries a video playing time point, and the screen thrown device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
The DLNA connection request message is used to trigger the screen-dropped device to disconnect the mirror connection, and the DLNA connection response message is specifically a message sent by the screen-dropped device after disconnecting the mirror connection.
Wherein, after the DLNA connection is established according to the DLNA connection response message, further comprising: receiving a screen projection success message sent by the screen projection equipment; and disconnecting the mirror image connection through a system interface of the screen projection equipment aiming at the screen projection success message.
Wherein, the video screen projection method further comprises: calling a system interface of the screen projection equipment; acquiring related equipment information through a system interface of the screen projection equipment to determine the screen projection equipment information in the related equipment information as target equipment information, wherein the screen projection equipment information comprises equipment information of the screen projection equipment acquired by the screen projection equipment through mirror image connection.
In a second aspect of the present application, there is also provided a video screen projection method applied to a device to be screen projected, including: after mirror image connection with screen projection equipment is established, screen projection equipment information is sent to the screen projection equipment; establishing DLNA connection with the screen projection equipment through a Digital Living Network Alliance (DLNA) protocol so as to receive video instruction information through the DLNA connection, wherein the video instruction information is instruction information sent by the screen projection equipment through the DLNA connection; and playing the video according to the video instruction message after the mirror image connection is disconnected.
The method for establishing the DLNA connection with the screen projection equipment according to the DLNA protocol comprises the following steps: receiving a DLNA connection request message sent by the screen projection equipment; disconnecting the mirror connection according to the DLNA connection request message, and generating a DLNA connection response message corresponding to the DLNA connection request message; and sending the DLNA connection response message.
After the DLNA connection is established with the screen projection device according to the DLNA protocol, the method further includes: sending a screen projection success message to the screen projection equipment, wherein the screen projection success message is used for informing the screen projection equipment to disconnect the mirror image connection;
wherein, the video instruction message contains a push instruction and a video playing instruction, and the video playing is carried out according to the video instruction message after the mirror image connection is disconnected, including: and playing the video corresponding to the video address information according to the video playing time point carried by the video playing instruction, wherein the video address information is the video address information carried by the push instruction.
In a third aspect of the present application, there is also provided a video screen projection apparatus applied to a screen projection device, including:
the DLNA equipment discovery module is used for discovering equipment according to a digital living network alliance DLNA protocol to obtain equipment information of candidate screen projection equipment;
the screen projection device determining module is used for determining the screen projection device matched with target device information according to the device information of the candidate screen projection device, wherein the target device information comprises the screen projection device information acquired by the screen projection device, and the screen projection device establishes mirror image connection with the screen projection device;
the DLNA screen projection module is used for establishing DLNA connection with the screen projected equipment and sending a video instruction message to the screen projected equipment based on the DLNA connection; and the screen projected equipment is used for playing videos according to the video instruction message after the mirror image connection is disconnected.
In a fourth aspect of the present application, there is also provided a video screen projection apparatus applied to a device to be projected, including:
the device information sending module is used for sending the information of the screen projected device to the screen projected device after mirror image connection with the screen projected device is established;
the command information receiving module is used for establishing DLNA connection with the screen projection equipment according to a Digital Living Network Alliance (DLNA) protocol so as to receive video command information through the DLNA connection, and the video command information is command information sent by the screen projection equipment through the DLNA connection;
and the video playing module is used for playing the video according to the video instruction message after the mirror image connection is disconnected.
In a fifth aspect of this application, there is also provided an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; a memory for storing a computer program; a processor for implementing any of the above method steps when executing a program stored in the memory.
In a sixth aspect implemented by the present application, there is also provided a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform any of the method steps described above.
The video screen projection method, the device, the equipment and the storage medium provided by the embodiment of the application obtain the equipment information of candidate screen projection equipment by carrying out equipment discovery according to a DLNA protocol, determine the screen projection equipment matched with the target equipment information according to the equipment information of the candidate screen projection equipment, establish mirror image connection with the screen projection equipment, establish DLNA connection with the screen projection equipment, send a video instruction message to the screen projection equipment based on the DLNA connection, enable the screen projection equipment to carry out video playing according to the video instruction message after disconnecting the mirror image connection, convert the mirror image screen projection corresponding to the screen projection equipment into the DLNA screen projection, further convert the mirror image into the DLNA screen projection when playing the video, solve the problems of frame dropping, screen blurring, low definition, black margin and the like of the mirror image, and simultaneously can not influence the operation of a user on the screen projection equipment, if the operation on the mobile phone of the user is not influenced, the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic flowchart illustrating steps of a video screen projection method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating steps of a video projection method according to an alternative embodiment of the present application;
FIG. 3 is a flowchart illustrating steps of a video projection method according to another alternative embodiment of the present application;
FIG. 4 is a flow chart illustrating steps of another video projection method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of interaction between a screen-projected device, a screen-projection system, and a video service end in an example of the application;
fig. 6 is a block diagram of a video screen projection apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of another video projection device provided in the embodiments of the present application;
FIG. 8 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
One of the core ideas of the embodiment of the application is that when a video is mirrored, the mirror is converted into Digital Living Network Alliance (DLNA) screen projection, so that the problems of frame dropping, screen blurring, low definition, black edges and the like of the mirror are solved, and meanwhile, the operation on user equipment is not influenced, such as the operation on a mobile phone of a user is not influenced, and the user experience is improved.
Referring to fig. 1, a schematic flowchart illustrating steps of a video screen projection method according to an embodiment of the present application is shown. In specific implementation, the video screen projection method provided by the embodiment of the application can be applied to the situation that a mirror image is converted into a DLNA screen projection when the video image is mirrored, and can be particularly applied to screen projection equipment; the screen projection device can support the mirror image, can interact with the screen projection device, and obtains the device information of the screen projection device, so as to convert the mirror image screen projection into a DLNA screen projection according to the obtained device information of the screen projection device.
Specifically, the screen projection device may discover the screen projection device through a communication protocol such as a mirror image protocol and a bluetooth protocol, may connect the screen projection device in a mirror image manner to perform mirror image, and may obtain related device information of the screen projection device, such as a name, an IP, or other device information identifying the screen projection device. As shown in fig. 1, the video screen projection method applied to the screen projection apparatus may include the steps of:
and step 110, discovering the equipment according to a Digital Living Network Alliance (DLNA) protocol to obtain the equipment information of the candidate screen-projected equipment.
In actual processing, different protocols may have different ways of discovering the projected device. The candidate screen projection device in the embodiment of the application may include a screen projection device to be selected, which is obtained by device discovery according to a DLNA protocol; the to-be-selected screen projection device can be used as a screen projection end of a video screen projection, and specifically can include a screen projection supporting device such as a television and a box which are discovered according to a DLNA protocol. The device information of the candidate screen-projected device may refer to device information of the screen-projected device to be selected, and may specifically include a device name, an Internet Protocol (IP) address, or other information identifying the screen-projected device, which is not specifically limited in this embodiment of the present application.
Specifically, when the screen projection device enters a video playing page to play a video by starting an application program, the application program may perform device discovery according to a DLNA protocol, and may determine device information obtained through discovery as device information of candidate screen projection devices, so as to determine a device corresponding to the device information obtained through discovery as a screen projection device to be selected.
In this embodiment of the application, the information of the screen-projected device acquired by the screen-projecting device may refer to the related device information of the screen-projected device acquired by the screen-projecting device when mirroring the screen-projected device, such as a name, an IP, or other information identifying the screen-projected device.
Specifically, after the screen projection device is connected with the screen projection device through a mirror image, the mirror image can be performed on the basis of the screen projection device, and meanwhile, related device information of the screen projection device, such as a name, an ip or other information identifying the screen projection device, can be acquired and used as the screen projection device information, so that the screen projection device information can be subsequently used as target device information and matched with device information of candidate screen projection devices obtained by device discovery according to a DLNA protocol, and the screen projection device matched with the target device information is determined.
Specifically, after the screen projection device in the embodiment of the application performs device discovery through a DLNA protocol to obtain device information of a candidate screen projection device, the device information of the candidate screen projection device may be compared with target device information, and whether the device information of the candidate screen projection device matches the target device information is determined based on a comparison result, so that when the device information of a certain candidate screen projection device matches the target device information, if name information of a certain candidate screen projection device is the same as name information in the target device information, the candidate screen projection device is determined as a screen projection device matching the target device information, that is, the screen projection device matching the target device information is selected as a screen projection device required to be currently projected. Further, in the embodiment of the present application, determining, according to the device information of the candidate screen projection device, a screen projection device matched with the target device information may specifically include: matching the device information of the candidate screen projected device with the target device information; and if the device information of the candidate screen projected device is matched with the target device information, determining the candidate screen projected device as the screen projected device.
Specifically, after the screen projection device in the embodiment of the application determines the screen projection device matched with the target device information, the screen projection device may establish a DLNA connection with the screen projection device according to a DLNA protocol, and may send a video instruction message to the screen projection device based on the DLNA connection, so as to perform screen projection operation according to the DLNA protocol. The device to be projected can receive the video instruction message through DLNA connection after the mirror connection is disconnected, video playing is carried out according to the video instruction message, the system mirror image corresponding to the device to be projected is converted into DLNA screen projection, and therefore the problems that the mirror image is lost, the screen is blurred, the definition is not high, black edges exist and the like are solved.
Therefore, the device information of the candidate screen projection device is obtained by discovering the device according to the DLNA protocol, and determines the screen projected equipment matched with the target equipment information according to the equipment information of the candidate screen projected equipment, and the screen projected device establishes a mirror image connection with the screen projecting device, then can establish a DLNA connection with the screen projected device, then can send a video instruction message to the screen projected device based on the DLNA connection, the projected screen equipment plays video according to the video instruction message after the mirror image connection is disconnected so as to convert the mirror image projection corresponding to the projected screen equipment into DLNA projection, and then can throw the screen with system's mirror image conversion DLNA when video broadcast, solve the mirror image and fall the frame and flower the screen, the definition is not high, have black border scheduling problem, can not influence the operation of user on throwing the screen equipment simultaneously, improve user experience.
In actual processing, the sending of the video instruction message to the screen-thrown device based on the DLNA connection in the embodiment of the present application may specifically include: a push instruction and a video play instruction. For example, after the DLNA connection is established between the screen projecting device and the screen to be projected, the screen projecting device may send a push instruction to the screen to be projected through the DLNA connection, where the push instruction carries video address information, so that the screen to be projected can play a video corresponding to the video address information according to a video playing time point carried by the video playing instruction.
On the basis of the foregoing embodiment, optionally, in the embodiment of the present application, establishing a DLNA connection with the screen-projected device, and sending a video instruction message to the screen-projected device based on the DLNA connection may specifically include: sending a DLNA connection request message to the screen projected equipment; after receiving a DLNA connection response message, establishing the DLNA connection according to the DLNA connection response message, wherein the DLNA connection response message is a message sent by the screen thrown device; and sending the video instruction message to the projected screen equipment through the DLNA connection. The video instruction message comprises a push instruction and a video playing instruction, the push instruction carries video address information, the video playing instruction carries a video playing time point, and the projected screen device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
Specifically, after determining the screen projected device, the screen projected device in the embodiment of the application may send a DLNA connection request message to the screen projected device according to a DLNA protocol to request to establish a DLNA connection with the screen projected device; therefore, after receiving the DLNA connection response message, the DLNA connection can be established according to the DLNA connection response message, and then the push instruction of the DLNA can be sent through the DLNA connection, so that the video corresponding to the video address information can be pushed to the screen-thrown equipment such as a television and the like through the push instruction to play the video.
As an example of the present Application, the screen projection device may be installed with a video service end, and the video service end may provide video content, such as an Application program (App) that provides video content in the screen projection device, such as a mobile phone, a tablet, and the like, and the App may be provided by a video playing service party. The video service end can support a DLNA protocol, and can acquire related equipment information by calling a system interface of the screen projection equipment, so that the screen projection equipment information in the related equipment information can find the corresponding screen projection equipment in an equipment list discovered by the equipment, screen projection operation is carried out, and meanwhile, a system of the screen projection equipment can be informed to close a mirror image. The device list may refer to a list generated through device discovery, and may specifically include device information of one or more candidate screen-projected devices discovered through devices.
Further, the video screen projection method provided by the embodiment of the present application may further include: calling a system interface of the screen projection equipment; acquiring related equipment information through a system interface of the screen projection equipment to determine the screen projection equipment information in the related equipment information as target equipment information, wherein the screen projection equipment information is the equipment information of the screen projection equipment acquired by the screen projection equipment through mirror image connection.
Referring to fig. 2, a flowchart illustrating steps of a video screen projection method according to an alternative embodiment of the present application is shown. The video screen projection method provided by this optional embodiment may be executed by a video service end installed on the screen projection device side, and for example, may be executed by a video playing application program that provides video content, and specifically may include the following steps:
and step 210, discovering the equipment according to a Digital Living Network Alliance (DLNA) protocol to obtain the equipment information of the candidate screen-projected equipment.
And step 220, calling a system interface of the screen projection equipment.
And step 230, acquiring related device information through a system interface of the screen projection device, so as to determine the screen projected device information in the related device information as target device information, wherein the screen projected device information is the device information of the screen projected device acquired by the screen projection device through mirror image connection.
Specifically, when a video service end installed in the screen projection device plays a video, device discovery may be performed through a DLNA protocol to obtain device information of candidate screen projection devices, a device list may be generated based on the obtained device information of the candidate screen projection devices, and then, related device information may be obtained by calling a system interface of the screen projection device to compare the screen projection device information in the related device information with the device information of the candidate screen projection devices in the device list, which is taken as target device information. The related device information may include information of the screen-projected device, and the information of the screen-projected device may include name information of the screen-projected device, internet protocol information and/or device unique identification information. It should be noted that the name information of the screen-projected device may refer to the device name of the screen-projected device; the internet interconnection protocol information of the screen projected equipment can refer to the IP address of the screen projected equipment; the device unique identification information of the screen-projected device may refer to a device unique Identification (ID) generated by the screen-projected device.
Specifically, when the system of the screen projection device is connected to the screen projection device through a mirror image, after the mirror image of the screen projection device is successful, the screen projection device may send a message to obtain device information of the screen projection device, and store the device information as the screen projection device information in the system, and then transmit related device information to the video service end through the system interface, so that the video service end may obtain the related device information by calling the system interface provided by the screen projection device, and further may determine the screen projection device information in the related device information as target device information, so that the subsequent step 240 may be performed according to matching between the obtained target device information and device information of candidate screen projection devices in the device list.
And 240, determining the screen projected equipment matched with the target equipment information according to the equipment information of the candidate screen projected equipment.
Specifically, after the video service end obtains the device information of the candidate screen-projected device through device discovery, the device information of the candidate screen-projected device may be matched with the target device information, so that when the device information of the candidate screen-projected device is matched with the target device information, the candidate screen-projected device is determined as the screen-projected device. For example, the video service end may compare and match the device information of the candidate screen projected device with the acquired target device information, for example, compare the device name, the IP, and the device unique ID of the candidate screen projected device with the name information, the internet protocol information, and the device unique identification information of the screen projected device acquired from the screen projection device system, respectively, to determine whether the device information of the candidate screen projected device matches with the target device information. When the device name, the IP, and the device unique ID of a candidate screen projection device are the same as the name information, the internet protocol information, and the device unique identification information of the screen projection device acquired from the screen projection device system, it may be determined that the device information of the candidate screen projection device matches the acquired target device information, and then the candidate screen projection device may be determined as the screen projection device matching the target device information. If the device name, the IP, and the device unique ID of the candidate screen-projected device are different from the name information, the internet interconnection protocol information, and the device unique identification information of the screen-projected device acquired from the screen-projected device system, it may be determined that the device information of the candidate screen-projected device is not matched with the acquired target device information, and the device information of the candidate screen-projected device may be ignored.
And step 250, sending a DLNA connection request message to the screen-projected equipment.
Specifically, after determining the screen-thrown device matched with the target device information, the video service end in the embodiment of the present application may send a DLNA connection request message to the screen-thrown device according to a DLNA protocol, so that the screen-thrown device may send a corresponding DLNA connection response message for the DLNA connection request message after receiving the DLNA connection request message. After receiving the DLNA connection response message returned by the screen-projected device, the video service end can establish DLNA connection with the screen-projected device according to the DLNA connection response message.
In an optional embodiment, after the video service end establishes a DLNA connection with the screen to be projected, a DLNA screen projection command may be sent to the screen to be projected according to a DLNA protocol, so that the screen to be projected performs DLNA screen projection according to the DLNA screen projection command after receiving the DLNA screen projection command. Specifically, the screen-thrown device can execute the DLNA screen-throwing command after receiving the DLNA screen-throwing command, establish DLNA screen throwing after the DLNA screen-throwing command is executed, generate a corresponding screen-throwing success message, and then return the screen-throwing success message to the video service end through the DLNA protocol, so that the video service end can automatically disconnect the mirror image screen throwing after receiving the screen-throwing success message, and realize that the mirror image screen throwing is converted into the DLNA screen throwing.
Further, after the DLNA connection is established according to the DLNA connection response message, the embodiment of the present application may further include the following steps:
and 270, receiving a screen projection success message sent by the screen projection equipment.
The screen projection success message is a message sent by the screen projection equipment after the DLNA screen projection command is executed; the DLNA screen projection command is a command sent by the video service end to the screen projected device, and for example, the DLNA screen projection command may be a screen projection command sent by the video service end to the screen projected device through a DLNA connection.
And 290, sending the video instruction message to the screen-projected device through the DLNA connection.
The video instruction message comprises a push instruction and a video playing instruction, the push instruction carries video address information, the video playing instruction carries a video playing time point, and the projected screen device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
Specifically, after a DLNA connection is established between a video service end in the screen projection equipment and the screen projection equipment, the video service end can send a push sheet instruction and a video playing instruction of the DLNA to the screen projection equipment based on the DLNA connection, so that video address information is pushed to the screen projection equipment through the push sheet instruction, the screen projection equipment can play videos according to video playing time points carried by the video address information and the video playing instruction, videos corresponding to the video address information can be played normally in the screen projection equipment, and the effect of converting a mirror image into the DLNA screen projection is achieved.
As an optional example of the present application, after establishing a DLNA connection with a television set serving as a screen-projected device, an application program serving as a video service end may perform message transmission through a DLNA protocol, for example, send a DLNA screen-projecting command and/or a film-pushing command to the television set, so as to push a video corresponding to video address information to the television set for playing, thereby implementing DLNA screen projection.
Specifically, after a DLNA screen-casting command is sent by the video service end, the television can perform DLNA screen-casting according to the DLNA screen-casting command, and can generate a screen-casting success message corresponding to the DLNA screen-casting command after the DLNA screen-casting is successful, and then the screen-casting success message can be returned to the video service end through a DLNA protocol, so that the video service end can receive the screen-casting success message. After receiving the screen projection success message, the video service end can call a system interface of the device aiming at the screen projection success message so as to inform the screen projection device of closing the mirror image by the system interface of the screen projection device.
In summary, after the video service end in the embodiment of the present application performs device discovery through a DLNA protocol, device information of a candidate screen-projected device can be obtained, and then, through comparison with screen-projected device information obtained from a system of the screen-projected device, it is determined whether the device information of the candidate screen-projected device matches the screen-projected device information, so that a connection can be established and a DLNA push instruction can be sent after successful matching, that is, after a screen-projected device matching the screen-projected device information is determined, a DLNA connection is established with the screen-projected device, so as to send a video instruction message to the screen-projected device through the DLNA protocol, for example, the push instruction is sent to the screen-projected device, so that the screen-projected device can perform video playing according to video address information carried in the push instruction after receiving the push instruction, and thus implementing DLNA screen projection; after a screen projection success message sent by the screen projection equipment is received, the mirror image connection is disconnected through a system interface of the screen projection equipment, namely the screen projection equipment is disconnected from the mirror image screen projection connection between the screen projection equipment and the screen projection equipment, the mirror image screen projection is converted into the DLNA screen projection, the problems of frame lost, screen blurring, low definition, black edges and the like of the mirror image are solved, and meanwhile, the operation of a user on the screen projection equipment can not be influenced, if the operation on a mobile phone of the user is not influenced, the user experience is improved.
Of course, the device to be screen-projected may also close the mirror image, for example, the mirror image screen projection may be automatically disconnected after receiving the DLNA connection request message or the DLNA screen projection command, and the like. Further, the DLNA screen projection command may be used to notify the projected device to disconnect the mirror screen projection to turn off the mirror screen projection.
In another optional embodiment, a DLNA connection request message may be used to trigger the screen-thrown device to disconnect the mirror connection; the DLNA connection response message is specifically a message sent by the screen-thrown device after the mirror connection is disconnected.
Further, before device discovery is performed according to the DLNA protocol, the video screen projection method applied to the screen projection device side may further include: discovering the screen projected equipment through a communication protocol; connecting the projected screen equipment in a screen mirroring mode; acquiring the device information of the screen projected device after the mirroring is successful to serve as the target device information, wherein the device information of the screen projected device comprises at least one of the following items: name information, internet protocol information, and/or device unique identification information.
Referring to fig. 3, a flowchart illustrating steps of a video screen projection method according to another alternative embodiment of the present application is shown. The video screen projection method provided by the optional embodiment can be applied to screen projection equipment, and specifically can comprise the following steps:
and step 310, discovering the screen projected equipment through a communication protocol.
Specifically, after the projected screen device serving as the projected screen device broadcasts a protocol supported by itself, the projected screen device may discover the projected screen device through a communication protocol such as a mirror image protocol, a bluetooth protocol, or the like. For example, the screen projection device may perform device discovery according to a mirror image protocol in a manner of local area network broadcasting, multicasting, and the like, so as to discover the screen projection device supporting the mirror image; for another example, the screen projection device may perform device discovery according to a short-range wireless communication technology through a bluetooth protocol, so as to discover a screen projection device supporting bluetooth connection, and the like, which is not specifically limited in this embodiment of the present application.
And step 320, connecting the projected screen equipment in a screen mirroring mode.
And step 330, acquiring the device information of the projected screen device after the mirror image is successful, and taking the device information as target device information.
The acquired device information of the screen-projected device may include, but is not limited to: name information of the screen projected device, internet protocol information and/or device unique identification information and the like.
Specifically, after the screen projection device discovers the screen projection device through the communication protocol, the screen projection device can be connected in a screen mirroring mode to be mirrored with the screen projection device, so that the device information of the screen projection device can be acquired after the mirroring is successful to serve as the target device information of the subsequent DLNA screen projection. For example, after the screen projection device is found through the communication protocol, the screen projection end system (i.e., the screen projection device system) may connect the screen projection device serving as the screen projection end through a mirror image, and perform a mirror image, and may obtain related device information of the screen projection device, such as a device name, an IP, or other device information identifying the screen projection device, as target device information, and store the target device information in the screen projection end system, so that the subsequent matching may be performed according to the target device information in the screen projection end system.
And 340, discovering the equipment according to the DLNA protocol to obtain the equipment information of the candidate screen-projected equipment.
Specifically, the screen projection device may perform device discovery in a manner of local area network broadcasting, multicasting or the like according to a DLNA protocol, so as to discover the screen projected device supporting the DLNA protocol, and then determine the discovered screen projected device supporting the DLNA protocol as a candidate screen projected device, and obtain related device information from the discovered screen projected device supporting the DLNA protocol, to obtain device information of the candidate screen projected device, for example, use the obtained related device information as the device information of the candidate screen projected device; for another example, information capable of effectively identifying the device may be selected from the acquired related device information to serve as device information of the candidate screen-projected device, and the like, which is not specifically limited in this embodiment of the application.
And 350, matching the device information of the candidate screen projected device with the target device information.
And step 370, sending a DLNA connection request message to the screen-projected device.
Wherein the DLNA connection request message may be used to trigger the screen-thrown device to disconnect the mirror connection.
And 380, after receiving the DLNA connection response message, establishing the DLNA connection according to the DLNA connection response message.
The DLNA connection response message is specifically a message sent by the screen-thrown device after the mirror connection is disconnected.
And step 390, sending the video instruction message to the screen-projected device through the DLNA connection.
The video instruction message comprises a push instruction and a video playing instruction, the push instruction carries video address information, the video playing instruction carries a video playing time point, and the projected screen device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
Specifically, the screen projection device in the embodiment of the present application may be equipped with a screen projection end system and a video service end. The screen projection end system may refer to an operating system of the screen projection device, and for example, when the mobile phone is used as the screen projection device, the mobile phone system may be used as the screen projection end system. Specifically, the screen projection end system can discover the screen projected equipment through a mirror image protocol, a Bluetooth protocol and other communication protocols, the screen projected equipment can be connected through a mirror image, the mirror image is carried out, meanwhile, related equipment information of the screen projected equipment can be acquired, the information is used as target equipment information and is transmitted to the video service end, the video service end can select corresponding equipment to carry out screen projection operation according to the received target equipment information when carrying out video playing, meanwhile, the screen projection end system can be informed to close the mirror image, and the mirror image is converted into DLNA screen projection.
For example, after the video service end in the screen projection device determines the screen projection device matched with the target device information, the video service end can establish a DLNA connection with the screen projection device by sending a DLNA connection request message to the screen projection device. Specifically, after receiving the DLNA connection request message, the screen-launched device may disconnect the mirror connection with the screen-launched device based on the DLNA connection request message, and return a corresponding DLNA connection response message to the video service end of the screen-launched device based on the DLNA connection request message, so that the video service end of the screen-launched device may receive the DLNA connection response message, and further may establish a DLNA connection based on the DLNA connection response message.
After the DLNA connection is established, the video service end of the screen projection device may send the video instruction message to the screen projection device based on the DLNA connection, for example, a push instruction and a video playing instruction of the DLNA may be sent to the screen projection device, so that the video address information is pushed to the screen projection device through the push instruction, and the screen projection device may play the video corresponding to the video address information according to the video playing time point, so that the video corresponding to the video address information may be normally played in the screen projection device.
Therefore, the screen projection device in the embodiment of the present application can project the video content to a large-screen device such as a television, a box, and the like serving as a projected screen device, so that a user can obtain better viewing experience, and at the same time, the user can control the projected screen device to perform play control, such as playing a video, pausing the video playing, and the like, through the screen projection device.
To sum up, the embodiment of the application performs screen projection operation according to the DLNA protocol of the digital living network alliance, so that the mirror image is converted into DLNA screen projection, the problems that the mirror image is lost, the screen is blurred, the definition is not high, a black edge exists and the like are solved, and meanwhile, the operation of a user on screen projection equipment can not be influenced, and if the operation on a mobile phone of the user is not influenced, the user experience is improved.
On the basis of the above embodiment, the embodiment of the present application further provides another video screen projection method applied to the projected screen device, so that the projected screen device can convert the mirror image screen projection into the DLNA screen projection. As shown in fig. 4, the video screen projection method applied to the projected screen device end may include the following steps:
and 430, playing the video according to the video instruction message after the mirror image connection is disconnected.
Further, in this embodiment of the present application, the screen-projected device establishes a DLNA connection with the screen-projected device according to a digital living network alliance DLNA protocol, which may specifically include: receiving a DLNA connection request message sent by the screen projection equipment; disconnecting the mirror connection according to the DLNA connection request message, and generating a DLNA connection response message corresponding to the DLNA connection request message; and sending the DLNA connection response message.
Further, after the DLNA connection is established with the screen projection device according to the DLNA protocol of the digital living network alliance, the method in the embodiment of the present application may further include: and sending a screen projection success message to the screen projection equipment, wherein the screen projection success message is used for informing the screen projection equipment to disconnect the mirror image connection.
Optionally, the video instruction message in the embodiment of the present application may include a push instruction, a video playing instruction, and the like. The playing the video according to the video instruction message after the mirror image connection is disconnected may specifically include: and playing the video corresponding to the video address information according to the video playing time point carried by the video playing instruction, wherein the video address information is the video address information carried by the push instruction.
In actual processing, video screen projection can be mainly realized by three execution main bodies: the first execution subject can be a screen-projected device, supporting related protocols such as mirroring and DLNA screen projection, such as a device supporting screen projection, such as a television, a box, and the like; the second main body can be a screen projection end system, which refers to a system of screen projection equipment, such as a system in screen projection equipment such as a mobile phone and a tablet, and supports mirroring and can interact with the screen projection equipment, acquire equipment information of the screen projection equipment, and can transmit the acquired equipment information as the screen projection equipment information to a related service party for playing screen projection video, such as can provide the acquired equipment information of the screen projection equipment to a video service end installed in the screen projection equipment, so that the video service end can establish communication connection with the screen projection equipment according to the equipment information of the screen projection equipment; the third execution main body can be a video service end, the video service end can be used as a video playing service party in the screen projection equipment, supports a DLNA protocol, can acquire the information of the screen projection equipment acquired by the screen projection end system, and can find corresponding equipment in an equipment list discovered by the equipment for screen projection operation.
As an example of the application, when mirroring is performed, a system of a screen projection device serves as a screen projection end system, and may acquire some device information of the screen projection device, such as names, IP, or other device information capable of identifying the screen projection device, and may provide the device information to a video playing end when video playing is performed; the video playing end can find the corresponding screen projected equipment from the equipment list found through the DLNA protocol through the unique identification, and then can project the video to the screen projected equipment through the DLNA protocol for playing. Specifically, the video screen projection method in this example may specifically include the following steps:
at step 510, the screen-projected device broadcasts its supported protocol.
Specifically, the screen-projected device may broadcast a protocol supported by itself in a service distribution manner. The protocols supported by the screen projection device may include a mirror protocol, a bluetooth protocol, a DLNA protocol, etc., and this example is not particularly limited.
And step 520, the screen projection end system discovers the screen projection equipment through communication protocols such as a mirror image protocol, a Bluetooth protocol and the like.
Step 530, the screen projection end system connects the screen projected device through the mirror image, performs the mirror image, and simultaneously can acquire the related device information of the screen projected device, such as the device name, the IP, or other device information identifying the screen projected device.
And step 540, the screen projection system provides the relevant information to the video service terminal.
Specifically, the screen projection system can find the screen projection device providing the service by searching the service. For example, as shown in fig. 5, after the screen projection system sends a message of a search service, if a response service message returned by the screen projected device is received, the screen projected device may be connected through a mirror image protocol to perform mirror image. After the mirror image is successful, the screen projection end system can acquire the equipment information of the screen projected equipment, and then the equipment information of the screen projected equipment can be provided for the video service end, so that the video service end can acquire the equipment information of the screen projected equipment, and further can take the received equipment information of the screen projected equipment as target equipment information, so that the subsequent video service end can select the corresponding screen projected equipment to perform screen projection operation according to the target equipment information.
In step 550, when the video service end plays the video, the corresponding screen-projected device may be selected in the device list according to the obtained device information of the screen-projected device to perform the screen-projection operation, and the screen-projection end system may be notified to close the mirror image.
And step 560, the video is normally played on the screen projected equipment.
Specifically, when the video service end plays the video, the obtained device information of the screen-projected device can be used as the target device information, so that the corresponding screen-projected device is selected in the device list according to the target device information to perform the screen-projecting operation, the video can be normally played on the screen-projected device, and a mirror image closing message can be sent to the screen-projecting system through the system interface to notify the screen-projecting system to close the mirror image, so that the mirror image screen projection is converted into the DLNA screen projection.
For example, when the video service end plays a video, the device information of the screen-projected device transmitted by the screen-projecting end system can be received, the device information of the screen-projected device can be determined as target device information, then the screen-projected device can be found in a service searching manner according to a DLNA protocol, a device list is generated based on the found device information of the screen-projected device, and therefore the screen-projected device found by the video service end can be determined as a candidate screen-projected device. Specifically, after the screen projection device is connected to the network, the video service end installed in the screen projection device can send a SEARCH service message SSDP: discover to an SSDP port of a specific multicast address by using an M-SEARCH method through a system of the screen projection device (i.e., a screen projection end system). As shown in fig. 5, when the screen-dropped device monitors that the reserved multicast address has a search service message ssdp: discover sent by the video service end of the screen-dropped device, the service requested by the video service end of the screen-dropped device may be analyzed, if the video service end of the screen-dropped device provides the service requested by the video service end, the video service end may directly respond to the request of the video service end of the screen-dropped device in a unicast manner, for example, send a response service message to the video service end, so that the video service end may determine the screen-dropped device as a candidate screen-dropped device discovered by the video service end according to the response service message, and then may determine whether to select the candidate screen-dropped device as the screen-dropped device by matching the device information of the candidate screen-dropped end with the received target device information. And if the device information of the candidate screen projection end is successfully matched with the target device information, selecting the candidate screen projection end as a screen projected device, and performing DLNA screen projection operation to enable the video to be played normally on the screen projected device, namely the screen projected device executes the video playing. After the screen projection device executes the video playing starting step, the screen projection success message can be sent to the video service end, so that the video service end can inform the screen projection end system to close the mirror image based on the screen projection success message, the system mirror image is converted into the DLNA screen projection, the problems of screen lost, low definition, black edge and the like of the mirror image are solved, and meanwhile, the operation of a user on the screen projection device can not be influenced, such as the operation on a mobile phone of the user, and the user experience is improved.
Further, the video screen projection method provided by the embodiment of the application further includes: and when the DLNA screen projection fails, screen projection failure prompt information is generated. The screen projection failure prompt message can be used for prompting the user that the screen projection fails. For example, when the DLNA screen projection fails, screen projection failure prompt information may be generated by the video service end and/or the screen projection end system, and output to prompt the user that the DLNA screen projection fails, which is not specifically limited in the embodiment of the present application.
To sum up, the video screen projection method provided by the embodiment of the application obtains the device information of the candidate screen projection device by performing device discovery according to the DLNA protocol, determines the screen projection device matched with the target device information according to the device information of the candidate screen projection device, and performs screen projection operation according to the DLNA protocol of the digital living network alliance, so as to convert the mirror image corresponding to the screen projection device into the DLNA screen projection, thereby converting the mirror image into the DLNA screen projection when playing the video, and solves the problems of frame dropping, screen blurring, low definition, black edges and the like of the mirror image, and meanwhile, the operation of a user on the screen projection device can not be influenced, and the user experience is improved.
Further, the embodiment of the application also provides a video screen projection device which is applied to screen projection equipment. As shown in fig. 6, the video screen projection apparatus applied to the screen projection device may specifically include the following modules:
the DLNA device discovery module 610 is configured to perform device discovery according to a digital living network alliance DLNA protocol to obtain device information of candidate screen-projected devices;
a screen projection device determining module 620, configured to determine, according to device information of the candidate screen projection device, a screen projection device matched with target device information, where the target device information includes screen projection device information acquired by the screen projection device, and the screen projection device has established mirror image connection with the screen projection device;
a DLNA screen projection module 630, configured to establish a DLNA connection with the screen projected device, and send a video instruction message to the screen projected device based on the DLNA connection; and the screen projected equipment is used for playing videos according to the video instruction message after the mirror image connection is disconnected.
On the basis of the above embodiment, optionally, the screen-projected device determining module 620 includes the following sub-modules:
the matching sub-module is used for matching the device information of the candidate screen projected device with the target device information;
and the determining sub-module is used for determining the candidate screen projected device as the screen projected device when the device information of the candidate screen projected device is matched with the target device information.
Optionally, the DLNA screen projection module includes the following sub-modules:
the request message sending submodule is used for sending a DLNA connection request message to the screen thrown equipment;
the DLNA connection sub-module is used for establishing the DLNA connection according to the DLNA connection response message after receiving the DLNA connection response message, and the DLNA connection response message is a message sent by the screen-thrown equipment;
and the video instruction message sending submodule is used for sending the video instruction message to the screen projected equipment through the DLNA connection.
The video instruction message comprises a push instruction and a video playing instruction, the push instruction carries video address information, the video playing instruction carries a video playing time point, and the projected screen device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
In an optional embodiment, the DLNA connection request message is used to trigger the screen-dropped device to disconnect the mirror connection, and the DLNA connection response message is specifically a message sent by the screen-dropped device after disconnecting the mirror connection.
In another optional embodiment, the video screen projection device may further include the following modules:
the screen projection success message receiving module is used for receiving a screen projection success message sent by the screen projection equipment;
and the mirror image disconnection module is used for disconnecting the mirror image connection through a system interface of the screen projection equipment aiming at the screen projection success message.
Optionally, the video screen projection device provided in the embodiment of the present application further includes the following modules:
the system interface calling module is used for calling a system interface of the screen projection equipment;
and the information acquisition module is used for acquiring related equipment information through a system interface of the screen projection equipment so as to determine the screen projected equipment information in the related equipment information as target equipment information.
The information of the screen projected equipment is the equipment information of the screen projected equipment acquired by the screen projected equipment through mirror image connection.
Furthermore, another video screen projection device is provided in an embodiment of the present application, and the video screen projection device may be applied to a screen-projected device, for example, may be applied to a large-screen device such as a television box as the screen-projected device, so that the screen-projected device may project video content onto the large-screen device, so that a user may obtain better viewing experience, and at the same time, the screen-projected device may be controlled by the screen-projected device to perform broadcast control, such as play, pause, and the like. As shown in fig. 7, another video projection device provided in the embodiment of the present application may specifically include the following modules:
the device information sending module 710 is configured to send information of the screen-projected device to the screen-projecting device after establishing mirror image connection with the screen-projecting device;
the instruction information receiving module 720 is configured to establish a DLNA connection with the screen projection device according to a Digital Living Network Alliance (DLNA) protocol, so as to receive a video instruction message through the DLNA connection, where the video instruction message is an instruction message sent by the screen projection device through the DLNA connection;
and the video playing module 730 is configured to play a video according to the video instruction message after the mirror image connection is disconnected.
Further, the instruction information receiving module 720 includes:
the request message receiving submodule is used for receiving a DLNA connection request message sent by the screen projection equipment;
the mirror image connection disconnection submodule is used for disconnecting the mirror image connection according to the DLNA connection request message;
and the response message generation and sending module is used for generating a DLNA connection response message corresponding to the DLNA connection request message and sending the DLNA connection response message.
Optionally, the video screen projection device further includes: and a screen projection success message sending module. The screen projection success message sending module is used for sending a screen projection success message to the screen projection equipment, and the screen projection success message is used for informing the screen projection equipment to disconnect the mirror image connection.
Optionally, the video instruction message includes a push instruction and a video playing instruction, and the video playing module 730 includes: and a video playing sub-module. The video playing submodule is used for playing the video corresponding to the video address information according to the video playing time point carried by the video playing instruction, and the video address information is the video address information carried by the push sheet instruction.
It should be noted that, since the functions of the apparatuses described in the embodiments of the present application have been described in the method embodiments, details which are not described in the embodiments of the present application may be referred to in the description of the embodiments described above, and are not described herein again.
An electronic device is further provided in the embodiment of the present application, as shown in fig. 8, and includes a processor 810, a communication interface 820, a memory 830, and a communication bus 840, where the processor 810, the communication interface 820, and the memory 830 complete communication with each other through the communication bus 840.
A memory 830 for storing computer programs.
The processor 810, when executing the program stored in the memory 830, is configured to implement the steps of the video screen projection method according to any of the above-described method embodiments.
For example, the processor 810, when executing the program stored in the memory 830, implements the following steps:
equipment discovery is carried out according to a Digital Living Network Alliance (DLNA) protocol to obtain equipment information of candidate screen projection equipment;
determining a screen projection device matched with target device information according to the device information of the candidate screen projection device, wherein the target device information comprises the screen projection device information acquired by the screen projection device, and the screen projection device establishes mirror image connection with the screen projection device;
and establishing DLNA connection with the screen projected equipment, and sending a video instruction message to the screen projected equipment based on the DLNA connection, wherein the screen projected equipment is used for playing video according to the video instruction message after the mirror image connection is disconnected.
The establishing of the DLNA connection with the screen projected device and the sending of the video instruction message to the screen projected device based on the DLNA connection comprise: sending a DLNA connection request message to the screen projected equipment; after receiving a DLNA connection response message, establishing the DLNA connection according to the DLNA connection response message, wherein the DLNA connection response message is a message sent by the screen thrown device; and sending the video instruction message to the screen thrown device through the DLNA connection, wherein the video instruction message comprises a push sheet instruction and a video playing instruction, the push sheet instruction carries video address information, the video playing instruction carries a video playing time point, and the screen thrown device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
The DLNA connection request message is used to trigger the screen-dropped device to disconnect the mirror connection, and the DLNA connection response message is specifically a message sent by the screen-dropped device after disconnecting the mirror connection.
Wherein, after the DLNA connection is established according to the DLNA connection response message, further comprising: receiving a screen projection success message sent by the screen projection equipment; and disconnecting the mirror image connection through a system interface of the screen projection equipment aiming at the screen projection success message.
The processor 810 is configured to, when executing the program stored in the memory 830, further implement the following steps: calling a system interface of the screen projection equipment; acquiring related equipment information through a system interface of the screen projection equipment to determine the screen projection equipment information in the related equipment information as target equipment information, wherein the screen projection equipment information is the equipment information of the screen projection equipment acquired by the screen projection equipment through mirror image connection.
For another example, the processor 810, when configured to execute the program stored in the memory 830, implements the following steps:
after mirror image connection with screen projection equipment is established, screen projection equipment information is sent to the screen projection equipment;
establishing DLNA connection with the screen projection equipment according to a Digital Living Network Alliance (DLNA) protocol so as to receive video instruction messages through the DLNA connection, wherein the video instruction messages are instruction messages sent by the screen projection equipment through the DLNA connection;
and playing the video according to the video instruction message after the mirror image connection is disconnected.
The method for establishing the DLNA connection with the screen projection equipment according to the DLNA protocol comprises the following steps: receiving a DLNA connection request message sent by the screen projection equipment; disconnecting the mirror connection according to the DLNA connection request message, and generating a DLNA connection response message corresponding to the DLNA connection request message; and sending the DLNA connection response message.
After the DLNA connection is established with the screen projection device according to the DLNA protocol, the method further includes: and sending a screen projection success message to the screen projection equipment, wherein the screen projection success message is used for informing the screen projection equipment to disconnect the mirror image connection.
Wherein, the video instruction message contains a push instruction and a video playing instruction, and the video playing is carried out according to the video instruction message after the mirror image connection is disconnected, including:
and playing the video corresponding to the video address information according to the video playing time point carried by the video playing instruction, wherein the video address information is the video address information carried by the push instruction.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware component.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, which has instructions stored therein, and when the instructions are executed on a computer, the computer is caused to execute the video screen projection method in any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the video screen projection method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.
It is 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, device, and medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (13)
1. A video screen projection method is applied to screen projection equipment and comprises the following steps:
equipment discovery is carried out according to a Digital Living Network Alliance (DLNA) protocol to obtain equipment information of candidate screen projection equipment;
determining a screen projection device matched with target device information according to the device information of the candidate screen projection device, wherein the target device information comprises the screen projection device information acquired by the screen projection device, and the screen projection device establishes mirror image connection with the screen projection device;
and establishing DLNA connection with the screen projected equipment, and sending a video instruction message to the screen projected equipment based on the DLNA connection, wherein the screen projected equipment is used for playing video according to the video instruction message after the mirror image connection is disconnected.
2. The video screen projection method of claim 1, wherein the establishing of the DLNA connection with the screen projected device and the sending of the video instruction message to the screen projected device based on the DLNA connection comprise:
sending a DLNA connection request message to the screen projected equipment;
after receiving a DLNA connection response message, establishing the DLNA connection according to the DLNA connection response message, wherein the DLNA connection response message is a message sent by the screen thrown device;
and sending the video instruction message to the screen thrown device through the DLNA connection, wherein the video instruction message comprises a push sheet instruction and a video playing instruction, the push sheet instruction carries video address information, the video playing instruction carries a video playing time point, and the screen thrown device is specifically used for playing a video corresponding to the video address information according to the video playing time point.
3. The video screen projection method according to claim 2, wherein the DLNA connection request message is used to trigger the screen-projected device to disconnect the mirror connection, and the DLNA connection response message is specifically a message sent by the screen-projected device after disconnecting the mirror connection.
4. The video screen projection method according to claim 2, further comprising, after establishing the DLNA connection according to the DLNA connection response message:
receiving a screen projection success message sent by the screen projection equipment;
and disconnecting the mirror image connection through a system interface of the screen projection equipment aiming at the screen projection success message.
5. The video screen projection method according to any one of claims 1 to 4, further comprising:
calling a system interface of the screen projection equipment;
acquiring related equipment information through a system interface of the screen projection equipment to determine the screen projection equipment information in the related equipment information as target equipment information, wherein the screen projection equipment information is the equipment information of the screen projection equipment acquired by the screen projection equipment through mirror image connection.
6. A video screen projection method is applied to a projected screen device and comprises the following steps:
after mirror image connection with screen projection equipment is established, screen projection equipment information is sent to the screen projection equipment;
establishing DLNA connection with the screen projection equipment according to a Digital Living Network Alliance (DLNA) protocol so as to receive video instruction messages through the DLNA connection, wherein the video instruction messages are instruction messages sent by the screen projection equipment through the DLNA connection;
and playing the video according to the video instruction message after the mirror image connection is disconnected.
7. The video screen projection method of claim 6, wherein the establishing of the DLNA connection with the screen projection device according to a DLNA protocol comprises:
receiving a DLNA connection request message sent by the screen projection equipment;
disconnecting the mirror connection according to the DLNA connection request message, and generating a DLNA connection response message corresponding to the DLNA connection request message;
and sending the DLNA connection response message.
8. The video screen projection method of claim 6, wherein after the DLNA connection is established with the screen projection device according to a DLNA protocol, the method further comprises the following steps:
and sending a screen projection success message to the screen projection equipment, wherein the screen projection success message is used for informing the screen projection equipment to disconnect the mirror image connection.
9. The video screen projection method according to any one of claims 5 to 8, wherein the video instruction message includes a push instruction and a video play instruction, and the video playing according to the video instruction message after the mirror image connection is disconnected includes:
and playing the video corresponding to the video address information according to the video playing time point carried by the video playing instruction, wherein the video address information is the video address information carried by the push instruction.
10. A video screen projection device is characterized in that the video screen projection device is applied to screen projection equipment and comprises:
the DLNA equipment discovery module is used for discovering equipment according to a digital living network alliance DLNA protocol to obtain equipment information of candidate screen projection equipment;
the screen projection device determining module is used for determining the screen projection device matched with target device information according to the device information of the candidate screen projection device, wherein the target device information comprises the screen projection device information acquired by the screen projection device, and the screen projection device establishes mirror image connection with the screen projection device;
the DLNA screen projection module is used for establishing DLNA connection with the screen projected equipment and sending a video instruction message to the screen projected equipment based on the DLNA connection; and the screen projected equipment is used for playing videos according to the video instruction message after the mirror image connection is disconnected.
11. A video screen projection device is applied to a projected screen device and comprises:
the device information sending module is used for sending the information of the screen projected device to the screen projected device after mirror image connection with the screen projected device is established;
the command information receiving module is used for establishing DLNA connection with the screen projection equipment according to a Digital Living Network Alliance (DLNA) protocol so as to receive video command information through the DLNA connection, and the video command information is command information sent by the screen projection equipment through the DLNA connection;
and the video playing module is used for playing the video according to the video instruction message after the mirror image connection is disconnected.
12. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the video projection method of any of claims 1-9 when executing the program stored in the memory.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the video projection method steps of any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110711720.9A CN113438527A (en) | 2021-06-25 | 2021-06-25 | Video screen projection method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110711720.9A CN113438527A (en) | 2021-06-25 | 2021-06-25 | Video screen projection method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113438527A true CN113438527A (en) | 2021-09-24 |
Family
ID=77755290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110711720.9A Pending CN113438527A (en) | 2021-06-25 | 2021-06-25 | Video screen projection method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113438527A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918110A (en) * | 2021-12-13 | 2022-01-11 | 荣耀终端有限公司 | Screen projection interaction method, device, system, storage medium and product |
CN114125526A (en) * | 2021-12-24 | 2022-03-01 | 北京淳中科技股份有限公司 | Screen mirroring method and device |
CN114430497A (en) * | 2022-01-30 | 2022-05-03 | 深圳创维-Rgb电子有限公司 | Automatic wireless connection method and device for screen projection equipment, screen projector and storage medium |
CN114786058A (en) * | 2022-04-27 | 2022-07-22 | 南京欧珀软件科技有限公司 | Multimedia data display method, device, terminal and storage medium |
CN114885217A (en) * | 2022-06-14 | 2022-08-09 | 中国电信股份有限公司 | Video playing method and device, electronic equipment and nonvolatile storage |
CN115022693A (en) * | 2022-05-30 | 2022-09-06 | 北京字节跳动网络技术有限公司 | Video screen projection method, device, equipment and storage medium |
CN115484484A (en) * | 2022-08-30 | 2022-12-16 | 深圳市思为软件技术有限公司 | Screen projection control method and device for intelligent equipment, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150095510A1 (en) * | 2013-09-30 | 2015-04-02 | Cavium, Inc. | Protocol Switching over Multi-Network Interface |
CN108920120A (en) * | 2018-07-03 | 2018-11-30 | 聚好看科技股份有限公司 | A kind of information display control method and device |
CN112350981A (en) * | 2019-08-09 | 2021-02-09 | 华为技术有限公司 | Method, device and system for switching communication protocol |
CN112616065A (en) * | 2020-12-16 | 2021-04-06 | 深圳乐播科技有限公司 | Screen image initiating method and device, computer equipment, readable storage medium and screen image presenting system |
CN112788384A (en) * | 2021-02-07 | 2021-05-11 | 深圳市大鑫浪电子科技有限公司 | Wireless digital television screen projection method and device, computer equipment and storage medium |
-
2021
- 2021-06-25 CN CN202110711720.9A patent/CN113438527A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150095510A1 (en) * | 2013-09-30 | 2015-04-02 | Cavium, Inc. | Protocol Switching over Multi-Network Interface |
CN108920120A (en) * | 2018-07-03 | 2018-11-30 | 聚好看科技股份有限公司 | A kind of information display control method and device |
CN112350981A (en) * | 2019-08-09 | 2021-02-09 | 华为技术有限公司 | Method, device and system for switching communication protocol |
CN112616065A (en) * | 2020-12-16 | 2021-04-06 | 深圳乐播科技有限公司 | Screen image initiating method and device, computer equipment, readable storage medium and screen image presenting system |
CN112788384A (en) * | 2021-02-07 | 2021-05-11 | 深圳市大鑫浪电子科技有限公司 | Wireless digital television screen projection method and device, computer equipment and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918110A (en) * | 2021-12-13 | 2022-01-11 | 荣耀终端有限公司 | Screen projection interaction method, device, system, storage medium and product |
CN114125526A (en) * | 2021-12-24 | 2022-03-01 | 北京淳中科技股份有限公司 | Screen mirroring method and device |
CN114125526B (en) * | 2021-12-24 | 2024-03-15 | 北京淳中科技股份有限公司 | Screen mirroring method and device |
CN114430497A (en) * | 2022-01-30 | 2022-05-03 | 深圳创维-Rgb电子有限公司 | Automatic wireless connection method and device for screen projection equipment, screen projector and storage medium |
CN114786058A (en) * | 2022-04-27 | 2022-07-22 | 南京欧珀软件科技有限公司 | Multimedia data display method, device, terminal and storage medium |
CN114786058B (en) * | 2022-04-27 | 2024-02-06 | 南京欧珀软件科技有限公司 | Multimedia data display method, device, terminal and storage medium |
CN115022693A (en) * | 2022-05-30 | 2022-09-06 | 北京字节跳动网络技术有限公司 | Video screen projection method, device, equipment and storage medium |
CN114885217A (en) * | 2022-06-14 | 2022-08-09 | 中国电信股份有限公司 | Video playing method and device, electronic equipment and nonvolatile storage |
CN115484484A (en) * | 2022-08-30 | 2022-12-16 | 深圳市思为软件技术有限公司 | Screen projection control method and device for intelligent equipment, electronic equipment and storage medium |
CN115484484B (en) * | 2022-08-30 | 2024-05-14 | 深圳市思为软件技术有限公司 | Intelligent device screen-throwing control method and device, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113438527A (en) | Video screen projection method, device, equipment and storage medium | |
JP6700344B2 (en) | Information exchange method, device, audio terminal, computer-readable storage medium and program | |
EP2680500B1 (en) | Application discovery | |
CN102325144B (en) | Method and system for interconnection between media equipment and multimedia equipment | |
CN111427527B (en) | Screen projection method, device, equipment and computer readable storage medium | |
CN111405042B (en) | Electronic device discovery method and device, storage medium and electronic device | |
US20140075039A1 (en) | Networking method, server device, client device, and network system | |
CN113630574A (en) | Video call method and terminal equipment | |
CN103856506B (en) | Multi-screen synchronous method, apparatus and system | |
CN112738540A (en) | Multi-device live broadcast switching method, device and system, electronic device and readable storage medium | |
US11523146B2 (en) | Live broadcast method and apparatus, electronic device, and storage medium | |
CN103841466A (en) | Screen projection method, computer end and mobile terminal | |
CN112148245B (en) | Method and device for monitoring, adjusting and projecting screen, computer equipment, readable storage medium and monitoring, adjusting and projecting screen interaction system | |
CN112684995B (en) | Cross-screen input method and device | |
CN104202561A (en) | Method and device for playing stream media data | |
CN114040232A (en) | Screen projection system, method, electronic device and storage medium | |
CN109474646B (en) | Communication connection method, device, system and storage medium | |
CN110166823B (en) | Screen projection method and related device | |
CN106970849A (en) | A kind of on-screen data preparation method and device | |
JP2007158591A (en) | Content-switching discrimination system and switching designation terminal, and content-switching discrimination method | |
WO2017092323A1 (en) | Main control device, playing device and data transmission method therefor | |
CN112187486A (en) | Interaction method between intelligent devices and intelligent devices | |
US11656834B2 (en) | Information processing device, non-transitory recording medium, and information processing system | |
KR101406243B1 (en) | system and method for streaming service | |
CN111901648B (en) | Data sharing method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210924 |
|
RJ01 | Rejection of invention patent application after publication |