CN113572851A - Remote desktop connection method based on browser - Google Patents

Remote desktop connection method based on browser Download PDF

Info

Publication number
CN113572851A
CN113572851A CN202110864143.7A CN202110864143A CN113572851A CN 113572851 A CN113572851 A CN 113572851A CN 202110864143 A CN202110864143 A CN 202110864143A CN 113572851 A CN113572851 A CN 113572851A
Authority
CN
China
Prior art keywords
desktop
controlled
data packet
data
audio
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.)
Granted
Application number
CN202110864143.7A
Other languages
Chinese (zh)
Other versions
CN113572851B (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.)
Liaoning Sunflower Digital Technology Co ltd
Original Assignee
Liaoning Sunflower Education 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 Liaoning Sunflower Education Technology Co ltd filed Critical Liaoning Sunflower Education Technology Co ltd
Priority to CN202110864143.7A priority Critical patent/CN113572851B/en
Publication of CN113572851A publication Critical patent/CN113572851A/en
Application granted granted Critical
Publication of CN113572851B publication Critical patent/CN113572851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet

Abstract

The application relates to a remote desktop connection method based on a browser, which comprises the following steps: acquiring a controlled desktop and a master control desktop, configuring communication protocols of a controlled client corresponding to the controlled desktop and a master control client corresponding to the master control desktop, wherein the master control desktop corresponds to at least one desktop; receiving a page data packet transmitted by a controlled desktop in a controlled client according to a communication protocol, wherein the page data comprises: an image data packet and an audio data packet; respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio; and loading the decoded image and the decoded audio into the master control desktop to obtain a remote desktop of the controlled desktop on the master control desktop. In addition, the application also provides a remote desktop connection device based on the browser, an electronic device and a computer readable storage medium. According to the desktop remote desktop connection method and device, the situation that the desktop is connected through the three-party plug-in can be avoided, and the connection efficiency of the desktop remote desktop is improved.

Description

Remote desktop connection method based on browser
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for connecting a remote desktop based on a browser, an electronic device, and a computer-readable storage medium.
Background
Remote desktop technology is understood to mean that a user can operate a computer at the other end of a network after the computer has opened a remote desktop connection function, and the implementation of remote desktop technology enables a remote user to access his desktop or application from a client device to a server through the network topology of a local area network or a wide area network.
At present, remote desktop connection of a desktop is usually realized in a plug-in mode, such as an ActiveX control or java applet plug-in, and similarly, a native program is realized at a client of the desktop, the native program is embedded into the desktop in the plug-in mode, and the remote desktop connection of the desktop realized in the plug-in mode needs to be compatible with various desktops, that is, the plug-in needs to be compatible and matched with desktops of different types, so that great inconvenience is brought to the remote desktop connection of the desktop.
Content of application
In order to solve the technical problems or at least partially solve the technical problems, the application provides a remote desktop connection method, device, electronic device and computer readable storage medium based on a browser, which can avoid the realization of remote desktop connection of a desktop through a three-party plug-in and improve the connection efficiency of a remote desktop of the desktop.
In a first aspect, the present application provides a remote desktop connection method based on a browser, where the method includes:
acquiring a controlled desktop and a master control desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master control client corresponding to the master control desktop, wherein the master control desktop corresponds to at least one controlled desktop;
receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, wherein the page data comprises: an image data packet and an audio data packet;
respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and loading the decoded image and the decoded audio into the master control desktop to obtain a remote desktop of the controlled desktop on the master control desktop.
Therefore, the data communication logic and the data communication mode of the controlled desktop and the main control desktop can be known by configuring the communication protocol, so that the data communication protocol of the main controlled desktop established by a three-party plug-in can be avoided, the page data of the main controlled desktop is responded in real time, and the efficient connection of the remote desktop of the main controlled desktop is improved; secondly, by decoding the page data packet, the embodiment of the application can realize normal loading of the page in the controlled desktop and ensure remote desktop connection of the main controlled desktop.
In a possible implementation manner of the first aspect, the configuring a communication protocol between a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop includes:
acquiring a first IP address of the controlled client and a second IP address of the master control client, and constructing data transmission channels of the controlled client and the master control client according to the first IP address and the second IP address;
and acquiring the data communication logic and the data communication mode of the controlled desktop, and loading the data communication logic and the data communication mode in the data transmission channel to obtain the communication protocol.
In a possible implementation manner of the first aspect, the constructing a data transmission channel between the controlled client and the master client according to the first IP address and the second IP address includes:
inquiring a first port and a second port of the controlled client and the master control client according to the first IP address and the second IP address;
and loading the second IP address and the second port at the controlled client, and loading the first IP address and the first port at the master control client to generate the data transmission channel.
In a possible implementation manner of the first aspect, the loading the data communication logic and the data communication manner in the data transmission channel to obtain the communication protocol includes:
acquiring a compiling environment of the data transmission channel, and defining a data loading script in the compiling environment;
and loading the data communication logic and the data communication mode into the data transmission channel according to the data loading script to obtain the communication protocol.
In a possible implementation manner of the first aspect, before receiving, according to the communication protocol, a page data packet converted by a controlled desktop in the controlled client, the method further includes:
acquiring page data of a controlled desktop in the controlled client, and identifying the data type of the page data;
according to the data type, carrying out graph classification on the page data to obtain page image data and page audio data;
and respectively packaging the page image data and the page audio data to obtain an image data packet and an audio data packet, and generating a page data packet according to the image data packet and the audio data packet.
In a possible implementation manner of the first aspect, the image decoding the image data packet to obtain a decoded image includes:
converting the image data packet into an abstract syntax tree using a parser and creating a page view node in the abstract syntax tree,
identifying parent nodes and child nodes of all image elements in the image data packet, and establishing relationship identification between the parent nodes and the child nodes;
and importing the father node and the child nodes into the page view nodes according to the relationship identification to obtain a decoded image.
In a possible implementation manner of the first aspect, the audio decoding the audio data packet to obtain decoded audio includes:
and identifying an audio interface of the audio data packet, and analyzing an audio frequency spectrum of the audio data packet according to the audio interface to obtain a decoded audio.
In a second aspect, the present application provides a browser-based remote desktop connection apparatus, the apparatus comprising:
the communication protocol configuration module is used for acquiring a controlled desktop and a master desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop, wherein the master desktop corresponds to at least one controlled desktop;
a data receiving module, configured to receive, according to the communication protocol, a page data packet converted by a controlled desktop in the controlled client, where the page data includes: an image data packet and an audio data packet;
the data decoding module is used for respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and the data loading module is used for loading the decoded image and the decoded audio into the master desktop to obtain a remote desktop of the controlled desktop on the master desktop.
In a third aspect, the present application provides an electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the browser-based remote desktop connection method as described in any one of the above first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the browser-based remote desktop connection method according to any one of the first aspects.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a detailed flowchart of a remote desktop connection method based on a browser according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a step of a method for connecting a remote desktop based on a browser shown in FIG. 1 according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another step of the browser-based remote desktop connection method provided in fig. 1 according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating further steps of a method for connecting a remote desktop based on a browser, provided in FIG. 1, according to an embodiment of the present application;
FIG. 5 is a block diagram of a remote desktop connection device based on a browser according to an embodiment of the present application;
fig. 6 is a schematic internal structural diagram of an electronic device implementing a remote desktop connection method based on a browser according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
A method for connecting a remote desktop based on a browser according to an embodiment of the present application is described with reference to a flowchart shown in fig. 1. The remote desktop connection method based on the browser described in fig. 1 includes:
s1, obtaining a controlled desktop and a master desktop, and configuring a communication protocol between a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop, wherein the master desktop corresponds to at least one controlled desktop.
In the embodiment of the present application, the controlled desktop corresponds to the master desktop, and is loaded through the browser, so as to run an application program of the client and form a Graphical User Interface (GUI for short). The graphical user interface is a human-to-computer interface display format that allows a user to manipulate on-screen icons or menu options using an input device such as a mouse to select commands, call files, launch programs, or perform other routine tasks. It should be noted that, in order to avoid the compatibility problem of the browser of the remote desktop, in the embodiment of the present application, the loading browsers of the main control desktop and the controlled desktop belong to the same browser with the same version, for example, the loading browsers of the main control desktop and the controlled desktop are both IE11 browsers.
Further, the controlled desktop and the corresponding controlled client are obtained, so that the connection between the subsequent main control desktop and the controlled desktop is realized. The controlled desktop is a desktop of a desktop page to be controlled, the master desktop is a desktop controlling a remote desktop, and the controlled desktop and the master desktop are generated based on different user requirements, for example, some problems occur when a user a browses a desktop of an IE11 browser, and remote solution of a user B is required, so that the desktop browsed by the user a is the controlled desktop, and the desktop loaded by the user B is the master desktop. The master control desktop corresponds to at least one controlled desktop, so that the problem that one master control desktop can solve a plurality of controlled desktops is solved.
Further, since the master desktop and the controlled desktop are located in different clients and the master desktop and the controlled desktop do not have a data communication function, the embodiment of the present application configures a communication protocol between the controlled client corresponding to the controlled desktop and the master client corresponding to the master desktop, so as to transmit the page data in the controlled desktop to the master desktop.
In an optional embodiment of the present application, referring to fig. 2, the configuring a communication protocol between a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop includes:
s201, acquiring a first IP address of the controlled client and a second IP address of the master control client, and constructing data transmission channels of the controlled client and the master control client according to the first IP address and the second IP address;
s202, acquiring the data communication logic and the data communication mode of the controlled desktop, and loading the data communication logic and the data communication mode in the data transmission channel to obtain the communication protocol.
The IP address refers to a client address and is used for representing the IP address of the current client terminal, and the physical position information of the client can be inquired based on the IP address; the data transmission channel is used for transmitting the page data in the controlled desktop to the main control desktop; the data communication logic refers to a transmission rule to be followed when page data of the controlled desktop is transmitted, such as whether the data must be case, whether the data type is a chart type, whether the length of a character string cannot exceed a certain range, and the like, and the data communication mode refers to a control mode of the master desktop when the controlled desktop is controlled, such as not allowing page loading of the controlled desktop, not allowing editing of audio data in the controlled desktop, and the like.
Further, in an optional embodiment of the present application, before constructing the data transmission channels of the controlled client and the master client according to the first IP address and the second IP address, the method further includes: optionally, the access right may be verified by querying a server of the controlled client and a server of the master client, that is, the same server is used to query the same requests sent by the controlled client and the master client, and if a query result returned by the server is consistent, it indicates that the master client has the access right in the controlled client.
Further, in an optional embodiment of the present application, the constructing the data transmission channels of the controlled client and the master client according to the first IP address and the second IP address includes: and inquiring first ports and second ports of the controlled client and the master client according to the first IP address and the second IP address, loading the second IP address and the second port on the controlled client, and loading the first IP address and the first port on the master client to generate the data transmission channel.
Further, in an optional embodiment of the present application, the loading the data communication logic and the data communication manner in the data transmission channel to obtain the communication protocol includes: and acquiring a compiling environment of the data transmission channel, defining a data loading script in the compiling environment, and loading the data communication logic and the data communication mode into the data transmission channel according to the data loading script to obtain the communication protocol. The compiling environment comprises an HTML5 compiling environment, and the data loading script is compiled through a JavaScript scripting language.
In the embodiment of the application, based on the configuration of the communication protocol, the data communication logic and the data communication mode of the controlled desktop and the master control desktop can be known, and the data communication protocol of the master controlled desktop established by a three-party plug-in can be avoided, so that the page data real-time response of the master controlled desktop is realized, and the efficient connection of the master controlled desktop and the remote desktop is realized.
S2, receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, wherein the page data includes: image data packets and audio data packets.
As an embodiment of the present application, referring to fig. 3, before receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, the method further includes:
s301, acquiring page data of a controlled desktop in the controlled client, and identifying the data type of the page data;
s302, carrying out graph classification on the page data according to the data type to obtain page image data and page audio data;
s303, respectively packaging the page image data and the page audio data to obtain an image data packet and an audio data packet, and generating the page data packet according to the image data packet and the audio data packet.
The page data includes image data and audio data, the image data includes page diagram data, page drop-down box data, page layout data and the like, the audio data includes page video data, page music data and the like, the identification of the data type can be realized through data fields in the page data, and the graphic classification of the page data is realized through a front-end component, such as a Web Components component.
In an optional embodiment of the present application, the packaging of the page image data and the page audio data is to package tags of element modules in the page image data and the page audio data, so as to reduce transmission time of subsequent page data packets. Wherein the label of the element module comprises: head tags, body tags, div tags, etc.
Further, in an embodiment of the present application, the receiving, according to the communication protocol, a page data packet converted by a controlled desktop in the controlled client includes: and receiving a page data packet converted by a controlled desktop in the controlled client according to a data transmission channel in the communication protocol.
And S3, respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio.
It should be understood that, the image data packet and the audio data packet are encapsulated in the controlled desktop, and therefore cannot be directly loaded in the main control desktop, and therefore, in the embodiment of the present application, the image data packet and the audio data packet are respectively subjected to image decoding and audio decoding, so as to ensure that the image data packet and the audio data packet are normally loaded in the main control desktop.
In one embodiment of the present application, referring to fig. 4, the performing image decoding on the image data packet to obtain a decoded image includes:
s401, converting the image data packet into an abstract syntax tree by using a parser, and creating a page view node in the abstract syntax tree;
s402, identifying parent nodes and child nodes of all image elements in the image data packet, and establishing relationship identification between the parent nodes and the child nodes;
and S403, importing the parent node and the child node into the page view node according to the relationship identifier to obtain a decoded image.
Wherein the Abstract Syntax Tree (AST) refers to an Abstract representation of a source code Syntax structure, and the parser comprises: an HTML parser, a text parser, and a filter parser. The parent node and child nodes of the image element may be identified by a hook function.
In one embodiment of the present application, the audio decoding the audio data packet to obtain decoded audio includes: and identifying an audio interface of the audio data packet, and analyzing an audio frequency spectrum of the audio data packet according to the audio interface to obtain a decoded audio. The identification of the audio interface may be implemented by calling a WebAudioAPI method, and the analysis of the audio spectrum may be implemented by an audio analyzer, such as an analyzer.
Based on the decoding of the image data packet and the audio data packet, subsequent page loading of the main control desktop can be realized.
S4, loading the decoded image and the decoded audio into the master desktop to obtain a remote desktop of the controlled desktop on the master desktop.
According to one embodiment of the application, the decoded image and the decoded audio are loaded into the main control desktop by adopting a pre-compiled loader, wherein the pre-compiled loader can be compiled by a JavaScript scripting language.
According to the method and the device, the data communication logic and the data communication mode of the controlled desktop and the master control desktop can be known by configuring the communication protocol, so that the data communication protocol of the master controlled desktop established by a three-party plug-in can be avoided, the page data of the master controlled desktop is responded in real time, and the efficient connection of the remote desktop of the master controlled desktop is improved; secondly, by decoding the page data packet, the embodiment of the application can realize normal loading of the page in the controlled desktop and ensure remote desktop connection of the main controlled desktop.
Fig. 5 is a functional block diagram of a remote desktop connection device based on a browser according to the present invention.
The browser-based remote desktop connection apparatus 500 may be installed in an electronic device. According to the implemented functions, the remote desktop connection device based on the browser may include a communication protocol configuration module 501, a data receiving module 502, a data decoding module 503, and a data loading module 504. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the communication protocol configuration module 101 is configured to obtain a controlled desktop and a master desktop, and configure a communication protocol between a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop, where the master desktop corresponds to at least one controlled desktop;
the data receiving module 102 is configured to receive, according to the communication protocol, a page data packet converted by a controlled desktop in the controlled client, where the page data includes: an image data packet and an audio data packet;
the data decoding module 103 is configured to perform image decoding and audio decoding on the image data packet and the audio data packet, respectively, to obtain a decoded image and a decoded audio;
the data loading module 104 is configured to load the decoded image and the decoded audio into the master desktop, so as to obtain a remote desktop of the controlled desktop on the master desktop.
In detail, when the modules in the remote desktop connection apparatus 500 based on a browser in the embodiment of the present application are used, the same technical means as the above-described remote desktop connection method based on a browser in fig. 1 and fig. 4 are adopted, and the same technical effect can be produced, and details are not described here.
Fig. 6 is a schematic structural diagram of an electronic device implementing a remote desktop connection method based on a browser according to the present application.
The electronic device 6 may comprise a processor 60, a memory 61, a communication bus 62 and a communication interface 63, and may further comprise a computer program, such as a browser based remote desktop connectivity program, stored in the memory 61 and executable on the processor 60.
In some embodiments, the processor 60 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 60 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 61 (for example, executing a browser-based remote desktop connection program, etc.), and calling data stored in the memory 61.
The memory 61 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 61 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 61 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device. The memory 61 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a browser-based remote desktop connection program, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 62 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 61 and at least one processor 60 or the like.
The communication interface 63 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 6 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 6 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 60 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The memory 61 in the electronic device 6 stores a browser-based remote desktop connection 62 that is a combination of computer programs that, when executed in the processor 60, enable:
acquiring a controlled desktop and a master control desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master control client corresponding to the master control desktop, wherein the master control desktop corresponds to at least one controlled desktop;
receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, wherein the page data comprises: an image data packet and an audio data packet;
respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and loading the decoded image and the decoded audio into the master control desktop to obtain a remote desktop of the controlled desktop on the master control desktop.
Specifically, the processor 60 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the integrated modules/units of the electronic device 6, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present application also provides a computer-readable storage medium, storing a computer program that, when executed by a processor of an electronic device, may implement:
acquiring a controlled desktop and a master control desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master control client corresponding to the master control desktop, wherein the master control desktop corresponds to at least one controlled desktop;
receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, wherein the page data comprises: an image data packet and an audio data packet;
respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and loading the decoded image and the decoded audio into the master control desktop to obtain a remote desktop of the controlled desktop on the master control desktop.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A remote desktop connection method based on a browser is characterized by comprising the following steps:
acquiring a controlled desktop and a master control desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master control client corresponding to the master control desktop, wherein the master control desktop corresponds to at least one controlled desktop;
receiving a page data packet converted by a controlled desktop in the controlled client according to the communication protocol, wherein the page data comprises: an image data packet and an audio data packet;
respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and loading the decoded image and the decoded audio into the master control desktop to obtain a remote desktop of the controlled desktop on the master control desktop.
2. The method according to claim 1, wherein the configuring a communication protocol between the controlled client corresponding to the controlled desktop and the master client corresponding to the master desktop includes:
acquiring a first IP address of the controlled client and a second IP address of the master control client, and constructing data transmission channels of the controlled client and the master control client according to the first IP address and the second IP address;
and acquiring the data communication logic and the data communication mode of the controlled desktop, and loading the data communication logic and the data communication mode in the data transmission channel to obtain the communication protocol.
3. The browser-based remote desktop connection method according to claim 2, wherein the constructing a data transmission channel between the controlled client and the master client according to the first IP address and the second IP address comprises:
inquiring a first port and a second port of the controlled client and the master control client according to the first IP address and the second IP address;
and loading the second IP address and the second port at the controlled client, and loading the first IP address and the first port at the master control client to generate the data transmission channel.
4. The method as claimed in claim 2, wherein the loading the data communication logic and the data communication mode in the data transmission channel to obtain the communication protocol comprises:
acquiring a compiling environment of the data transmission channel, and defining a data loading script in the compiling environment;
and loading the data communication logic and the data communication mode into the data transmission channel according to the data loading script to obtain the communication protocol.
5. The method according to claim 1, wherein before receiving the page data packet converted by the controlled desktop in the controlled client according to the communication protocol, the method further comprises:
acquiring page data of a controlled desktop in the controlled client, and identifying the data type of the page data;
according to the data type, carrying out graph classification on the page data to obtain page image data and page audio data;
and respectively packaging the page image data and the page audio data to obtain an image data packet and an audio data packet, and generating a page data packet according to the image data packet and the audio data packet.
6. The method according to any one of claims 1 to 5, wherein the image decoding the image data packet to obtain a decoded image comprises:
converting the image data packet into an abstract syntax tree using a parser and creating a page view node in the abstract syntax tree,
identifying parent nodes and child nodes of all image elements in the image data packet, and establishing relationship identification between the parent nodes and the child nodes;
and importing the father node and the child nodes into the page view nodes according to the relationship identification to obtain a decoded image.
7. The method according to any one of claims 1 to 5, wherein the audio decoding the audio data packet to obtain decoded audio comprises:
and identifying an audio interface of the audio data packet, and analyzing an audio frequency spectrum of the audio data packet according to the audio interface to obtain a decoded audio.
8. A browser-based remote desktop connection apparatus, the apparatus comprising:
the communication protocol configuration module is used for acquiring a controlled desktop and a master desktop, and configuring a communication protocol of a controlled client corresponding to the controlled desktop and a master client corresponding to the master desktop, wherein the master desktop corresponds to at least one controlled desktop;
a data receiving module, configured to receive, according to the communication protocol, a page data packet converted by a controlled desktop in the controlled client, where the page data includes: an image data packet and an audio data packet;
the data decoding module is used for respectively carrying out image decoding and audio decoding on the image data packet and the audio data packet to obtain a decoded image and a decoded audio;
and the data loading module is used for loading the decoded image and the decoded audio into the master desktop to obtain a remote desktop of the controlled desktop on the master desktop.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the browser-based remote desktop connection method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements a browser-based remote desktop connection method according to any one of claims 1 to 7.
CN202110864143.7A 2021-07-29 2021-07-29 Remote desktop connection method based on browser Active CN113572851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110864143.7A CN113572851B (en) 2021-07-29 2021-07-29 Remote desktop connection method based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110864143.7A CN113572851B (en) 2021-07-29 2021-07-29 Remote desktop connection method based on browser

Publications (2)

Publication Number Publication Date
CN113572851A true CN113572851A (en) 2021-10-29
CN113572851B CN113572851B (en) 2023-01-10

Family

ID=78169001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110864143.7A Active CN113572851B (en) 2021-07-29 2021-07-29 Remote desktop connection method based on browser

Country Status (1)

Country Link
CN (1) CN113572851B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064713A (en) * 2006-04-26 2007-10-31 深圳Tcl新技术有限公司 Control method for realizing remote tabletop using television set platform
CN102647620A (en) * 2012-03-28 2012-08-22 华为终端有限公司 Method, set-top box, cloud terminal application server and system for realizing cloud terminal business
CN102833338A (en) * 2012-08-31 2012-12-19 福建升腾资讯有限公司 Remote desktop display method based on Web
CN104113570A (en) * 2013-04-17 2014-10-22 崔伯磊 Android terminal desktop direct access method and system through browser or software program
CN105072190A (en) * 2015-08-21 2015-11-18 刘昌平 Method and system for realizing real-time desktop cloud
CN105847307A (en) * 2015-01-12 2016-08-10 北京神州泰岳信息安全技术有限公司 Integrated operation and maintenance method and system
CN110856036A (en) * 2019-11-11 2020-02-28 深圳市赛菲姆科技有限公司 Remote desktop implementation method, interaction method, device, equipment and storage medium
CN111666526A (en) * 2020-06-17 2020-09-15 广州市百果园信息技术有限公司 Page generation method, device, equipment and storage medium
CN112073750A (en) * 2020-09-14 2020-12-11 浙江源创建筑智能科技有限公司 Remote desktop control method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064713A (en) * 2006-04-26 2007-10-31 深圳Tcl新技术有限公司 Control method for realizing remote tabletop using television set platform
CN102647620A (en) * 2012-03-28 2012-08-22 华为终端有限公司 Method, set-top box, cloud terminal application server and system for realizing cloud terminal business
CN102833338A (en) * 2012-08-31 2012-12-19 福建升腾资讯有限公司 Remote desktop display method based on Web
CN104113570A (en) * 2013-04-17 2014-10-22 崔伯磊 Android terminal desktop direct access method and system through browser or software program
CN105847307A (en) * 2015-01-12 2016-08-10 北京神州泰岳信息安全技术有限公司 Integrated operation and maintenance method and system
CN105072190A (en) * 2015-08-21 2015-11-18 刘昌平 Method and system for realizing real-time desktop cloud
CN110856036A (en) * 2019-11-11 2020-02-28 深圳市赛菲姆科技有限公司 Remote desktop implementation method, interaction method, device, equipment and storage medium
CN111666526A (en) * 2020-06-17 2020-09-15 广州市百果园信息技术有限公司 Page generation method, device, equipment and storage medium
CN112073750A (en) * 2020-09-14 2020-12-11 浙江源创建筑智能科技有限公司 Remote desktop control method and system

Also Published As

Publication number Publication date
CN113572851B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN107424033B (en) Component rendering method, page display method, client, server and storage medium
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
CN104965691A (en) Method, apparatus and system for configuring page elements of a webpage
CN109766099B (en) Front-end source code compiling method and device, storage medium and computer equipment
CN101697139A (en) Method, device and registry for remote procedure call
CN113536185B (en) Application page loading method, storage medium and related equipment
CN108874464A (en) Middleware automatically scanning assembly method, device and storage medium
CN108416021A (en) A kind of browsing device net page content processing method, device, electronic equipment and readable medium
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN107341027A (en) The generation method and generating means of user interface
CN113407882A (en) Component generation method and device, computer-readable storage medium and electronic equipment
CN105094857B (en) Method and system for application load
CN114661375A (en) Application integration method and device
KR101330559B1 (en) Java script based web-client application framework, web contents processing method using the framework and computer readable medium processing the method
CN113434315A (en) Interface management method and device, storage medium and electronic equipment
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
JP2009031960A (en) Technology for relaying communication between client device and server device
CN113572851B (en) Remote desktop connection method based on browser
CN110989891A (en) Component deployment method in chart editor, chart editor and related equipment
CN111158777A (en) Component calling method and device and computer readable storage medium
CN110764746A (en) Script generation method and device and computer readable storage medium
CN109815455A (en) Item file treating method and apparatus
CN107632896A (en) A kind of data processing method, data processing equipment and communication apparatus
CN114172978A (en) Multi-protocol equipment access method and related device
CN111767498A (en) Method and device for realizing file information sharing

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
TA01 Transfer of patent application right

Effective date of registration: 20211230

Address after: 272400, 80m north of Hudian village, wolongshan street, Jiaxiang County, Jining City, Shandong Province

Applicant after: Jiaxiang Yuanda Construction Machinery Manufacturing Co.,Ltd.

Applicant after: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

Address before: Room c418, 860-1, shangshengou village, Dongling District, Shenyang City, Liaoning Province, 110000

Applicant before: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220804

Address after: Room c418, 860-1, shangshengou village, Dongling District, Shenyang City, Liaoning Province, 110000

Applicant after: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

Address before: 272400, 80m north of Hudian village, wolongshan street, Jiaxiang County, Jining City, Shandong Province

Applicant before: Jiaxiang Yuanda Construction Machinery Manufacturing Co.,Ltd.

Applicant before: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Browser Based Remote Desktop Connection Method

Effective date of registration: 20230315

Granted publication date: 20230110

Pledgee: Bank of China Limited Shenyang Zhongshan Sub-branch

Pledgor: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

Registration number: Y2023210000038

PE01 Entry into force of the registration of the contract for pledge of patent right
CP03 Change of name, title or address

Address after: No. 868-3, Shangshengou Village, Hunnan District, Shenyang City, Liaoning Province, 110000 (101, 201)

Patentee after: Liaoning Sunflower Digital Technology Co.,Ltd.

Address before: Room c418, 860-1, shangshengou village, Dongling District, Shenyang City, Liaoning Province, 110000

Patentee before: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20230110

Pledgee: Bank of China Limited Shenyang Zhongshan Sub-branch

Pledgor: Liaoning Sunflower Digital Technology Co.,Ltd.

Registration number: Y2023210000038

PC01 Cancellation of the registration of the contract for pledge of patent right
PM01 Change of the registration of the contract for pledge of patent right

Change date: 20240122

Registration number: Y2023210000038

Pledgor after: Liaoning Sunflower Digital Technology Co.,Ltd.

Pledgor before: LIAONING SUNFLOWER EDUCATION TECHNOLOGY Co.,Ltd.

PM01 Change of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A browser based remote desktop connection method

Granted publication date: 20230110

Pledgee: Bank of China Limited Shenyang Zhongshan Sub-branch

Pledgor: Liaoning Sunflower Digital Technology Co.,Ltd.

Registration number: Y2024210000008

PE01 Entry into force of the registration of the contract for pledge of patent right