[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112135186B - Screen projection method, device, equipment and storage medium based on small program - Google Patents

Screen projection method, device, equipment and storage medium based on small program Download PDF

Info

Publication number
CN112135186B
CN112135186B CN202011001918.XA CN202011001918A CN112135186B CN 112135186 B CN112135186 B CN 112135186B CN 202011001918 A CN202011001918 A CN 202011001918A CN 112135186 B CN112135186 B CN 112135186B
Authority
CN
China
Prior art keywords
screen
screen projection
request
sending
projection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011001918.XA
Other languages
Chinese (zh)
Other versions
CN112135186A (en
Inventor
陈锡华
李凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Happycast Technology Co Ltd
Original Assignee
Shenzhen Happycast 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 Shenzhen Happycast Technology Co Ltd filed Critical Shenzhen Happycast Technology Co Ltd
Priority to CN202011001918.XA priority Critical patent/CN112135186B/en
Publication of CN112135186A publication Critical patent/CN112135186A/en
Application granted granted Critical
Publication of CN112135186B publication Critical patent/CN112135186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to the field of data screen projection, and discloses a screen projection method, a device, equipment and a storage medium based on an applet. The method comprises the following steps: receiving a registration request sent by a screen projection data display screen to be received; generating a screen-throwing verification code based on the registration request according to a preset response algorithm, and sending the screen-throwing verification code to the display screen; receiving a screen projection verification request of a to-be-sent screen projection data small program server, and comparing the screen projection verification request with the screen projection verification code to obtain a comparison result matrix; according to the comparison result matrix, sending the receiving IP address of the display screen to the applet server; receiving a screen projection request of target data sent by the small program server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to the display screen.

Description

Screen projection method, device, equipment and storage medium based on small program
Technical Field
The invention relates to the field of data screen projection, in particular to a screen projection method, device, equipment and storage medium based on a small program.
Background
Internet technology is continuously developed, people use more and more intelligent mobile terminals, and APP applications on smart phones cannot be developed. Through the vigorous development for a period of time, people use mobile phone APP to have certain habits, and in the process of using the mobile phone, people cannot install new APP on the APP with the same functions. Due to the characteristics, a brand-new application applet is generated, and the applet develops a new application technology in the APP through a new software development technology on the basis of the traditional APP.
As applet applications are widely emerging on individual APP programs, this technology is becoming a technology that replaces the same function as the original traditional, similar technology to container technology. However, in the field of data screen projection, no similar applet application realizes the function, and a screen projection method based on an applet needs to be developed by adapting to technical progress.
Disclosure of Invention
The invention mainly aims to solve the technical problem of realizing data screen projection in a small program environment.
The invention provides a screen projection method based on an applet in a first aspect, which comprises the following steps:
receiving a registration request sent by a screen projection data display screen to be received;
Generating a screen-throwing verification code based on the registration request according to a preset response algorithm, and sending the screen-throwing verification code to the display screen;
receiving a screen projection verification request of a to-be-sent screen projection data small program server, and comparing the screen projection verification request with the screen projection verification code to obtain a comparison result matrix;
according to the comparison result matrix, sending the receiving IP address of the display screen to the applet server;
receiving a screen projection request of target data sent by the small program server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to the display screen.
Optionally, in a first implementation manner of the first aspect of the present invention, the registration request includes: the generating a screen-projection verification code based on the registration request according to a preset response algorithm comprises the following steps:
extracting the equipment feature code and the receiving IP address in the registration request;
and transcoding the equipment feature code and the received IP address according to a preset generation algorithm to generate a screen projection verification code.
Optionally, in a second implementation manner of the first aspect of the present invention, the comparing the screen-projection verification request with the screen-projection verification code to obtain a comparison result matrix includes:
analyzing the screen projection verification request to obtain a request equipment feature code in the screen projection verification request;
and carrying out character sequential comparison processing on the request equipment feature code and the equipment feature code in the screen projection verification code to generate a comparison result matrix.
Optionally, in a third implementation manner of the first aspect of the present invention, the sending the device feature code of the display screen to the applet server according to the comparison result matrix includes:
judging whether elements corresponding to character mismatching exist in the comparison result matrix;
if the screen-projecting verification code does not exist, reading the equipment feature code of the display screen in the screen-projecting verification code, and sending the equipment feature code to the applet server;
and if so, sending an updating sending instruction to the applet server.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the screen-throwing request includes: the sending of the IP address, the receiving of the IP address and the identification feature code corresponding to the target data, the generation of the screen-projecting instruction of the target data according to the screen-projecting request and the sending of the screen-projecting instruction to the display screen comprise:
Converting the IP address and the identification feature code to generate a screen projection instruction;
and sending the screen projection instruction to the receiving IP address.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the sending the screen-throwing instruction to the display screen, the method further includes:
judging whether screen projection completion information fed back and transmitted by the display screen is received or not;
if so, determining the screen projection request as a completion state, and sending the screen projection completion information to the applet server;
and if not, sending the screen projection instruction to the display screen.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the sending the screen-throwing instruction to the display screen, the method further includes:
receiving a screen projection ending instruction sent by the small program server;
generating a screen projection ending request according to the screen projection ending instruction, and sending the screen projection ending request to the display screen;
and receiving the state feedback information of the display screen, and sending the state feedback information to the applet server.
The invention provides a screen projection device based on an applet in a second aspect, which comprises:
The receiving module is used for receiving a registration request sent by a screen projection data display screen to be received;
the generating module is used for generating a screen projection verification code based on the registration request according to a preset response algorithm and sending the screen projection verification code to the display screen;
the comparison module is used for receiving a screen projection verification request of a small program server of screen projection data to be sent, and comparing the screen projection verification request with the screen projection verification code to obtain a comparison result matrix;
the sending module is used for sending the receiving IP address of the display screen to the applet server according to the comparison result matrix;
and the screen projection module is used for receiving a screen projection request of target data sent by the small program server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to the display screen.
A third aspect of the present invention provides a screen projection device based on an applet, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the applet-based screen projection apparatus to perform the applet-based screen projection method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described applet-based screen projection method.
Drawings
FIG. 1 is a diagram of a first embodiment of a screen projection method based on an applet in an embodiment of the present invention;
FIG. 2 is a diagram of a second embodiment of the applet-based screen projection method in accordance with the present invention;
FIG. 3 is a diagram of a third embodiment of a screen projection method based on an applet in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a screen projection device based on an applet in an embodiment of the invention;
FIG. 5 is a schematic diagram of another embodiment of a screen projection device based on an applet in an embodiment of the invention;
FIG. 6 is a diagram of an embodiment of a widget-based screen projection device according to an embodiment of the invention;
fig. 7 is a schematic diagram of an overall implementation of a small program-based screen projection method, device, equipment and storage medium according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a screen projection method, a screen projection device, screen projection equipment and a storage medium based on an applet.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of the screen projection method based on an applet in the embodiment of the present invention includes:
101. receiving a registration request sent by a screen projection data display screen to be received;
in this embodiment, before screen projection is implemented, a display screen that needs to receive screen projection data sends device registration information, where the display screen may be a screen of a desktop computer, an internet television, or a tablet computer, and sends a registration request to the server of the present invention through a USB data line or a wireless communication link.
102. Generating a screen projection verification code based on the registration request according to a preset response algorithm, and sending the screen projection verification code to a display screen;
in this embodiment, the registration information is a pre-posed behavior of screen projection, and is different from the prior art that the device information is captured by the device in the same WiFi environment, according to the sent registration request, the screen projection verification code of the feedback information is generated based on the specific information of the device name, the physical IP address, the request time, and the like in the registration request according to the built-in Pin code generation algorithm or the two-dimensional code generation algorithm, and then the screen projection verification code is returned to the display screen according to the sent registration request.
103. Receiving a screen projection verification request of a screen projection data small program server to be sent, and comparing the screen projection verification request with a screen projection verification code to obtain a comparison result matrix;
in this embodiment, the fed-back screen-projection verification code is already displayed on the display screen, when the user uses the screen-projection verification code scanned in the applet, the applet server analyzes the screen-projection verification code, decodes and feeds back the characteristic information of the screen-projection verification code as a screen-projection verification request, and sends the screen-projection verification request to the application. When the screen projection verification code is generated, a private key can be generated for verifying the data request by feature verification, and a comparison result matrix is generated. And comparing the device request feature codes in sequence, recording the corresponding feature code characters as 0 if the comparison is successful, and recording the corresponding feature code characters as 1 if the comparison is unsuccessful. For example: the device request feature code is that the QWEEEEE has 8 characters in total, and the 8 characters are matched after comparison to generate a (0, 0,0,0, 0) comparison result matrix.
104. According to the comparison result matrix, sending the receiving IP address of the display screen to the small program server;
in this embodiment, if the recording result of the comparison result matrix is qualified, the physical IP address sent by the display screen during the registration application is sent to the applet server, the applet server generates a screen projection request for the data to be projected in the applet according to the physical IP address and the display modulation code, and then sends the data to be projected according to the screen projection request.
105. Receiving a screen projection request of target data sent by the applet server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to a display screen.
In this embodiment, a screen-casting request sent by the applet server is received, a physical IP address in the screen-casting request and an acquisition address of target data cast a video, an audio, and a picture in the target data, and the data is displayed on a screen such as a television by the applet server and the server of the present invention to complete this screen-casting.
In the embodiment of the invention, the verification code is displayed on the screen through the registration of the screen, and the small program finishes screen projection on the screen by acquiring the verification code on the screen. The function of completing data screen projection in a small program environment is realized, and the application range of the screen projection technology is expanded.
Referring to fig. 2, a second embodiment of the screen projection method based on an applet according to the embodiment of the present invention includes:
201. receiving a registration request sent by a screen projection data display screen to be received;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
202. The registration request includes: the equipment feature code of the display screen, the receiving IP address of the display screen, and the equipment feature code and the receiving IP address in the registration request are extracted;
in the embodiment, the registration request includes { equipment: DSADSDS IP:122.SS.25.56}, and the DSADSDS and 122.SS.25.56 are extracted.
203. According to a preset generation algorithm, transcoding the equipment feature code and the received IP address to generate a screen projection verification code;
in the embodiment, the screen-projecting verification code containing the DSADSDS and 122.ss.25.56 is generated according to the existing two-dimensional code generation technology or the pin code generation technology.
204. Sending the screen projection verification code to a display screen;
in this embodiment, the screen projection verification code may be sent to the display screen through a USB data line or a wireless transmission technology.
205. Receiving a screen projection verification request of a to-be-sent screen projection data small program server, and analyzing the screen projection verification request to obtain a request equipment feature code in the screen projection verification request;
In this embodiment, the mobile phone scans the screen-casting verification code in the screen through the applet, and then sends the screen-casting verification code to the invention according to the analyzed data.
206. Carrying out character sequential comparison processing on the request equipment feature code and the equipment feature code in the screen projection verification code to generate a comparison result matrix;
in this embodiment, the extracted device signature DSADSDS is compared with the original request device signature DSADSDS one by one to obtain a comparison result matrix (0, 0, 0, 0, 0, 0, 0, 0).
207. Judging whether elements corresponding to character mismatching exist in the comparison result matrix;
in this embodiment, whether data of 1 exists in the comparison result matrix (0, 0, 0, 0, 0, 0, 0).
208. If the screen projection verification code does not exist, reading the equipment feature code of the display screen in the screen projection verification code, and sending the equipment feature code to the small program server;
in this embodiment, since there is no character of 1 in (0, 0, 0, 0, 0, 0, 0), the device feature code matching is completed, the feature code of DSADSDS is sent to the applet server, and the applet server sets the determined device feature code DSADSDS as a character for data processing.
209. If the update request exists, sending an update sending instruction to the applet server;
in this embodiment, if the comparison result matrix is (0, 0, 1, 0, 0, 0, 0), it is determined that the comparison result matrix is not matched, and the applet needs to resend the data, and the update sending instruction is sent to the applet server through wireless transmission.
210. Receiving a screen projection request of target data sent by the applet server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to a display screen.
The method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, the verification code is displayed on the screen through the registration of the screen, and the small program finishes screen projection on the screen by acquiring the verification code on the screen. The function of completing data screen projection in a small program environment is realized, and the application range of the screen projection technology is expanded.
Referring to fig. 3, a third embodiment of the screen projection method based on the applet according to the embodiment of the present invention includes:
301. receiving a registration request sent by a screen projection data display screen to be received;
The method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
302. Generating a screen projection verification code based on the registration request according to a preset response algorithm, and sending the screen projection verification code to a display screen;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
303. Receiving a screen projection verification request of a screen projection data small program server to be sent, and comparing the screen projection verification request with a screen projection verification code to obtain a comparison result matrix;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
304. According to the comparison result matrix, sending the receiving IP address of the display screen to the small program server;
the method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
305. Receiving a screen projection request of target data sent by an applet server, wherein the screen projection request comprises: sending an IP address, receiving the IP address and identifying the feature code corresponding to the target data;
The method embodiment described in this embodiment is similar to the first embodiment, and reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
306. Converting the IP address and the identification feature code to generate a screen projection instruction;
in the present embodiment, the identification feature code is a key corresponding to a two-dimensional code or a pin code in the screen. The IP address will be sent out: and carrying out specific algorithm conversion on the DDD.23.gf.1 and the identification feature code to generate a screen projection instruction, wherein the conversion can prevent signals from interfering with each other.
307. Sending a screen projection instruction to a receiving IP address;
in this embodiment, a generate screen projection instruction is sent 122 at the receive IP address SS.25.56.
308. Judging whether screen projection completion information fed back and transmitted by a display screen is received or not;
in this embodiment, after the screen projection is completed, the display screen sends a feedback message with the verification information, where the feedback message is to determine that the screen projection is completed.
309. If so, determining the screen projection request as a completion state, and sending screen projection completion information to the small program server;
in this embodiment, the screen-casting completion information is obtained in the reception record, a completion tag is given to the screen-casting request, and the completion information is transmitted to the applet server.
310. If not, sending a screen projection instruction to a display screen;
in this embodiment, if the screen projection completion state is not received, a screen projection instruction is re-sent, so as to ensure that screen projection can be successfully implemented.
311. Receiving a screen projection ending instruction sent by the small program server;
in this embodiment, the mobile phone terminal sends a screen projection end instruction, and the applet server receives the instruction and transmits the screen projection end instruction to the invention.
312. Generating a screen projection ending request according to the screen projection ending instruction, and sending the screen projection ending request to a display screen;
in this embodiment, the present invention generates a specific request for termination according to the device feature code DSADSDS according to the termination instruction, and sends the request to the location 122 receiving the IP address ss.25.56.
313. And receiving the state feedback information of the display screen, and sending the state feedback information to the applet server.
In this embodiment, after the display screen finishes the screen projection, the display screen returns state feedback information of an end state, and after receiving the information feedback, the invention transmits the information to the applet server.
In the embodiment of the invention, the verification code is displayed on the screen through the registration of the screen, and the small program finishes screen projection on the screen by acquiring the verification code on the screen. The function of completing data screen projection in a small program environment is realized, and the application range of the screen projection technology is expanded.
With reference to fig. 4, the screen projecting device based on the applet in the embodiment of the present invention is described above, and an embodiment of the screen projecting device based on the applet in the embodiment of the present invention includes:
the receiving module 401 is configured to receive a registration request sent by a screen projection data display screen to be received;
a generating module 402, configured to generate a screen-projection verification code based on the registration request according to a preset response algorithm, and send the screen-projection verification code to the display screen;
a comparison module 403, configured to receive a screen-projection verification request of a to-be-sent screen-projection data applet server, compare the screen-projection verification request with the screen-projection verification code, and obtain a comparison result matrix;
a sending module 404, configured to send the received IP address of the display screen to the applet server according to the comparison result matrix;
the screen projecting module 405 is configured to receive a screen projecting request of the small program server for sending target data, generate a screen projecting instruction of the target data according to the screen projecting request, and send the screen projecting instruction to the display screen.
In the embodiment of the invention, the verification code is displayed on the screen through the registration of the screen, and the small program finishes screen projection on the screen by acquiring the verification code on the screen. The function of completing data screen projection in a small program environment is realized, and the application range of the screen projection technology is expanded.
Referring to fig. 5, another embodiment of the screen projection device based on the applet in the embodiment of the present invention includes:
the receiving module 401 is configured to receive a registration request sent by a screen projection data display screen to be received;
a generating module 402, configured to generate a screen-projection verification code based on the registration request according to a preset response algorithm, and send the screen-projection verification code to the display screen;
a comparison module 403, configured to receive a screen-projection verification request of a to-be-sent screen-projection data applet server, compare the screen-projection verification request with the screen-projection verification code, and obtain a comparison result matrix;
a sending module 404, configured to send the received IP address of the display screen to the applet server according to the comparison result matrix;
the screen projecting module 405 is configured to receive a screen projecting request of the small program server for sending target data, generate a screen projecting instruction of the target data according to the screen projecting request, and send the screen projecting instruction to the display screen.
Wherein the generating module 402 is specifically configured to:
extracting the equipment feature code and the receiving IP address in the registration request;
and transcoding the equipment feature code and the received IP address according to a preset generation algorithm to generate a screen projection verification code.
The alignment module 403 is specifically configured to:
analyzing the screen projection verification request to obtain a request equipment feature code in the screen projection verification request;
and carrying out character sequential comparison processing on the request equipment feature code and the equipment feature code in the screen projection verification code to generate a comparison result matrix.
The sending module 404 is specifically configured to:
judging whether elements corresponding to character mismatching exist in the comparison result matrix;
if the screen-projecting verification code does not exist, reading the equipment feature code of the display screen in the screen-projecting verification code, and sending the equipment feature code to the applet server;
and if so, sending an updating sending instruction to the applet server.
The screen projection module 405 is specifically configured to:
converting the IP address and the identification feature code to generate a screen projection instruction;
and sending the screen projection instruction to the receiving IP address.
The screen-projecting device based on the applet includes a receiving and verifying module 406, where the receiving and verifying module 406 is specifically configured to:
judging whether screen projection completion information fed back and transmitted by the display screen is received or not;
if so, determining the screen projection request as a completion state, and sending the screen projection completion information to the applet server;
and if not, sending the screen projection instruction to the display screen.
The screen projecting device based on the small program comprises a screen projecting ending module 407, wherein the screen projecting ending module 407 is specifically configured to:
receiving a screen projection ending instruction sent by the small program server;
generating a screen projection ending request according to the screen projection ending instruction, and sending the screen projection ending request to the display screen;
and receiving the state feedback information of the display screen, and sending the state feedback information to the applet server.
In the embodiment of the invention, the verification code is displayed on the screen through the registration of the screen, and the small program finishes screen projection on the screen by acquiring the verification code on the screen. The function of completing data screen projection in a small program environment is realized, and the application range of the screen projection technology is expanded.
Fig. 4 and 5 describe the widget-based screen projection device in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the widget-based screen projection device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 6 is a schematic structural diagram of an applet-based screen projection apparatus 600 according to an embodiment of the present invention, which may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transient or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the applet-based screen projection device 600. Still further, the processor 610 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the applet-based screen projection device 600.
The applet-based projection device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the configuration of the applet-based projection device shown in fig. 6 does not constitute a limitation of the applet-based projection device and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the applet-based screen projection method.
Fig. 7 is a schematic diagram of an overall implementation provided by an embodiment of the present invention, and fig. 7 shows a state in an overall implementation of the present invention, which is an overall situation that a terminal 705 including an applet, an applet server 706, a screen projection server 707, and a screen projection 708 interact with each other, and there are four stages in an implementation process of the present invention: a device registration phase 701, a device discovery phase 702, a start screen projection phase 703, and a screen projection end phase 704.
In the device registration phase 701, the screen projection screen 708 performs an operation of sending a registration request 7011, the screen projection server 707 performs an operation of returning a screen projection verification code 7012, and the screen projection screen 708 performs an operation of displaying a screen projection feature code 7013.
In the device discovery phase 702, the operation of sending the screen-shot authentication request 7021 is performed by the terminal 705 of the applet by scanning the screen-shot feature code, the operation of sending the screen-shot authentication request 7022 is performed by the applet server 706, the operation of returning the reception IP address 7023 is performed by the screen-shot server 707, and the operation of returning the reception IP address 7024 is performed by the applet server 706.
In the screen-projection start phase 703, the applet terminal 705 performs an operation of sending a screen-projection request 7031, the applet server 706 performs an operation of sending a screen-projection request 7032, the screen-projection server 707 performs an operation of sending a screen-projection instruction 7033, the screen-projection screen 708 performs an operation of displaying target data 7034, the screen-projection screen 708 performs an operation of sending screen-projection completion information 7035, the screen-projection server 707 performs an operation of sending screen-projection completion information 7036, and the applet server 706 performs an operation of sending screen-projection completion information 7037. Finally the status is displayed by the applet's terminal 705.
In the screen projection end phase 704, the terminal 705 of the applet performs an operation of transmitting a screen projection end instruction 7041, the applet server 706 performs an operation of transmitting a screen projection end instruction 7042, the screen projection server 707 performs an operation of transmitting a screen projection end instruction 7043, the screen projection screen 708 performs an operation of ending the presentation target data 7044, the screen projection screen 708 performs an operation of transmitting the status feedback information 7045, the screen projection server 707 performs an operation of transmitting the status feedback information 7046, the applet server 706 performs an operation of transmitting the status feedback information 7047, and finally the terminal 705 of the applet displays the status.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A screen projection method based on an applet is characterized by comprising the following steps:
receiving a registration request sent by a screen projection data display screen to be received;
generating a screen-throwing verification code based on the registration request according to a preset response algorithm, and sending the screen-throwing verification code to the display screen;
receiving a screen projection verification request of a to-be-sent screen projection data small program server, and comparing the screen projection verification request with the screen projection verification code to obtain a comparison result matrix;
according to the comparison result matrix, sending the receiving IP address of the display screen to the applet server;
receiving a screen projection request of target data sent by the small program server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to the display screen;
Wherein the registration request comprises: the generating a screen-projection verification code based on the registration request according to a preset response algorithm comprises the following steps:
extracting the equipment feature code and the receiving IP address in the registration request;
transcoding the equipment feature code and the received IP address according to a preset generation algorithm to generate a screen projection verification code;
the screen projection verification request and the screen projection verification code are compared to obtain a comparison result matrix, wherein the comparison result matrix comprises:
analyzing the screen projection verification request to obtain a request equipment feature code in the screen projection verification request;
carrying out character sequential comparison processing on the request equipment feature code and the equipment feature code in the screen projection verification code to generate a comparison result matrix;
wherein, according to the comparison result matrix, sending the device feature code of the display screen to the applet server comprises:
judging whether elements corresponding to character mismatching exist in the comparison result matrix;
if the screen-projecting verification code does not exist, reading the equipment feature code of the display screen in the screen-projecting verification code, and sending the equipment feature code to the applet server;
And if so, sending an updating sending instruction to the applet server.
2. The applet-based screen projection method according to claim 1, wherein the screen projection request includes: the sending of the IP address, the receiving of the IP address and the identification feature code corresponding to the target data, the generation of the screen-projecting instruction of the target data according to the screen-projecting request and the sending of the screen-projecting instruction to the display screen comprise:
converting the IP address and the identification feature code to generate a screen projection instruction;
and sending the screen projection instruction to the receiving IP address.
3. The applet-based screen projection method according to claim 1, further comprising, after the sending of the screen projection instruction into the display screen:
judging whether screen projection completion information fed back and transmitted by the display screen is received or not;
if so, determining the screen projection request as a completion state, and sending the screen projection completion information to the applet server;
and if not, sending the screen projection instruction to the display screen.
4. The applet-based screen projection method according to claim 1, further comprising, after the sending of the screen projection instruction into the display screen:
Receiving a screen projection ending instruction sent by the small program server;
generating a screen projection ending request according to the screen projection ending instruction, and sending the screen projection ending request to the display screen;
and receiving the state feedback information of the display screen, and sending the state feedback information to the applet server.
5. An applet-based screen projection apparatus, comprising:
the receiving module is used for receiving a registration request sent by a screen projection data display screen to be received;
the generating module is used for generating a screen projection verification code based on the registration request according to a preset response algorithm and sending the screen projection verification code to the display screen;
the comparison module is used for receiving a screen projection verification request of a small program server of screen projection data to be sent, and comparing the screen projection verification request with the screen projection verification code to obtain a comparison result matrix;
the sending module is used for sending the receiving IP address of the display screen to the applet server according to the comparison result matrix;
the screen projection module is used for receiving a screen projection request of target data sent by the small program server, generating a screen projection instruction of the target data according to the screen projection request, and sending the screen projection instruction to the display screen;
Wherein the registration request comprises: the device feature code of the display screen and the receiving IP address of the display screen, wherein the generating module is specifically configured to:
extracting the equipment feature code and the receiving IP address in the registration request;
transcoding the equipment feature code and the received IP address according to a preset generation algorithm to generate a screen projection verification code;
wherein the comparison module is specifically configured to:
analyzing the screen projection verification request to obtain a request equipment feature code in the screen projection verification request;
carrying out character sequential comparison processing on the request equipment feature code and the equipment feature code in the screen projection verification code to generate a comparison result matrix;
wherein, the screen projection module is specifically used for:
judging whether elements corresponding to character mismatching exist in the comparison result matrix;
if the screen-projecting verification code does not exist, reading the equipment feature code of the display screen in the screen-projecting verification code, and sending the equipment feature code to the applet server;
and if so, sending an updating sending instruction to the applet server.
6. An applet-based screen projection apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
The at least one processor invokes the instructions in the memory to cause the applet-based screen projection apparatus to perform the applet-based screen projection method of any one of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the applet-based screen projection method according to any one of claims 1-4.
CN202011001918.XA 2020-09-22 2020-09-22 Screen projection method, device, equipment and storage medium based on small program Active CN112135186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011001918.XA CN112135186B (en) 2020-09-22 2020-09-22 Screen projection method, device, equipment and storage medium based on small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011001918.XA CN112135186B (en) 2020-09-22 2020-09-22 Screen projection method, device, equipment and storage medium based on small program

Publications (2)

Publication Number Publication Date
CN112135186A CN112135186A (en) 2020-12-25
CN112135186B true CN112135186B (en) 2022-07-29

Family

ID=73842282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011001918.XA Active CN112135186B (en) 2020-09-22 2020-09-22 Screen projection method, device, equipment and storage medium based on small program

Country Status (1)

Country Link
CN (1) CN112135186B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860208A (en) * 2021-04-25 2021-05-28 深圳乐播科技有限公司 Screen-projection-based software sharing method, device, equipment and storage medium
CN113268210B (en) * 2021-05-10 2024-10-25 深圳Tcl新技术有限公司 Screen projection method, device and storage medium
CN114513544B (en) * 2021-12-31 2023-06-13 深圳壹秘科技有限公司 Local area network wireless screen-throwing method, equipment and computer readable storage medium
CN115396710A (en) * 2022-08-09 2022-11-25 深圳乐播科技有限公司 Method for H5 or small program to project short video and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865783A (en) * 2019-11-11 2020-03-06 深圳创维数字技术有限公司 Screen projection method, device, system and storage medium
CN111432070A (en) * 2020-03-17 2020-07-17 北京百度网讯科技有限公司 Application screen projection control method, device, equipment and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10496738B1 (en) * 2011-09-22 2019-12-03 Glance Networks, Inc. Method and apparatus for facilitating participation in a remote viewing session
CN108235079A (en) * 2017-12-20 2018-06-29 深圳市纽格力科技有限公司 It is a kind of that smart machine is supported to throw screen to the control system of common TV
CN109862113A (en) * 2019-03-11 2019-06-07 安徽志辉教育科技有限公司 The wireless throwing screen system and its method of wide area network-oriented
CN110248216B (en) * 2019-06-03 2021-06-01 广东有线广播电视网络有限公司 Television screen projection method and device, television screen projection system and computer equipment
CN110392287B (en) * 2019-06-03 2021-08-31 广东有线广播电视网络有限公司 Processing method and device for television screen projection authorization and television screen projection system
CN111669424B (en) * 2019-09-29 2023-05-02 深圳乐播科技有限公司 Screen projection connection method, device and system and electronic equipment
CN110933484A (en) * 2019-11-25 2020-03-27 泰康保险集团股份有限公司 Management method and device of wireless screen projection equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865783A (en) * 2019-11-11 2020-03-06 深圳创维数字技术有限公司 Screen projection method, device, system and storage medium
CN111432070A (en) * 2020-03-17 2020-07-17 北京百度网讯科技有限公司 Application screen projection control method, device, equipment and medium

Also Published As

Publication number Publication date
CN112135186A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112135186B (en) Screen projection method, device, equipment and storage medium based on small program
KR101541263B1 (en) Method and apparatus for executing user action commands
CN104574057B (en) Online payment method and related equipment and system
CN104320703A (en) Method, device and system for logging in intelligent television terminal
CN111431734A (en) Network distribution method of intelligent equipment and related device
CN112019900A (en) DLNA (digital Living network alliance) -based screen projection method, system, equipment and storage medium
CN112135185A (en) Screen projection method, device, equipment and storage medium based on NFC technology
CN110166823B (en) Screen projection method and related device
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
CN113596832B (en) Network connection establishment method and device, storage medium and electronic device
CN105515887A (en) Application test method, server and system
CN104639973B (en) Information pushing method and device
CN108052550B (en) Annuity data receiving method and device, computer equipment and storage medium
US20180260584A1 (en) Information authentication method, apparatus, storage medium and virtual reality device based on virtual reality scenario
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium
CN112162718B (en) Reverse interaction method, device, equipment and storage medium
CN107172718B (en) Information processing method and electronic equipment
US9055424B1 (en) Method and apparatus for accessing device or service support using a mobile device
WO2020019291A1 (en) Information processing method, electronic device, server, and information processing system
CN112073195B (en) Key using apparatus, key obtaining method thereof, and computer-readable storage medium
CN116112485A (en) Cloud resource using method and related equipment
CN113778359A (en) Wireless screen projection method and device, wearable device and storage medium
CN106204261A (en) A kind of information processing method, terminal and server
JP6934148B1 (en) Virtual trading methods and systems for digital products
CN115022708B (en) Multi-screen interaction method and device, network equipment and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant