CN116916087A - Video screen projection method and device, electronic equipment and storage medium - Google Patents

Video screen projection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116916087A
CN116916087A CN202310922516.0A CN202310922516A CN116916087A CN 116916087 A CN116916087 A CN 116916087A CN 202310922516 A CN202310922516 A CN 202310922516A CN 116916087 A CN116916087 A CN 116916087A
Authority
CN
China
Prior art keywords
bluetooth
key
video
service
application key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310922516.0A
Other languages
Chinese (zh)
Inventor
刘倩
施栋栋
傅银玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310922516.0A priority Critical patent/CN116916087A/en
Publication of CN116916087A publication Critical patent/CN116916087A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Abstract

The invention relates to the technical field of wireless screen projection, and provides a video screen projection method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: starting Bluetooth service, and acquiring a Bluetooth name of a device side and a first universal unique identification code for identifying the Bluetooth service; uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end; integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code; after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers; and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier. The invention solves the protocol limitation and has the advantages of light protocol magnitude, high safety, low access complexity and the like.

Description

Video screen projection method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of wireless screen projection, in particular to a video screen projection method, a video screen projection device, electronic equipment and a storage medium.
Background
The current mainstream wireless screen-throwing technical scheme has the following 3 kinds: (1) DLNA: the method is a set of solution for realizing the digital living network, and requires that a control end and an equipment end are connected to the same network, so as to realize the interconnection, intercommunication and interoperation of the equipment in the local area network. The device interaction specification is defined on the basis of UPnP, and the control end searches/discovers available devices in the local area network based on the SSDP protocol and screens out devices with matched transmission protocols and data formats. Media resource URI and control instruction are transmitted through UDP protocol, and media resource playing and screen throwing control are realized; (2) AirPlay: the method is a set of private protocols for realizing software layer transmission and control of apple equipment, the application range is limited between the apple equipment, and media resources on iOS equipment such as iPhone and the like are transmitted to equipment supporting AirPlay protocol in a wireless mode through WiFi. Similar to DLNA, airPlay requires that the control end and the device end are connected to the same network, so as to implement interconnection, interworking and interoperability of devices in the local area network. AirPlay searches/discovers available equipment in a local area network based on an mDNS protocol (based on UDP protocol), transmits a media resource URI and a control instruction, and realizes media resource playing and screen throwing control; (3) Miracast: the wireless network card is widely applied to android system intelligent equipment and is based on a WiFi P2P protocol, namely, the wireless network cards of a control end and an equipment end are required to support the WiFi P2P protocol. Miracast has a service searching function, finds nearby Miracast equipment through a WiFi Direct technology, and achieves point-to-point interconnection through WiFi P2P. After interconnection is established, the control end and the equipment end establish TCP connection, and the media resource URI and the control instruction are transmitted through a TCP protocol, so that the media resource playing and the screen throwing control are realized.
The technical scheme of the existing video projection screen has the following 2 defects: (1) network limitations: all three schemes require that a control end and an equipment end are connected to the same network, and real-time interconnection and intercommunication are established by means of a local area network. If the devices are not in the same local area network, the device intercommunication and the data transmission cannot be realized, so that the screen throwing operation cannot be performed; (2) protocol limitations: the communication between the control end and the equipment end has strict standard protocol, and the control end and the equipment end are required to support corresponding protocols simultaneously, or the screen-throwing application matched with the protocols is installed at the two ends to realize the screen-throwing operation. This means that if the control end has multiple video applications with different protocols, the device end will need to install multiple matched screen-drop applications. It can be seen that the screen-casting protocols of different devices are diversified, resulting in extremely poor screen-casting compatibility between the devices.
Disclosure of Invention
The invention provides a video screen projection method, a video screen projection device, electronic equipment and a storage medium, which are used for solving the problems of network limitation and protocol limitation existing in the existing video screen projection technology.
In a first aspect, the present invention provides a video screen projection method, applied to a device side, including:
starting Bluetooth service, and acquiring a Bluetooth name of the equipment end and a first universal unique identification code for identifying the Bluetooth service;
Uploading a first application key of a device side and the first universal unique identification code to a server side to obtain a service key returned by the server side;
integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
after the security authentication is completed and Bluetooth connection is established based on the two-dimensional code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
and analyzing the message data, starting screen throwing, controlling video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player according to the video uniform resource identifier to play.
In a second aspect, the present invention further provides a video screen projection method, which is applied to a control end, and includes:
scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
uploading a second application key of the control terminal and the parsed service key to a server for security authentication verification to obtain Bluetooth information returned by the server;
after passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on an authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
After user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
and sending the control instruction and the video resource identifier to the equipment end in a message data mode through a Bluetooth channel so as to start screen throwing, video control or end screen throwing.
According to the video screen projection method provided by the invention, before the step of uploading the second application key of the control end and the parsed service key to the service end for security authentication verification, the method further comprises the following steps:
acquiring a data format corresponding to the two-dimensional code information;
judging whether the data format is consistent with the data format required by communication;
if not, judging that the two-dimensional code is not the two-dimensional code required by the screen throwing, generating corresponding first prompt information and ending;
if yes, carrying out security authentication verification.
According to the video screen projection method provided by the invention, the Bluetooth information comprises the following steps: bluetooth name and first universal unique identification code of the equipment end; correspondingly, the step of starting the Bluetooth service and establishing Bluetooth connection with the equipment end to be matched comprises the following steps:
starting Bluetooth service, scanning available equipment terminals around to obtain a list of equipment terminals to be matched;
And acquiring a second universal unique identification code of the control terminal, comparing the first universal unique identification code with the second universal unique identification code, acquiring a matched equipment terminal from the equipment terminal list, and establishing Bluetooth connection.
According to the video screen projection method provided by the invention, the step of sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel comprises the following steps:
based on the maximum length of one-time read-write of Bluetooth transmission, the message data is split into a plurality of framing messages, and the framing messages Wen Yi are sent to the equipment end in a sub-packaging mode.
In a third aspect, the present invention further provides a video screen projection method, which is applied to a server, where the server generates a first application key and issues the first application key to a device, and generates a second application key and issues the second application key to a control end, and the method includes:
receiving a key generation request of a device side;
acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
receiving a security authentication request of a control terminal;
acquiring a second application key of the control end;
Checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the second application key are authorized and the first application key and the Bluetooth information of the equipment end can be inquired according to the service key.
In a fourth aspect, the present invention further provides a video projection device, which is applied to a device side, including:
the acquisition module is used for starting the Bluetooth service and acquiring the Bluetooth name of the equipment end and a first universal unique identification code for identifying the Bluetooth service;
the service key generation module is used for uploading a first application key of the equipment end and the first universal unique identification code to the service end to obtain a service key returned by the service end;
the two-dimension code generation module is used for integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimension code;
the instruction receiving module is used for receiving message data sent by the control end after the two-dimensional code and the control end complete security authentication and establish Bluetooth connection, and the message data comprises: control instructions and video uniform resource identifiers;
The instruction analysis module is used for analyzing the message data, starting screen projection, controlling video or ending screen projection according to the analyzed control instruction, and calling a corresponding player according to the video uniform resource identifier for playing.
In a fifth aspect, the present invention further provides a video projection device, applied to a control terminal, including:
the scanning module is used for scanning the two-dimensional code of the equipment end and decrypting and analyzing the two-dimensional code information;
the uploading module is used for uploading the second application key of the control end and the parsed service key to the server end for security authentication verification to obtain Bluetooth information returned by the server end;
the authorization module is used for displaying the equipment information of the equipment end to be authorized on an authorization page based on the Bluetooth information after passing the security authentication verification so as to enable a user to select and authorize the equipment end to be authorized;
the Bluetooth connection module is used for starting Bluetooth service after authorization of a user and establishing Bluetooth connection with a device end to be matched;
and the instruction sending module is used for sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
In a sixth aspect, the present invention further provides a video screen projection device, which is applied to a server, where the server generates a first application key and issues the first application key to a device, and generates a second application key and issues the second application key to a control end, where the video screen projection device includes:
the first receiving module is used for receiving a key generation request of the equipment end;
the first acquisition module is used for acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
the second receiving module is used for receiving the security authentication request of the control end;
the second acquisition module is used for acquiring a second application key of the control end;
the security authentication module is used for checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the second application key are authorized and the first application key and the Bluetooth information of the equipment end can be inquired according to the service key.
In a seventh aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the video projection method according to any one of the above when executing the program.
In an eighth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a video projection method as described in any of the above.
According to the video screen projection method, the video screen projection device, the electronic equipment and the storage medium, bluetooth names of equipment ends and first universal unique identification codes for identifying Bluetooth services are obtained by starting the Bluetooth services; uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end; integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code; after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers; and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier. The invention establishes Bluetooth connection in a code scanning and trust mode, performs identity determination by checking an authorization key with a server, and establishes Bluetooth one-to-one connection by matching with a universal unique identification code. After the real-time connection is established, the control end transmits a control instruction and a video uniform resource identifier through the Bluetooth channel, and the equipment end analyzes the instruction and plays and controls the video. After the screen is withdrawn, the Bluetooth is synchronously closed at both ends. In the whole process, the communication flow for safety authentication adopts HTTPS protocol transmission, the communication flow for screen-throwing control adopts Bluetooth protocol transmission, the whole transmission process only has two protocols, the access complexity is low, and the protocol composition magnitude is lighter. The application key and the service key are introduced into the security authentication, so that the identity security and the trusted process are ensured to be reliable and non-tampered and forged, and the security is higher; and the equipment end and the control end are not required to be connected to the same local area network, and a real-time network channel is not required to be established, so that the problem of network limitation is solved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a video projection method according to an embodiment of the present invention;
fig. 2 is a topology diagram of a screen-casting control service corresponding to a video screen-casting method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a video projection method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a frame structure of a video projection method using packet transmission according to an embodiment of the present invention;
FIG. 5 is a third flowchart of a video projection method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a video projection method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video projection device according to an embodiment of the present invention;
FIG. 8 is a second schematic diagram of a video projection device according to an embodiment of the present invention;
FIG. 9 is a third schematic diagram of a video projection device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The following table is the Chinese expression, english expression and English shorthand of the related technical term in the invention:
the three solutions of DLNA, airPlay and Miracast are all composed of multiple protocols, such as network protocol, transmission control protocol, service discovery protocol, etc., and the protocols of each solution are different.
AirPlay is a native screen-throwing protocol of apple equipment, the application range is limited between the apple equipment, and Miracast is widely applied to android system equipment (smart phones, televisions, mobile tablets and the like). Although DLNA is compatible with most smart televisions on the market, the control end is required to use the same screen-throwing protocol to use the screen-throwing function. The screen-throwing protocols of different devices are diversified, the protocol compatibility is low, and the user experience is poor.
The prior proposal encapsulates UDP transmission protocol at the bottom layer, has no strict question-answer mechanism, and can cause packet loss phenomenon in message transmission. Too many protocols and improper protocol selection result in compromised data security. The existing schemes are all based on wireless network technology, a safety mechanism is required to be established in the equipment connection process, and a large amount of data is required to be transmitted in the control process, so that system resources (CPU, memory and the like) are occupied, power consumption (time, battery endurance and the like) is large, and the like.
Fig. 1 is a schematic flow chart of a video screen projection method according to an embodiment of the present invention. Referring to fig. 1, an embodiment of the present invention provides a video screen-casting method, which is applied to a client, and the method specifically includes the following steps:
step 101: starting Bluetooth service, and acquiring a Bluetooth name of a device side and a first universal unique identification code for identifying the Bluetooth service;
step 102: uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end;
step 103: integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
step 104: after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
Step 105: and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier.
In this embodiment, as shown in fig. 2, security authentication is performed through a server (cloud), and the device and the control end establish communication connection through a bluetooth protocol, so that an audio/video resource of the control end is projected on the device for playing. The control end comprises, but is not limited to, a tablet personal computer, a smart phone, a personal digital assistant (personal digital assistant, PDA) and the like, and the equipment end comprises, but is not limited to, a smart television, a large-screen equipment for screen projection and the like.
The equipment end analyzes the received control instruction transmitted in the form of message data and responds according to the control instruction. For example, starting to throw a screen according to the received screen throwing control instruction response, and pulling up a corresponding player to play according to the parsed video uniform resource identifier (video URI); based on other received instructions such as: playing, pausing, fast forwarding, switching video and the like for video control; and according to the received screen-throwing-out instruction, video playing is stopped, bluetooth connection is closed, and the screen-throwing service is ended.
The safety authentication communication flow adopts the HTTPS protocol, the screen-throwing control communication flow adopts the Bluetooth protocol, and the whole process only has the two protocols, so that the protocol composition order is lighter. And taking home service as a starting point, establishing a lightweight and safe communication mechanism between a control end (mobile terminal) and a device end (intelligent television), and realizing interconnection and intercommunication based on home scenes. Safety authentication is carried out through the cloud, screen projection control is carried out through a Bluetooth protocol, the video screen projection requirements of high compatibility and light protocol magnitude are met, and the network and protocol limitations between a screen projection control end and a device end are solved. Under the family business scene, mainly regard equipment end (intelligent television) as the center, carry out with the screen-throwing linkage of large screen with the help of control end (mobile terminal) user advantage, create many screen collaborative modes, promoted traditional viewing and interactive experience.
Furthermore, the invention supports the application and intelligent hardware expansion to educational media, intelligent home, entertainment video and the like, integrates and encrypts the first application key and the first universal unique identification code and the Bluetooth name of the equipment end to generate corresponding two-dimensional codes, and can realize communication and control by one-time code scanning and credit giving. And the design mode of 'application + cloud service' is adopted, no matter which protocol scheme is integrated at the equipment end, the screen throwing operation can be realized by only installing the corresponding application APP.
Fig. 3 is a second flowchart of a video projection method according to an embodiment of the present invention. Referring to fig. 3, an embodiment of the present invention provides a video screen projection method, which is applied to a control end, and the method specifically includes the following steps:
step 201: scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
step 202: uploading the second application key of the control terminal and the parsed service key to the server terminal for security authentication verification to obtain Bluetooth information returned by the server terminal;
in this embodiment, before step 202, the method further includes:
acquiring a data format corresponding to the two-dimensional code information;
judging whether the data format is consistent with the data format required by communication;
if not, judging that the two-dimensional code is not the two-dimensional code required by the screen throwing, generating corresponding first prompt information and ending;
if yes, carrying out security authentication verification.
Specifically, decrypting and analyzing the two-dimensional code information to obtain a corresponding data format, and if the data format is inconsistent with the data format required by communication (generally, JSON data format), explaining the two-dimensional code in the non-book service scheme of the two-dimensional code, generating corresponding prompt information by the control terminal: and (3) invalid two-dimension codes please scan the correct two-dimension codes, feeding back the prompt information to the user, and ending the screen-throwing service.
In this embodiment, step 202 specifically includes:
initiating a security authentication request to a server, and uploading a second application key of a control terminal and the parsed service key as authentication parameters;
judging whether the verification is successful or not based on authentication information returned by the server side;
if not, judging that errors exist in the key verification process, and generating corresponding prompt information: the parameter verification fails, the connection is abnormal, and the screen throwing service is finished;
if so, acquiring the Bluetooth name and the first universal unique identification code of the equipment end.
Step 203: after passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on the authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
specifically, after the control terminal enters the authorization page, the device information of the device terminal to be authorized is displayed, and whether the user operation is authorized or not is based on the fact that the user operation is authorized. If the user is not authorized, the service is terminated, and corresponding prompt information is generated: "user has cancelled the screen; if the user agrees to the authorization, the screen-casting service continues.
Step 204: after user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
In this embodiment, the bluetooth information includes: bluetooth name and first universal unique identification code of the equipment end; step 204 specifically includes:
starting Bluetooth service, scanning available equipment terminals around to obtain a list of equipment terminals to be matched;
and acquiring a second universal unique identification code of the control terminal, comparing the first universal unique identification code with the second universal unique identification code, acquiring a matched equipment terminal from the equipment terminal list, and establishing Bluetooth connection.
Specifically, transmission control is performed based on the Bluetooth protocol, and compared with the WIFI protocol, the Bluetooth communication device has lower power consumption. The Bluetooth pairing connection between the control terminal (mobile terminal) and the equipment terminal (intelligent television) is realized by adopting an elliptic curve asymmetric encryption mode to exchange public keys and store private keys, calculating a shared Key according to the public keys and the private keys, authenticating through the shared Key, and generating a connection Key (Link Key) through the shared Key after the authentication is passed. The authentication process is completed by verifying that the two devices have the same key, forming a trusted connection. In the transmission process of the control instruction, the integrity of the data frame is checked to prevent message forging and tampering.
Step 205: and sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
In this embodiment, step 205 specifically includes:
based on the maximum length of one-time read-write of Bluetooth transmission, the message data is split into a plurality of framing messages, and the framing messages Wen Yi are sent to the equipment end in a sub-packaging mode.
Specifically, the control command includes various control commands, video URI, etc., the message data length exceeds the single transmission length, and the Bluetooth transmission is characterized in that the maximum length of the primary read-write data is 20 bytes, so that the message data is split into a plurality of frame-divided messages, and a sub-packet transmission mode is adopted. As shown in fig. 4, first, frame structure design is performed: the first frame comprises a frame header, a frame sequence number and a frame total number; the second frame starts to contain a frame header, a frame sequence number, and a data byte. The frame header is used for identifying the identity of the transmitting end, the frame sequence number is used for the subsequent packet sequence, the total number of frames is the number of the packets, and the data bytes are the data segments after the control instruction packets. The design of the control instruction and the selection of the data type adopt a minimum byte occupation rule so as to improve the transmission rate. If the data length of one control instruction is 133 bytes, the frame header and the frame sequence number occupy 1 byte respectively, and the maximum length is 20 bytes, then the maximum length of splitting is 18 bytes, 133=18x7+7, and the total number of splitting is 8, and the necessary first frame is added, and the total number of 9 packets is 9. Therefore, the control instruction adopts Bluetooth sub-packet transmission, and the transmission rate is higher, so that the Bluetooth sub-packet transmission system has the characteristics of high efficiency and low consumption.
In this embodiment, the control terminal scans the code to obtain the device information, establishes bluetooth connection with the device terminal in a code scanning and trust transmitting manner, performs identity determination by checking the authorization key to the cloud, and establishes bluetooth one-to-one connection by matching the peripheral UUID. The device information is obtained by adopting a code scanning mode, and the obtaining mode is simpler and more direct. Compared with the prior art that a user is required to select the target screen equipment from the screen equipment list, the method and the device can effectively avoid the error connection risk caused by subjective operation of the user.
After the real-time connection is established, the control end transmits the control instruction and the video URI through the Bluetooth channel, and the equipment end analyzes the instruction and plays and controls the video. After the screen is withdrawn, the Bluetooth is synchronously closed at both ends. In the whole process, the server side verification authorization key adopts the HTTPS protocol to carry out reliable data transmission, the equipment side and the control side are not required to be connected to the same local area network, and a real-time network channel is not required to be established, so that the problem of network limitation is solved.
Fig. 5 is a third flowchart of a video projection method according to an embodiment of the present invention. Referring to fig. 5, an embodiment of the present invention provides a video screen projection method, which is applied to a server, where the server generates a first application key and issues the first application key to a device, and generates a second application key and issues the second application key to a control end, where the method specifically includes the following steps:
Step 301: receiving a key generation request of a device side;
step 302: acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
and taking the first application key AppSecret of the equipment end and a Bluetooth universal unique identification code (UUID) of the equipment end as the access parameters, and requesting a corresponding API interface of the service end to obtain a service key servicescript.
Step 303: receiving a security authentication request of a control terminal;
step 304: acquiring a second application key of the control end;
step 305: checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the Bluetooth information of the equipment end can be inquired according to the service key when the first application key and the second application key are both authorized.
The specific steps of requesting the corresponding API interface of the server to carry out security authentication by taking the second application key AppSecret of the control end and the service key ServiceSecret in the two-dimension code of the equipment end as the parameters are as follows:
checking whether the second application key is authorized;
If not, prompting that the authorization fails and ending;
if yes, whether a first application key and Bluetooth information of the equipment end are queried according to the service key;
if not, the inquiry fails, and the service key is prompted to be invalid and ended;
if yes, checking whether the first application key is authorized, if yes, returning Bluetooth information of the equipment end, and if not, prompting that the authorization is failed and ending.
Specifically, the keys are classified into an application key AppSecret and a service key servicescript. The application key is generated by adopting an SHA1 algorithm and distributed by a server, and the equipment end and the control end are used, and the application key has the functions that: the server confirms which end is used for making data request, and the identity is determined through the key so as to make access authority management. The service key is generated by combining a Bluetooth universal unique identification code (UUID) of the device, an application key, a vector value and the like with an encryption algorithm, and has the functions of: service protection and security authentication, and ensures reliable code scanning and credit giving process, and falsification and counterfeiting.
In this embodiment, an application key AppSecret is introduced to determine an identity for access rights management, so as to implement authorized access. The service key servicecut is introduced for ensuring that the code-scanning trust procedure is reliable and non-tampered and counterfeited. Therefore, double-layer protection is realized, and the security of the trust process is improved.
Referring to fig. 6, the invention adopts a code scanning and credit granting mode to carry out security authentication and bluetooth connection, and carries out screen-throwing control through a bluetooth real-time channel, and the detailed working flow is as follows:
s101: when the device side enters the two-dimension code display page, the Bluetooth service is started, and after the service is started, the Bluetooth name and the Bluetooth UUID of the device are automatically generated.
S102: and taking a first application key AppSecret (generated and distributed by a server) and Bluetooth UUID of the equipment side as the access parameters, and requesting the server side API to obtain a service key ServiceSecret.
S103: and integrating and encrypting the Bluetooth name and the service key of the equipment end, and generating a two-dimensional code for presentation.
S104: the control end enters a code scanning page, and the two-dimensional code of the scanning equipment end acquires equipment related information.
S105: decrypting and analyzing the two-dimensional code information to obtain a data format, and if the data format is inconsistent with the communication requirement, indicating that the two-dimensional code is not the two-dimensional code of the screen-throwing service, and the control terminal will give a corresponding prompt to the user, so that the service is not continued.
S106: taking a second application key AppSecret (generated and distributed by a server) of the control end and a service key in the two-dimension code as access parameters, requesting the server API to check, and terminating the service when the check fails; and successfully checking, acquiring the Bluetooth name and the UUID of the equipment end, and continuing the service.
S107: after the control end enters the authorization page, the equipment information to be authorized is displayed, and whether authorization is given or not is based on user operation. If the user is not authorized, terminating the service; the user agrees to the authorization, and the service continues.
S108: and starting Bluetooth service, and scanning available Bluetooth equipment around to obtain a Bluetooth peripheral list.
S109: and obtaining matched screen throwing equipment by comparing Bluetooth UUIDs of the control ends, and then carrying out pairing connection to establish a one-to-one Bluetooth communication channel.
S110: and processing the screen-throwing control instruction and the video URI into a message, and transmitting the packet through a Bluetooth channel.
S111: and the equipment receives the message, analyzes the instruction, and responds according to the instruction.
S112: the device side pulls up the corresponding player to play according to the parsed video URI, and receives other control instructions such as: play, pause, fast forward, switch video, etc.
S113: after the control end operates to exit the screen, the instruction is synchronized to the equipment end, and then the Bluetooth connection is closed.
S114: and the equipment receives the screen-throwing instruction, the video playing is stopped, the Bluetooth connection is closed, and the screen-throwing service is finished.
The video screen projection device provided by the embodiment of the invention is described below, and the video screen projection device described below and the video screen projection method described above can be referred to correspondingly.
Fig. 7 is a schematic structural diagram of a video projection device according to an embodiment of the present invention. Referring to fig. 7, a video projection device provided by an embodiment of the present invention is applied to a device side, and includes:
an obtaining module 401, configured to start a bluetooth service, and obtain a bluetooth name of the device side and a first universal unique identification code for identifying the bluetooth service;
the service key generation module 402 is configured to upload a first application key and a first universal unique identifier of the device side to the server side, so as to obtain a service key returned by the server side;
the two-dimension code generating module 403 is configured to integrate and encrypt the bluetooth name and the service key, and generate a corresponding two-dimension code;
the instruction receiving module 404 is configured to receive, after the security authentication is completed and the bluetooth connection is established based on the two-dimensional code and the control end, message data sent by the control end, where the message data includes: control instructions and video uniform resource identifiers;
the instruction parsing module 405 is configured to parse the message data, start the screen throwing according to the parsed control instruction, control the video, or end the screen throwing, and invoke a corresponding player according to the video uniform resource identifier to play.
Fig. 8 is a second schematic structural diagram of a video projection device according to an embodiment of the present invention. Referring to fig. 8, an embodiment of the present invention provides a video projection device, where the device is applied to a control terminal, and includes:
the scanning module 501 is used for scanning the two-dimensional code of the equipment end and decrypting and analyzing the two-dimensional code information;
the uploading module 502 is configured to upload the second application key of the control end and the parsed service key to the server end for security authentication verification, so as to obtain bluetooth information returned by the server end;
the authorization module 503 is configured to display, on an authorization page, device information of a device to be authorized based on bluetooth information after passing the security authentication verification, so that a user can select and authorize the device to be authorized;
the bluetooth connection module 504 is configured to start a bluetooth service after user authorization, and establish a bluetooth connection with a device to be matched; the bluetooth connection module 504 is specifically configured to:
acquiring a Bluetooth name and a first universal unique identification code of a device side; starting Bluetooth service, scanning available equipment terminals around to obtain a list of equipment terminals to be matched; and acquiring a second universal unique identification code of the control terminal, comparing the first universal unique identification code with the second universal unique identification code, acquiring a matched equipment terminal from the equipment terminal list, and establishing Bluetooth connection.
The instruction sending module 505 is configured to send a control instruction and a video resource identifier to a device end in a packet data manner through a bluetooth channel, so as to start screen projection, video control, or end screen projection; the instruction sending module 505 is specifically configured to:
based on the maximum length of one-time read-write of Bluetooth transmission, the message data is split into a plurality of framing messages, and the framing messages Wen Yi are sent to the equipment end in a sub-packaging mode.
Optionally, the apparatus further comprises: the judging module is specifically configured to:
acquiring a data format corresponding to the two-dimensional code information; judging whether the data format is consistent with the data format required by communication; if not, judging that the two-dimensional code is not the two-dimensional code required by the screen throwing, generating corresponding first prompt information and ending; if yes, carrying out security authentication verification.
Fig. 9 is a third schematic structural diagram of a video projection device according to an embodiment of the present invention. Referring to fig. 9, the video screen projection device provided by the embodiment of the present invention is applied to a server, where the server generates a first application key and issues the first application key to a device, and generates a second application key and issues the second application key to a control end, and includes:
a first receiving module 601, configured to receive a key generation request from a device side;
The first obtaining module 602 is configured to obtain a first application key and a first universal unique identifier of the device side, generate a corresponding service key, and send the service key to the device side;
a second receiving module 603, configured to receive a security authentication request from a control end;
a second obtaining module 604, configured to obtain a second application key of the control end;
the security authentication module 605 is configured to verify whether the first application key and the second application key are authorized, query whether the first application key and the bluetooth information of the device side exist according to the service key, and return the bluetooth information of the device side if the first application key and the second application key are both authorized and the first application key and the bluetooth information of the device side can be queried according to the service key; the security authentication module 605 is specifically configured to:
checking whether the second application key is authorized; if not, prompting that the authorization fails and ending;
if yes, whether a first application key and Bluetooth information of the equipment end are queried according to the service key; if not, the inquiry fails, and the service key is prompted to be invalid and ended; if yes, checking whether the first application key is authorized, if yes, returning Bluetooth information of the equipment end, and if not, prompting that the authorization is failed and ending.
Fig. 10 illustrates a physical structure diagram of an electronic device, as shown in fig. 10, which may include: processor 710, communication interface (Communication Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may call a computer program in memory 730 to perform the video projection method provided in the above embodiment, and the method is applied to the device side, and includes:
starting Bluetooth service, and acquiring a Bluetooth name of a device side and a first universal unique identification code for identifying the Bluetooth service;
uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end;
integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier.
Or, executing a video screen projection method, and applying the video screen projection method to a control terminal, wherein the method comprises the following steps:
scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
uploading the second application key of the control terminal and the parsed service key to the server terminal for security authentication verification to obtain Bluetooth information returned by the server terminal;
after passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on the authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
after user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
and sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
Or, executing a video screen projection method, and applying the video screen projection method to a server, wherein the method comprises the following steps:
receiving a key generation request of a device side;
acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
acquiring a second application key of the control end;
checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the Bluetooth information of the equipment end can be inquired according to the service key when the first application key and the second application key are both authorized.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, where the computer program may be stored on a non-transitory computer readable storage medium, where the computer program when executed by a processor is capable of executing the video projection method provided in the foregoing embodiment, and the method is applied to a device side, and includes:
Starting Bluetooth service, and acquiring a Bluetooth name of a device side and a first universal unique identification code for identifying the Bluetooth service;
uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end;
integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier.
Or, executing a video screen projection method, and applying the video screen projection method to a control terminal, wherein the method comprises the following steps:
scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
uploading the second application key of the control terminal and the parsed service key to the server terminal for security authentication verification to obtain Bluetooth information returned by the server terminal;
after passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on the authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
After user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
and sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
Or, executing a video screen projection method, and applying the video screen projection method to a server, wherein the method comprises the following steps:
receiving a key generation request of a device side;
acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
acquiring a second application key of the control end;
checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the Bluetooth information of the equipment end can be inquired according to the service key when the first application key and the second application key are both authorized.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented when executed by a processor to perform a video projection method as provided in the above embodiment, and being applied to a device side, the method comprising:
Starting Bluetooth service, and acquiring a Bluetooth name of a device side and a first universal unique identification code for identifying the Bluetooth service;
uploading a first application key and a first universal unique identification code of the equipment end to a server end to obtain a service key returned by the server end;
integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
after the security authentication is completed and the Bluetooth connection is established based on the two-dimension code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
and analyzing the message data, starting screen throwing, controlling the video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player to play according to the video uniform resource identifier.
Or, executing a video screen projection method, and applying the video screen projection method to a control terminal, wherein the method comprises the following steps:
scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
uploading the second application key of the control terminal and the parsed service key to the server terminal for security authentication verification to obtain Bluetooth information returned by the server terminal;
after passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on the authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
After user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
and sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
Or, executing a video screen projection method, and applying the video screen projection method to a server, wherein the method comprises the following steps:
receiving a key generation request of a device side;
acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
acquiring a second application key of the control end;
checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the Bluetooth information of the equipment end can be inquired according to the service key when the first application key and the second application key are both authorized.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. The video screen projection method is characterized by being applied to a device side and comprising the following steps of:
starting Bluetooth service, and acquiring a Bluetooth name of the equipment end and a first universal unique identification code for identifying the Bluetooth service;
uploading a first application key of a device side and the first universal unique identification code to a server side to obtain a service key returned by the server side;
integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimensional code;
after the security authentication is completed and Bluetooth connection is established based on the two-dimensional code and the control end, receiving message data sent by the control end, wherein the message data comprises: control instructions and video uniform resource identifiers;
and analyzing the message data, starting screen throwing, controlling video or ending screen throwing according to the analyzed control instruction, and calling a corresponding player according to the video uniform resource identifier to play.
2. The video screen projection method is characterized by being applied to a control end and comprising the following steps of:
scanning a two-dimensional code of the equipment end, and decrypting and analyzing the two-dimensional code information;
uploading a second application key of the control terminal and the parsed service key to a server for security authentication verification to obtain Bluetooth information returned by the server;
After passing the security authentication verification, displaying the equipment information of the equipment end to be authorized on an authorization page based on the Bluetooth information so as to enable a user to select and authorize the equipment end to be authorized;
after user authorization, starting a Bluetooth service, and establishing Bluetooth connection with a device end to be matched;
and sending the control instruction and the video resource identifier to the equipment end in a message data mode through a Bluetooth channel so as to start screen throwing, video control or end screen throwing.
3. The video projection method according to claim 2, further comprising, before the step of uploading the second application key of the control terminal and the parsed service key to the server terminal for security authentication verification:
acquiring a data format corresponding to the two-dimensional code information;
judging whether the data format is consistent with the data format required by communication;
if not, judging that the two-dimensional code is not the two-dimensional code required by the screen throwing, generating corresponding first prompt information and ending;
if yes, carrying out security authentication verification.
4. The video projection method of claim 2, wherein the bluetooth information comprises: bluetooth name and first universal unique identification code of the equipment end; correspondingly, the step of starting the Bluetooth service and establishing Bluetooth connection with the equipment end to be matched comprises the following steps:
Starting Bluetooth service, scanning available equipment terminals around to obtain a list of equipment terminals to be matched;
and acquiring a second universal unique identification code of the control terminal, comparing the first universal unique identification code with the second universal unique identification code, acquiring a matched equipment terminal from the equipment terminal list, and establishing Bluetooth connection.
5. The video projection method according to claim 2, wherein the step of sending the control command and the video resource identifier to the device side in a message data manner through a bluetooth channel includes:
based on the maximum length of one-time read-write of Bluetooth transmission, the message data is split into a plurality of framing messages, and the framing messages Wen Yi are sent to the equipment end in a sub-packaging mode.
6. The video screen projection method is characterized by being applied to a server, wherein the server generates a first application key and transmits the first application key to a device side, and generates a second application key and transmits the second application key to a control side, and the method comprises the following steps:
receiving a key generation request of a device side;
acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
Receiving a security authentication request of a control terminal;
acquiring a second application key of the control end;
checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the second application key are authorized and the first application key and the Bluetooth information of the equipment end can be inquired according to the service key.
7. A video projection device, applied to a device side, comprising:
the acquisition module is used for starting the Bluetooth service and acquiring the Bluetooth name of the equipment end and a first universal unique identification code for identifying the Bluetooth service;
the service key generation module is used for uploading a first application key of the equipment end and the first universal unique identification code to the service end to obtain a service key returned by the service end;
the two-dimension code generation module is used for integrating and encrypting the Bluetooth name and the service key to generate a corresponding two-dimension code;
the instruction receiving module is used for receiving message data sent by the control end after the two-dimensional code and the control end complete security authentication and establish Bluetooth connection, and the message data comprises: control instructions and video uniform resource identifiers;
The instruction analysis module is used for analyzing the message data, starting screen projection, controlling video or ending screen projection according to the analyzed control instruction, and calling a corresponding player according to the video uniform resource identifier for playing.
8. A video projection device, applied to a control terminal, comprising:
the scanning module is used for scanning the two-dimensional code of the equipment end and decrypting and analyzing the two-dimensional code information;
the uploading module is used for uploading the second application key of the control end and the parsed service key to the server end for security authentication verification to obtain Bluetooth information returned by the server end;
the authorization module is used for displaying the equipment information of the equipment end to be authorized on an authorization page based on the Bluetooth information after passing the security authentication verification so as to enable a user to select and authorize the equipment end to be authorized;
the Bluetooth connection module is used for starting Bluetooth service after authorization of a user and establishing Bluetooth connection with a device end to be matched;
and the instruction sending module is used for sending the control instruction and the video resource identifier to the equipment end in a message data mode through the Bluetooth channel so as to start screen throwing, video control or end screen throwing.
9. The video screen projection device is characterized by being applied to a server, wherein the server generates a first application key and transmits the first application key to a device side, and generates a second application key and transmits the second application key to a control side, and the video screen projection device comprises:
the first receiving module is used for receiving a key generation request of the equipment end;
the first acquisition module is used for acquiring a first application key and a first universal unique identification code of the equipment end, generating a corresponding service key and sending the service key to the equipment end;
the second receiving module is used for receiving the security authentication request of the control end;
the second acquisition module is used for acquiring a second application key of the control end;
the security authentication module is used for checking whether the first application key and the second application key are authorized, inquiring whether the first application key and the Bluetooth information of the equipment end exist according to the service key, and returning the Bluetooth information of the equipment end under the condition that the first application key and the second application key are authorized and the first application key and the Bluetooth information of the equipment end can be inquired according to the service key.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the video projection method of any of claims 1-6 when the program is executed by the processor.
11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the video projection method of any of claims 1-6.
CN202310922516.0A 2023-07-25 2023-07-25 Video screen projection method and device, electronic equipment and storage medium Pending CN116916087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922516.0A CN116916087A (en) 2023-07-25 2023-07-25 Video screen projection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922516.0A CN116916087A (en) 2023-07-25 2023-07-25 Video screen projection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116916087A true CN116916087A (en) 2023-10-20

Family

ID=88357968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922516.0A Pending CN116916087A (en) 2023-07-25 2023-07-25 Video screen projection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116916087A (en)

Similar Documents

Publication Publication Date Title
US10536856B2 (en) Communication control apparatus, system, and method therefor
US10038773B2 (en) Communication systems and methods
EP3425566B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US9628585B2 (en) Systems and methods for cross-layer secure connection set up
WO2017041675A1 (en) Method for sending and acquiring wifi networking information and corresponding apparatus
CN109862605B (en) Networking method and equipment for terminal equipment
KR101960062B1 (en) Content Sharing Method and Device Thereof
CN104137618A (en) Shared network access via a peer-to-peer link
CN105338529B (en) Wireless network connection method and system
EP2210389B1 (en) Apparatus, method, and computer program for establishing a service session
CN111988660A (en) DLNA equipment screen projection method, gateway, terminal and system
CN113194476B (en) Equipment activation and authentication binding method
CN107211265A (en) The safety interacting method and device of a kind of terminal room
US20230353805A1 (en) Methods, systems, and media for presenting media content items using multiple devices
CN116916087A (en) Video screen projection method and device, electronic equipment and storage medium
CN115442061A (en) Security authentication method, readable medium, and electronic device
CN116761167B (en) Data encryption transmission method, system, electronic equipment and storage medium
CN114080004B (en) Private network access method and device
CN109981420B (en) Intelligent device network distribution method and intelligent device
WO2023141876A1 (en) Data transmission method, apparatus and system, electronic device, and readable medium
CN117939209A (en) Methods, systems, and media for presenting media content items using multiple devices
CN111756558A (en) Network distribution method and device of household electrical appliance and network distribution system of household electrical appliance
CN117749596A (en) Wireless network access method, wireless network access device, electronic equipment and storage medium
CN117221029A (en) Intelligent household equipment network distribution method and device, electronic equipment and storage medium
CN106993283A (en) Method for discovering equipment, device and system

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