CN110609752B - Cross-platform cloud clipboard implementation method and system based on browser - Google Patents

Cross-platform cloud clipboard implementation method and system based on browser Download PDF

Info

Publication number
CN110609752B
CN110609752B CN201810619755.8A CN201810619755A CN110609752B CN 110609752 B CN110609752 B CN 110609752B CN 201810619755 A CN201810619755 A CN 201810619755A CN 110609752 B CN110609752 B CN 110609752B
Authority
CN
China
Prior art keywords
mobile terminal
browser
copy
clipboard
protocol
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
CN201810619755.8A
Other languages
Chinese (zh)
Other versions
CN110609752A (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 Skybility Software Co ltd
Original Assignee
Shenzhen Skybility Software 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 Skybility Software Co ltd filed Critical Shenzhen Skybility Software Co ltd
Priority to CN201810619755.8A priority Critical patent/CN110609752B/en
Publication of CN110609752A publication Critical patent/CN110609752A/en
Application granted granted Critical
Publication of CN110609752B publication Critical patent/CN110609752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • 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]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a cross-platform cloud clipboard implementation method and system based on a browser. The method comprises the following steps: the method includes the steps that a preset extension program is loaded on a browser arranged on a first mobile terminal, when a user conducts remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, and the local service is used for achieving management of the browser of the first mobile terminal on a clipboard of the first mobile terminal. The method provided by the invention realizes the content interaction of the clipboards of the first mobile terminal and the second mobile terminal, enhances the function of the remote desktop based on the browser, and realizes the cross-platform and cross-browser cloud clipboard functions. In addition, the monitoring and auditing functions of the remote desktop clipboard can be further realized.

Description

Cross-platform cloud clipboard implementation method and system based on browser
Technical Field
The invention relates to the technical field of remote IT operation and maintenance, in particular to a browser-based cross-platform cloud clipboard implementation method and device.
Background
Through the HTML5 technology, remote desktop access based on a browser is already a mainstream remote operation and maintenance mode (original remote desktop access is realized by loading a client), and the mode can realize remote desktop access to a remote windows system by using an RDP protocol under different platforms and different browsers without installing a specific client.
However, due to the security protection mechanism of the browser, the browser cannot access or modify the clipboard of the local control end where the browser is located, so that interaction cannot be performed between the clipboard of the remote control end controlled by the remote desktop of the browser and the clipboard of the local control end where the browser is located, that is, the content copied and clipped in the remote control end cannot be pasted to the local control end, and the content copied and clipped in the local control end cannot be pasted to the remote control end, so that the remote desktop access based on the browser is inconvenient and difficult to meet the use requirements of people.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and a system for implementing a cross-platform cloud clipboard based on a browser. The technical scheme is as follows:
in one aspect, an embodiment of the present invention provides a method for implementing a cross-platform cloud clipboard based on a browser, where the method includes:
the method comprises the steps that a preset extension program is loaded for a browser arranged in a first mobile terminal, when a user carries out remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, a local service is established for the first mobile terminal, the local service is used for realizing management of the browser of the first mobile terminal on a clipboard of the first mobile terminal, and the browser of the first mobile terminal is in communication connection with the second mobile terminal through a protocol transit gateway;
if the user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the local service in the first mobile terminal monitors whether a copy and cut event occurs in a clipboard of the first mobile terminal, or the browser of the first mobile terminal monitors whether the copy and cut event of the remote desktop control operation sent by the protocol relay network is received by the browser of the first mobile terminal, and the copy and cut event of the remote desktop control operation is fed back to the protocol relay gateway by the second mobile terminal;
when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal generates a copy and cut event, the local service in the first mobile terminal transmits the copy and cut event to the browser in the first mobile terminal, the browser in the first mobile terminal transmits the received copy and cut event to the second mobile terminal through the protocol transfer gateway, and the second mobile terminal modifies the clipboard of the second mobile terminal so that the clipboard of the second mobile terminal generates the same copy and cut event as the first mobile terminal;
when the browser of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by the protocol transfer gateway, the browser of the first mobile terminal forwards the copy and cut event to the local service of the first mobile terminal, and the local service of the first mobile terminal modifies the clipboard of the first mobile terminal so that the clipboard of the first mobile terminal generates the same copy and cut event as the second mobile terminal.
In the method for implementing the cross-platform cloud clipboard based on the browser according to the embodiment of the present invention, the extension program is created based on a browser extension mechanism, and the local service communicates with a preset local information mechanism between the browsers.
In the method for implementing a cross-platform cloud clipboard based on a browser according to the embodiment of the present invention, when a local service in a first mobile terminal monitors that a clipboard of the first mobile terminal has a copy-cut event, the local service in the first mobile terminal transmits the monitored copy-cut event to the browser in the first mobile terminal, and the browser in the first mobile terminal transmits a received copy-cut event to a second mobile terminal through a protocol transit gateway, the method includes:
when the local service in the first mobile terminal monitors that a clipboard of the first mobile terminal generates a copy and cut event, the local service in the first mobile terminal transmits the monitored copy and cut event to a browser in the first mobile terminal through a local information mechanism;
the browser in the first mobile terminal transmits the copy shearing event to a protocol transit gateway through a first communication protocol;
and the protocol transit gateway converts the received copy cutting event and transmits the copy cutting event to the second mobile terminal through a second communication protocol.
In the method for implementing a cross-platform cloud clipboard based on a browser according to the embodiment of the present invention, when the browser of the first mobile terminal receives a copy and cut event of a remote desktop control operation sent by a protocol transit gateway, the forwarding of the copy and cut event to a local service of the first mobile terminal by the browser of the first mobile terminal includes:
when the browser of the first mobile terminal receives a copy shearing event of the remote desktop control operation sent by the protocol transfer gateway, the browser of the first mobile terminal forwards the copy shearing event to the local service of the first mobile terminal through a local information mechanism.
In the method for implementing the cross-platform cloud clipboard based on the browser according to the embodiment of the present invention, the first communication protocol is a web socket protocol of HyperText Markup Language (HTML) 5, and the second communication protocol is a remote access protocol supporting copy and paste.
In another aspect, an embodiment of the present invention provides a cross-platform cloud clipboard implementation system based on a browser, including: a first mobile terminal, a second mobile terminal and a protocol transfer gateway, wherein, a browser of the first mobile terminal is connected with the second mobile terminal through the protocol transfer gateway,
the method comprises the steps that a browser of a first mobile terminal is loaded with a preset extension program and used for monitoring whether a clipboard of the first mobile terminal generates a copy and cut event or not through a local service in the first mobile terminal when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, or monitoring whether the user receives the copy and cut event of the remote desktop control operation sent by a protocol transfer gateway or not through the browser of the first mobile terminal, the extension program creates a local service for the first mobile terminal when the user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, and the local service is used for realizing management of the clipboard of the first mobile terminal by the browser of the first mobile terminal;
the first mobile terminal is further used for transmitting the monitored copy and cut event to a browser in the first mobile terminal through the local service in the first mobile terminal when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal generates the copy and cut event, and transmitting the received copy and cut event to the second mobile terminal through a protocol transfer gateway through the browser in the first mobile terminal;
the second mobile terminal is used for modifying the clipboard according to the received copy-cut event so that the clipboard of the second mobile terminal generates the same copy-cut event as the clipboard of the first mobile terminal;
the second mobile terminal is further used for transmitting the copy and cut event of the remote desktop control operation to the browser of the first mobile terminal through the protocol transfer gateway when the copy and cut event of the remote desktop control operation occurs on the clipboard of the second mobile terminal;
the browser of the first mobile terminal is further used for transmitting the received copy and cut event of the remote desktop control operation to the local service of the first mobile terminal, and correspondingly modifying the clipboard of the first mobile terminal through the local service of the first mobile terminal, so that the clipboard of the first mobile terminal generates the same copy and cut event as the second mobile terminal.
In the system for implementing the cross-platform cloud clipboard based on the browser according to the embodiment of the present invention, the extension program is created based on a browser extension mechanism, and the local service communicates with a preset local information mechanism between the browsers.
In the above-mentioned system for implementing a cross-platform cloud clipboard based on a browser according to the embodiments of the present invention, when a local service in a first mobile terminal monitors that a clipboard of the first mobile terminal has a copy-cut event,
the first mobile terminal is also used for transmitting the monitored copy and cut event to a browser in the first mobile terminal through a local information mechanism by a local service in the first mobile terminal;
the first mobile terminal is also used for transmitting the copy cutting event to the protocol transfer gateway through a browser in the first mobile terminal through a first communication protocol;
and the protocol transit gateway is used for converting the received copy cutting event and transmitting the copy cutting event to the second mobile terminal through a second communication protocol.
In the above-mentioned system for implementing a cross-platform cloud clipboard based on a browser according to an embodiment of the present invention, when the browser of the first mobile terminal receives a copy-cut event of a remote desktop control operation sent by the protocol transit gateway,
the first mobile terminal is also used for forwarding the browser of the first mobile terminal to the local service of the first mobile terminal through a local information mechanism.
In the cross-platform cloud clipboard implementation system based on the browser in the embodiment of the present invention, the first communication protocol is a web socket protocol of HTML5, and the second communication protocol is a remote access protocol supporting copy and paste.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method includes the steps that a preset extension program is loaded on a browser arranged on a first mobile terminal, when a user conducts remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, and the local service is used for achieving management of the browser of the first mobile terminal on a clipboard of the first mobile terminal. When a clipboard in a first mobile terminal has a copy-cut event, a browser of the first mobile terminal can receive the copy-cut event and transmit the copy-cut event to a second mobile terminal, so that the clipboard of the second mobile terminal is correspondingly modified by the second mobile terminal; when the clipboard of the second mobile terminal generates a copy and cut event of remote desktop control operation, the browser in the first mobile terminal receives the copy and cut event and transmits the copy and cut event to the local service, and the clipboard of the first mobile terminal is modified correspondingly through the local service. Therefore, the content interaction of the clipboards of the first mobile terminal and the second mobile terminal is realized, the function of a remote desktop based on a browser is enhanced, and the cross-platform and cross-browser cloud clipboard functions are realized. In addition, the monitoring and auditing functions of the remote desktop clipboard can be further realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart of a method for implementing a cross-platform cloud clipboard based on a browser according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cross-platform cloud clipboard implementation system based on a browser according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
For convenience of explaining the technical solution of the present invention, an application scenario of the present invention will be briefly described below with reference to fig. 1. Referring to fig. 1, a browser is loaded in a first mobile terminal 100 (i.e., a local control end), and the first mobile terminal 100 is in communication connection with a second mobile terminal 200 (i.e., a remote controlled end) through a protocol relay gateway 300, a user can implement a remote desktop control operation on the second mobile terminal 200 through the browser loaded in the first mobile terminal 100, the protocol relay gateway 300 performs information transmission with the browser of the first mobile terminal 100 and the second mobile terminal 200 respectively using different communication protocols, and can convert received information into texts in different communication protocol formats for transmission. In the prior art, due to a protection mechanism of a browser, the browser cannot directly monitor and modify a clipboard of the first mobile terminal 100, a user cannot copy or cut content in the first mobile terminal 100 in the second mobile terminal 200 through a remote desktop operation, and a user cannot copy or cut content in the second mobile terminal 200 through a remote desktop operation in the first mobile terminal 100. In this embodiment, the content copied or cut by the user in the first mobile terminal 100 is synchronized to the clipboard of the second mobile terminal 200, so that the user can perform the paste operation of the same content when operating the second mobile terminal 200 through the remote desktop; similarly, when the user operates the second mobile terminal 200 to copy or cut on the remote desktop, the clipboard of the first mobile terminal 100 is synchronized to perform the same operation, so that the user can perform the same content pasting operation on the first mobile terminal 100.
Example one
An embodiment of the present invention provides a cross-platform cloud clipboard implementation method based on a browser, and referring to fig. 2, the method may include:
step S11, a preset extension program is loaded for a browser arranged in a first mobile terminal, when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, a local service is created for the first mobile terminal, the local service is used for realizing management of the browser of the first mobile terminal on a clipboard of the first mobile terminal, and the browser of the first mobile terminal is in communication connection with the second mobile terminal through a protocol transit gateway.
It should be noted that, in the existing remote desktop access technology, the clipboard contents between the local control end and the remote controlled end are intercommunicated, but only specific clients (such as QQ, etc.) need to be loaded in both the local control end and the remote controlled end. However, in the prior art, based on remote desktop access initiated by a browser, due to a security protection mechanism of the browser, the browser cannot directly access and modify the content of the clipboard of the local control end where the browser is located, so that when the remote desktop access based on the browser is performed, the clipboard content intercommunication between the local control end and the remote controlled end cannot be realized.
Specifically, in order to manage a clipboard of a first mobile terminal where a browser is located, a preset extension program is loaded for the browser arranged on the first mobile terminal, the extension program is created based on a browser extension mechanism, when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, and the local service communicates with the browser through a preset local information mechanism.
In this embodiment, the first mobile terminal is loaded with a browser, and is a local control end that initiates a remote desktop access for a user, where the browser of the first mobile terminal is in communication connection with the second mobile terminal through the protocol transit gateway, and the second mobile terminal is a remote controlled end. A browser extension mechanism is adopted in a browser of the first mobile terminal, and a local service is created for the first mobile terminal to interact with the browser and a clipboard of the first mobile terminal respectively. The local service implements management of clipboard copying (reading clipboard) and pasting (modifying clipboard) of the first mobile terminal through the first mobile terminal-independent interface. The local service performs information interaction with the browser through a Native Messaging mechanism (namely, a local information mechanism). Preferably, the local service is started and stopped along with the starting and stopping of the remote desktop of the browser, so that the memory running pressure is relieved.
Step S12, if the user performs the remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the local service in the first mobile terminal monitors whether the clipboard of the first mobile terminal has the copy-cut event, or the browser of the first mobile terminal monitors whether the browser of the first mobile terminal receives the copy-cut event of the remote desktop control operation sent by the protocol transit gateway, where the copy-cut event of the remote desktop control operation is fed back to the protocol transit gateway by the second mobile terminal when the clipboard of the second mobile terminal has the copy-cut event.
In this embodiment, when a user initiates a remote desktop access to a second mobile terminal through a browser of a first mobile terminal, whether a copy and cut event occurs in clipboards of the first mobile terminal and the second mobile terminal is monitored respectively.
Step S13, when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal has the copy-cut event, the local service in the first mobile terminal transmits the monitored copy-cut event to the browser in the first mobile terminal, the browser in the first mobile terminal transmits the received copy-cut event to the second mobile terminal through the protocol transit gateway, and the second mobile terminal modifies the clipboard thereof, so that the clipboard of the second mobile terminal has the same copy-cut event as that of the first mobile terminal.
In this embodiment, when the second mobile terminal receives the copy and cut event transmitted by the protocol transit gateway, it may directly control its clipboard to perform corresponding copy and cut.
Specifically, the step S13 may be implemented as follows:
1, when a local service in a first mobile terminal monitors that a clipboard of the first mobile terminal generates a copy and cut event, the local service in the first mobile terminal transmits the monitored copy and cut event to a browser in the first mobile terminal through a local information mechanism.
2, the browser in the first mobile terminal transmits the copy cut event to the protocol transit gateway through the first communication protocol.
And 3, the protocol transit gateway converts the received copy cutting event and transmits the copy cutting event to the second mobile terminal through a second communication protocol.
In this embodiment, the first communication Protocol may be a web socket Protocol of HTML5, where the web socket Protocol is a new network Protocol based on Transmission Control Protocol (TCP), and it implements full duplex communication between the browser and the server — allowing the server to actively send information to the client. The second communication protocol may be a remote access protocol supporting copy-and-paste, such as: remote Desktop Protocol (Remote Desktop Protocol, abbreviated as "RDP").
In this embodiment, when it is monitored that a clipboard of a first mobile terminal has a copy-cut event, a local service in the first mobile terminal transmits the monitored copy-cut event to a browser of the first mobile terminal through a local information mechanism, and the browser of the first mobile terminal transmits a received copy-cut event to a second mobile terminal through a protocol relay gateway, so that the clipboard of the second mobile terminal has the same copy-cut event.
Step S14, when the browser of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by the protocol transit gateway, the browser of the first mobile terminal forwards the copy and cut event to the local service of the first mobile terminal, and the local service of the first mobile terminal modifies the clipboard of the first mobile terminal, so that the clipboard of the first mobile terminal generates the same copy and cut event as the second mobile terminal.
It should be noted that, the above step S14 and step S13 are not sequentially executed, and their implementation is determined by whether the clipboard in the first mobile terminal or the second mobile terminal is copied or clipped.
Specifically, the step S14 may be implemented as follows:
1, when a browser of a first mobile terminal receives a copy and cut event of a remote desktop control operation sent by a protocol transit gateway, the browser of the first mobile terminal forwards the copy and cut event to a local service of the first mobile terminal through a local information mechanism.
In this embodiment, when a clipboard in the second mobile terminal has a copy and cut event of a remote desktop control operation, the second mobile terminal transmits the copy and cut event of the remote desktop control operation to the browser of the first mobile terminal through the protocol relay gateway, and the browser of the first mobile terminal transmits the copy and cut event to the local service of the first mobile terminal, so as to control the clipboard of the first mobile terminal to have the same copy and cut event.
According to the embodiment of the invention, the preset extension program is loaded to the browser arranged on the first mobile terminal, and when a user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, wherein the local service is used for realizing the management of the browser of the first mobile terminal on the clipboard of the first mobile terminal. When a clipboard in a first mobile terminal has a copy-cut event, a browser of the first mobile terminal can receive the copy-cut event and transmit the copy-cut event to a second mobile terminal, so that the clipboard of the second mobile terminal is correspondingly modified by the second mobile terminal; when the clipboard of the second mobile terminal generates a copy and cut event of remote desktop control operation, the browser in the first mobile terminal receives the copy and cut event and transmits the copy and cut event to the local service, and the clipboard of the first mobile terminal is modified correspondingly through the local service. Therefore, the content interaction of the clipboards of the first mobile terminal and the second mobile terminal is realized, the function of a remote desktop based on a browser is enhanced, and the cross-platform and cross-browser cloud clipboard functions are realized. In addition, the monitoring and auditing functions of the remote desktop clipboard can be further realized.
Example two
An embodiment of the present invention provides a cross-platform cloud clipboard implementation system based on a browser, which implements the method described in the first embodiment, and with reference to fig. 3, the system may include: the system comprises a first mobile terminal 100, a second mobile terminal 200 and a protocol relay gateway 300, wherein a browser of the first mobile terminal 100 is in communication connection with the second mobile terminal 200 through the protocol relay gateway 300.
The method includes the steps that a browser of a first mobile terminal 100 is loaded with a preset extension program, and the extension program is used for monitoring whether a clipboard of the first mobile terminal generates a copy and cut event or not through a local service in the first mobile terminal when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, or monitoring whether the clipboard of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by a protocol transit gateway or not through the browser of the first mobile terminal, and when the user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, and the local service is used for achieving management of the clipboard of the first mobile terminal through the browser of the first mobile terminal.
It should be noted that, in the existing remote desktop access technology, the clipboard contents between the local control end and the remote controlled end are intercommunicated, but only specific clients (such as QQ, etc.) need to be loaded in both the local control end and the remote controlled end. However, in the prior art, based on remote desktop access initiated by a browser, due to a browser security protection mechanism, the browser cannot directly access and modify the content of the clipboard of the local control end where the browser is located, so that when the remote desktop access is based on the browser, clipboard content intercommunication between the local control end and the remote controlled end cannot be achieved.
Specifically, in order to manage a clipboard of a first mobile terminal where a browser is located, a preset extension program is loaded for the browser arranged on the first mobile terminal, the extension program is created based on a browser extension mechanism, when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, and the local service communicates with the browser through a preset local information mechanism.
In this embodiment, the first mobile terminal is loaded with a browser, and is a local control end that initiates remote desktop access for a user, where the browser of the first mobile terminal is in communication connection with the second mobile terminal through the protocol transit gateway, and the second mobile terminal is a remote controlled end. A browser extension mechanism is adopted in a browser of the first mobile terminal, and a local service is created for the first mobile terminal to interact with the browser and a clipboard of the first mobile terminal respectively. The local service implements management of clipboard copying (reading clipboard) and pasting (modifying clipboard) of the first mobile terminal through the first mobile terminal-independent interface. The local service performs information interaction with the browser through a Native Messaging mechanism (namely, a local information mechanism). Preferably, the local service is started and stopped along with the starting and stopping of the remote desktop of the browser, so that the memory running pressure is relieved.
The first mobile terminal 100 is further configured to, when the local service in the first mobile terminal monitors that a copy-cut event occurs in the clipboard of the first mobile terminal, transmit the monitored copy-cut event to the browser in the first mobile terminal through the local service in the first mobile terminal, and transmit the received copy-cut event to the second mobile terminal through the protocol transfer gateway through the browser in the first mobile terminal.
The second mobile terminal 200 is configured to modify the clipboard according to the received copy-cut event, so that the clipboard of the second mobile terminal has the same copy-cut event as the first mobile terminal.
In this embodiment, when it is monitored that a clipboard of a first mobile terminal has a copy-cut event, a local service in the first mobile terminal transmits the monitored copy-cut event to a browser of the first mobile terminal through a local information mechanism, and the browser of the first mobile terminal transmits a received copy-cut event to a second mobile terminal through a protocol relay gateway, so that the clipboard of the second mobile terminal has the same copy-cut event.
The second mobile terminal 100 is further configured to transmit the copy-cut event of the remote desktop control operation to the browser of the first mobile terminal through the protocol transit gateway when the copy-cut event of the remote desktop control operation occurs on the clipboard of the second mobile terminal.
The first mobile terminal 100 is further configured to transmit the received copy and cut event of the remote desktop control operation to the local service of the first mobile terminal by the browser of the first mobile terminal, and modify the clipboard of the first mobile terminal correspondingly by the local service of the first mobile terminal, so that the clipboard of the first mobile terminal has the same copy and cut event as the second mobile terminal.
In this embodiment, when a clipboard in the second mobile terminal has a copy and cut event of a remote desktop control operation, the second mobile terminal transmits the copy and cut event of the remote desktop control operation to the browser of the first mobile terminal through the protocol relay gateway, and the browser of the first mobile terminal transmits the copy and cut event to the local service of the first mobile terminal, so as to control the clipboard of the first mobile terminal to have the same copy and cut event.
Specifically, when the local service in the first mobile terminal monitors that a copy-cut event occurs in the clipboard of the first mobile terminal:
the first mobile station 100 is further configured to transmit the monitored copy and cut event to a browser in the first mobile station through a local information mechanism via a local service in the first mobile station.
The first mobile terminal 100 is further configured to transmit the copy cut event to the protocol transit gateway through the first communication protocol via the browser in the first mobile terminal.
And a protocol transit gateway 300 for translating the received copy cut event and transmitting it to the second mobile terminal through the second communication protocol.
Specifically, when the browser of the first mobile terminal receives a copy and cut event of the remote desktop control operation sent by the protocol transit gateway:
the first mobile terminal 100 is further configured to forward the browser of the first mobile terminal to the local service of the first mobile terminal through the local information mechanism.
Alternatively, the first communication protocol may be a web socket protocol of HTML5, and the WebSocket protocol is a new network protocol based on TCP, and it implements full duplex communication between the browser and the server — allowing the server to actively send information to the client. The second communication protocol may be a remote access protocol supporting copy and paste, for example: the RDP protocol.
According to the embodiment of the invention, the preset extension program is loaded to the browser arranged on the first mobile terminal, and when a user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the extension program creates a local service for the first mobile terminal, wherein the local service is used for realizing the management of the browser of the first mobile terminal on the clipboard of the first mobile terminal. When a clipboard in a first mobile terminal has a copy-cut event, a browser of the first mobile terminal can receive the copy-cut event and transmit the copy-cut event to a second mobile terminal, so that the clipboard of the second mobile terminal is correspondingly modified by the second mobile terminal; when the clipboard of the second mobile terminal generates a copy and cut event of remote desktop control operation, the browser in the first mobile terminal receives the copy and cut event and transmits the copy and cut event to the local service, and the clipboard of the first mobile terminal is correspondingly modified through the local service. Therefore, the content interaction of the clipboards of the first mobile terminal and the second mobile terminal is realized, the function of a remote desktop based on a browser is enhanced, and the cross-platform and cross-browser cloud clipboard functions are realized. In addition, the monitoring and auditing functions of the remote desktop clipboard can be further realized.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (10)

1. A cross-platform cloud clipboard implementation method based on a browser is characterized by comprising the following steps:
the method comprises the steps that a preset extension program is loaded for a browser arranged in a first mobile terminal, when a user carries out remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, a local service is established for the first mobile terminal, the local service is used for realizing management of the browser of the first mobile terminal on a clipboard of the first mobile terminal, and the browser of the first mobile terminal is in communication connection with the second mobile terminal through a protocol transit gateway;
if the user performs the remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, the local service in the first mobile terminal monitors whether a clipboard of the first mobile terminal generates a copy and cut event or whether the browser of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by the protocol transit gateway, wherein the copy and cut event of the remote desktop control operation is fed back to the protocol transit gateway by the second mobile terminal when the clipboard generates the copy and cut event;
when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal generates a copy and cut event, the local service in the first mobile terminal transmits the monitored copy and cut event to the browser in the first mobile terminal, the browser in the first mobile terminal transmits the received copy and cut event to the second mobile terminal through the protocol transfer gateway, and the clipboard of the second mobile terminal is modified by the second mobile terminal, so that the clipboard of the second mobile terminal generates the same copy and cut event as the clipboard of the first mobile terminal;
when the browser of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by the protocol transfer gateway, the browser of the first mobile terminal forwards the copy and cut event to the local service of the first mobile terminal, and the local service of the first mobile terminal modifies the clipboard of the first mobile terminal so that the clipboard of the first mobile terminal generates the same copy and cut event as the second mobile terminal.
2. The method of claim 1, wherein the extension program is created based on a browser extension mechanism, and the local service communicates with a preset local information mechanism between browsers.
3. The method of claim 2, wherein when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal has a copy-cut event, the local service in the first mobile terminal transmits the monitored copy-cut event to the browser in the first mobile terminal, and the browser in the first mobile terminal transmits the received copy-cut event to the second mobile terminal through the protocol relay gateway, the method comprising:
when the local service in the first mobile terminal monitors that a clipboard of the first mobile terminal generates a copy and cut event, the local service in the first mobile terminal transmits the monitored copy and cut event to a browser in the first mobile terminal through a local information mechanism;
the browser in the first mobile terminal transmits the copy shearing event to a protocol transit gateway through a first communication protocol;
and the protocol transit gateway converts the received copy cutting event and transmits the copy cutting event to the second mobile terminal through a second communication protocol.
4. The method according to claim 2, wherein when the browser of the first mobile terminal receives the copy and cut event of the remote desktop control operation sent by the protocol transit gateway, the browser of the first mobile terminal forwards the copy and cut event to the local service of the first mobile terminal, and the method comprises:
when the browser of the first mobile terminal receives a copy shearing event of the remote desktop control operation sent by the protocol transfer gateway, the browser of the first mobile terminal forwards the copy shearing event to the local service of the first mobile terminal through a local information mechanism.
5. The method of claim 3, wherein the first communication protocol is a web socket protocol of HTML5, and wherein the second communication protocol is a remote access protocol supporting copy and paste.
6. A cross-platform cloud clipboard implementation system based on a browser is characterized by comprising: a first mobile terminal, a second mobile terminal and a protocol transfer gateway, wherein, a browser of the first mobile terminal is connected with the second mobile terminal through the protocol transfer gateway,
the method comprises the steps that a browser of a first mobile terminal is loaded with a preset extension program and used for monitoring whether a clipboard of the first mobile terminal generates a copy and cut event or not through a local service in the first mobile terminal when a user performs remote desktop control operation on a second mobile terminal through the browser in the first mobile terminal, or monitoring whether the user receives the copy and cut event of the remote desktop control operation sent by a protocol transfer gateway or not through the browser of the first mobile terminal, the extension program creates a local service for the first mobile terminal when the user performs remote desktop control operation on the second mobile terminal through the browser in the first mobile terminal, and the local service is used for realizing management of the clipboard of the first mobile terminal by the browser of the first mobile terminal;
the first mobile terminal is further used for transmitting the monitored copy and cut event to a browser in the first mobile terminal through the local service in the first mobile terminal when the local service in the first mobile terminal monitors that the clipboard of the first mobile terminal generates the copy and cut event, and transmitting the received copy and cut event to the second mobile terminal through a protocol transfer gateway through the browser in the first mobile terminal;
the second mobile terminal is used for modifying the clipboard according to the received copy-cut event so as to enable the clipboard of the second mobile terminal to generate the copy-cut event which is the same as that of the first mobile terminal;
the second mobile terminal is further used for transmitting the copy and cut event of the remote desktop control operation to the browser of the first mobile terminal through the protocol transfer gateway when the copy and cut event of the remote desktop control operation occurs on the clipboard of the second mobile terminal;
the browser of the first mobile terminal is further used for transmitting the received copy and cut event of the remote desktop control operation to the local service of the first mobile terminal, and correspondingly modifying the clipboard of the first mobile terminal through the local service of the first mobile terminal, so that the clipboard of the first mobile terminal generates the same copy and cut event as the second mobile terminal.
7. The system of claim 6, wherein the extension program is created based on a browser extension mechanism, and the local service communicates with a preset local information mechanism between browsers.
8. The system of claim 7, wherein when the local service in the first mobile terminal monitors the clipboard of the first mobile terminal for a copy-cut event,
the first mobile terminal is also used for transmitting the monitored copy and cut event to a browser in the first mobile terminal through a local information mechanism by a local service in the first mobile terminal;
the first mobile terminal is also used for transmitting the copy cutting event to the protocol transit gateway through a first communication protocol by a browser in the first mobile terminal;
and the protocol transit gateway is used for converting the received copy cutting event and transmitting the copy cutting event to the second mobile terminal through a second communication protocol.
9. The system of claim 7, wherein when the browser of the first mobile terminal receives a copy-cut event of the remote desktop control operation transmitted by the protocol transit gateway,
the first mobile terminal is also used for forwarding the browser of the first mobile terminal to the local service of the first mobile terminal through a local information mechanism.
10. The system of claim 8, wherein the first communication protocol is a web socket protocol of HTML5, and wherein the second communication protocol is a remote access protocol supporting copy and paste.
CN201810619755.8A 2018-06-14 2018-06-14 Cross-platform cloud clipboard implementation method and system based on browser Active CN110609752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810619755.8A CN110609752B (en) 2018-06-14 2018-06-14 Cross-platform cloud clipboard implementation method and system based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810619755.8A CN110609752B (en) 2018-06-14 2018-06-14 Cross-platform cloud clipboard implementation method and system based on browser

Publications (2)

Publication Number Publication Date
CN110609752A CN110609752A (en) 2019-12-24
CN110609752B true CN110609752B (en) 2022-11-15

Family

ID=68888257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810619755.8A Active CN110609752B (en) 2018-06-14 2018-06-14 Cross-platform cloud clipboard implementation method and system based on browser

Country Status (1)

Country Link
CN (1) CN110609752B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301929B (en) * 2021-12-10 2024-03-08 阿里巴巴(中国)有限公司 Cloud clipboard data synchronization method and device, cloud server and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system
CN103685441A (en) * 2013-07-02 2014-03-26 重庆绿色智能技术研究院 Remote desktop control system based on Loongson terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9491161B2 (en) * 2014-09-30 2016-11-08 Citrix Systems, Inc. Systems and methods for performing single sign-on by an intermediary device for a remote desktop session of a client
US10237344B2 (en) * 2016-05-26 2019-03-19 Vmware, Inc. Copy/paste files between remote agent and local machine in HTML5 view desktop

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system
CN103685441A (en) * 2013-07-02 2014-03-26 重庆绿色智能技术研究院 Remote desktop control system based on Loongson terminal

Also Published As

Publication number Publication date
CN110609752A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
US6925481B2 (en) Technique for enabling remote data access and manipulation from a pervasive device
US9961042B2 (en) Universal mobile device messaging
US7818458B2 (en) Clipboard for application sharing
US20020156871A1 (en) Messaging protocol
US20020138653A1 (en) Workstation system, computer, data transfer method, data editing method, computer program generation method, computer program and storage medium
US20090077184A1 (en) Remote Control of Mobile Terminal via Remote Control Proxy and SMS
US20080294729A1 (en) Email object for open mobile alliance data synchronization usage
US20100153493A1 (en) Communications system providing extensible protocol translation and configuration features and related methods
US20050266836A1 (en) Mobile gateway for secure extension of enterprise services to mobile devices
US8078684B2 (en) Accessing web services
KR20020001140A (en) System and method for providing wireless application protocol service through internet
US20090030917A1 (en) Multimedia messaging service-based database synchronization
CN109740096B (en) Method, device and system for realizing real-time preview and storage medium
JP2013504806A (en) Method, apparatus and system for file transfer based on file directory
US10594768B2 (en) Method and apparatus of performing remote command dispatching
CN108418903B (en) Remote access system and access method for embedded software log
JP7430821B2 (en) Information interaction methods, devices, servers, systems and storage media
CN104539510A (en) Multi-protocol-based information pushing system and method
WO2014013701A1 (en) Information processing system, control method, server, information processing device, and storage medium
CN110609752B (en) Cross-platform cloud clipboard implementation method and system based on browser
US20090138620A1 (en) Apparatus and method facilitating web service communications between networks
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
CN109542647B (en) Information transmission management method and device, electronic device and storage medium
US8032593B2 (en) Communications system providing reduced access latency and related methods
JP2003141002A (en) Url length conversion system and program

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
PE01 Entry into force 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 cross platform cloud clipboard implementation method and system

Granted publication date: 20221115

Pledgee: Shenzhen Branch of China Merchants Bank Co.,Ltd.

Pledgor: SHENZHEN SKYBILITY SOFTWARE Co.,Ltd.

Registration number: Y2024980006558