WO2020034651A1 - Remote operation content synchronization system and method - Google Patents

Remote operation content synchronization system and method Download PDF

Info

Publication number
WO2020034651A1
WO2020034651A1 PCT/CN2019/082700 CN2019082700W WO2020034651A1 WO 2020034651 A1 WO2020034651 A1 WO 2020034651A1 CN 2019082700 W CN2019082700 W CN 2019082700W WO 2020034651 A1 WO2020034651 A1 WO 2020034651A1
Authority
WO
WIPO (PCT)
Prior art keywords
event
type
message
terminal
operation type
Prior art date
Application number
PCT/CN2019/082700
Other languages
French (fr)
Chinese (zh)
Inventor
时永欣
Original Assignee
北京大米科技有限公司
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 北京大米科技有限公司 filed Critical 北京大米科技有限公司
Publication of WO2020034651A1 publication Critical patent/WO2020034651A1/en

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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the present invention relates to the field of multimedia technology, and in particular, to a system and method for remotely operating content synchronization.
  • an embodiment of the present invention provides a system for remotely operating content synchronization, the main purpose of which is to reduce problems caused by high concurrent writing.
  • the present invention mainly provides the following technical solutions:
  • an embodiment of the present invention provides a system for remotely operating content synchronization, including a first terminal, a second terminal, and a server, where
  • the first terminal sends an operation event generated based on an operation acting on the interface of the first terminal, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
  • a server receiving the operation event, broadcasting the operation message or storing and broadcasting the operation message according to the operation type;
  • the second terminal synchronously broadcasts the operation message; a plurality of functional modules are rendered on the interface of the second terminal.
  • an embodiment of the present invention provides a method for remotely operating content synchronization, including:
  • the first terminal sends an operation event generated based on an operation acting on the first terminal interface, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
  • the server receives the operation event, and broadcasts the operation message or stores and broadcasts the operation message according to the operation type;
  • the operation message broadcasted by the second terminal synchronously; a plurality of functional modules are rendered on the interface of the second terminal.
  • an embodiment of the present invention provides a terminal for remotely operating content synchronization, and the terminal includes:
  • a monitoring unit that monitors an operation acting on the terminal interface
  • a response unit which responds to the operation
  • An operation event generating unit which generates an operation event based on a response to the operation, where the operation event includes an operation message and an operation type;
  • a sending unit sending the operation event, so as to broadcast the operation message or store and broadcast the operation message according to the operation type;
  • the rendering unit renders a plurality of function modules on the terminal interface.
  • an embodiment of the present invention provides a method for remotely operating content synchronization, including:
  • the operation event including an operation message and an operation type
  • a plurality of functional modules are rendered on the terminal interface.
  • an embodiment of the present invention provides a server for remotely operating content synchronization, and the server includes:
  • a receiving unit that receives an operation event generated based on the operation, and the operation event includes an operation message and an operation type;
  • Operation type judgment unit which judges the operation type
  • the storage unit stores operation messages when the operation type is a write operation.
  • an embodiment of the present invention provides a method for remotely operating content synchronization, including:
  • the operation event including an operation message and an operation type
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the foregoing method are implemented.
  • an embodiment of the present invention provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor implements the foregoing method when the program is executed. step.
  • the system for synchronizing remote operation contents classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database.
  • the second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
  • FIG. 1 is a schematic diagram of an embodiment of a system for remotely operating content synchronization according to the present invention.
  • FIG. 2 is a schematic diagram of an embodiment of a terminal for remotely operating content synchronization according to the present invention.
  • FIG. 3 shows a flowchart of an embodiment of a method for remotely operating content synchronization according to the present invention.
  • FIG. 4 shows a flowchart of an embodiment of a server for remotely operating content synchronization according to the present invention.
  • FIG. 1 shows a schematic diagram of an embodiment of the system for remotely operating content synchronization of the present invention.
  • a system for remotely operating content synchronization according to an embodiment of the present invention includes a first terminal 10, a second terminal 20, and a server 30.
  • the first terminal 10 sends an operation event generated based on an operation acting on the interface of the first terminal 10, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the interface of the first terminal 10;
  • the server 30 receives operation events and broadcasts operation messages or stores and broadcasts operation messages according to operation types;
  • the second terminal 20 synchronizes broadcast operation messages; a plurality of functional modules are rendered on the interface of the second terminal 20.
  • the function module includes a selection module, a library module, a drag text and picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / or a screen clearing module.
  • the selection module may be used, for example, to select objects such as pictures, text, audio, video, and documents, so that the user of the first terminal 10 communicates with the user of the second terminal 20.
  • the library module can be used to store pictures (photos), for example, pictures used for teaching, life photos of end users, etc.
  • the end users can display the contents of teaching through pictures to make teaching more rich and vivid.
  • the drag text image module can be used to drag or move pictures and / or text, for example. By dragging the text image module, the end user can explain the teaching content more clearly and accurately.
  • the line drawing module can be used to draw lines on the operation interface of the terminal, such as straight lines and curves, and can also draw lines of various thicknesses, and can also draw lines of various colors to meet different teaching needs.
  • the audio playback module can play audio, including long audio and short audio, for example, to play or pause audio according to a user's click operation.
  • the page jump and page turning module can be used, for example, to receive a user's click operation or input a page number, so as to turn the page according to the click operation or jump to a corresponding page number according to the input page number.
  • the screen clearing module may be used, for example, to receive an operation of clicking the screen clearing button, and restore the initial state of the page according to the operation of clicking the screen clearing button.
  • rendering is a process of presenting data to a user on a graphical user interface in the form of a specific appearance, so that the user can interact more conveniently on the screen and improve the use experience.
  • the first terminal 10 and the second terminal 20 each render one or more of the above-mentioned functional modules on their respective interfaces.
  • the following takes the first terminal 10 as an example to render one or more functional modules on its interface as an example for description.
  • the first terminal 10 passes The CPU calculates the display content, such as view creation, layout calculation, picture decoding, text drawing, etc. After the calculation is completed, the CPU submits the display content to the GPU, and the GPU renders according to the display content.
  • the steps of the first terminal 10 rendering multiple functional modules are as follows: obtaining rendering data information related to the rendering of each functional module from the server 30; processing the rendering data information to package it into a user required by the rendering functional module Interface information; the first terminal 10 renders corresponding functional modules according to the user interface information.
  • the user interface information includes the graphic content in the functional module interface, the presentation form of the functional module interface, the location of each component of the functional module interface, and the size of each component.
  • the step of rendering further includes: storing the rendering result in a cache of the first terminal 10, so that when rendering again, the rendering data can be directly read from the cache for rendering, thereby improving rendering speed , Improve the smoothness of the product, and bring a better experience to users.
  • the system for synchronizing remote operation contents classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database.
  • the second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
  • the operation type may be divided into two types.
  • the operation type includes a first operation type and a second operation type.
  • the server 30 broadcasts an operation message of an operation event of the first operation type, and the server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type.
  • a part of operations are divided into the first operation type.
  • the operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30.
  • the operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
  • a plurality of functional modules are rendered on the first terminal interface.
  • the functional modules include a selection module, a gallery module, a drag-and-drop image module, a line drawing module, an audio playback module, a page jumping and page turning module, and / or a screen clearing module.
  • the first terminal in the embodiment of the present invention may be a terminal controlled by a teacher or a terminal controlled by a student.
  • an embodiment of the present invention provides a method for remotely operating content synchronization, and the method in this embodiment may be implemented by the foregoing system. Therefore, the description of the above system embodiment can be used to understand the method of the present invention.
  • the method for remote operation content synchronization in the embodiment of the present invention includes the following steps:
  • the first terminal sends an operation event generated based on an operation acting on the first terminal interface, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
  • the server receives the operation event, and broadcasts the operation message or stores and broadcasts the operation message according to the operation type;
  • the operation message broadcasted by the second terminal synchronously; a plurality of functional modules are rendered on the interface of the second terminal.
  • the method for remote operation content synchronization provided by the embodiment of the present invention classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database. The second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
  • the operation type may be divided into two types.
  • the operation type includes a first operation type and a second operation type.
  • the server 30 broadcasts an operation message of an operation event of the first operation type.
  • the server 30 stores and broadcasts a second operation type.
  • a part of operations are divided into the first operation type.
  • the operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30.
  • the operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
  • an embodiment of the present invention provides a terminal for remotely operating content synchronization.
  • FIG. 2 shows a schematic diagram of an embodiment of a terminal for remotely operating content synchronization according to the present invention.
  • Content synchronization terminals include:
  • the operation event generating unit 13 generates an operation event based on the response operation, and the operation event includes an operation message and an operation type;
  • the sending unit 14 sends an operation event, so as to broadcast the operation message or store and broadcast the operation message according to the operation type;
  • the rendering unit 15 renders multiple function modules on the terminal interface.
  • the terminal for remote operation content synchronization categorizes operations, and the operation event sent includes operation type information, so as to perform different processing on operation messages according to different operation types, for example, only broadcast operation messages. Does not write to the database, writes the operation message to the database and broadcasts the message, because some operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data .
  • operation types may be divided into two types.
  • operation types include a first operation type and a second operation type, an operation message that broadcasts an operation event of the first operation type, and an operation that stores and broadcasts a second operation type.
  • Action message for the event In the embodiment of the present invention, a part of operations are divided into the first operation type, so that only operation messages of the type are broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving services brought by high concurrent writing. Performance loss.
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 is further configured to determine whether it is a class mode. If it is a class mode, the historical data is obtained from the server 30.
  • the operation message in the operation event sent includes the historical data obtained from the server 30.
  • the operation type is the first operation type; determine whether there is historical page number data, and if so, jump to the historical page number page.
  • This embodiment has related parts with the system embodiment for remote operation content synchronization. For related parts, refer to the description of the system embodiment.
  • an embodiment of the present invention provides a method for remotely operating content synchronization.
  • FIG. 3 shows a flowchart of an embodiment of a method for remotely operating content synchronization according to the present invention. Referring to FIG. The method for operating content synchronization includes the following steps:
  • the operation event includes an operation message and an operation type.
  • the terminal for remote operation content synchronization categorizes operations, and the operation event sent includes operation type information, so as to perform different processing on operation messages according to different operation types, for example, only broadcast operation messages. Does not write to the database, writes the operation message to the database and broadcasts the message, because some operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data .
  • operation types may be divided into two types.
  • operation types include a first operation type and a second operation type, an operation message that broadcasts an operation event of the first operation type, and an operation that stores and broadcasts a second operation type.
  • Action message for the event In the embodiment of the present invention, a part of operations are divided into the first operation type, so that only operation messages of the type are broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving services brought by high concurrent writing. Performance loss.
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30.
  • the operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
  • This embodiment has related parts with the system embodiment for remote operation content synchronization. For related parts, refer to the description of the system embodiment.
  • an embodiment of the present invention provides a server for remotely operating content synchronization.
  • FIG. 4 shows a flowchart of an embodiment of a server for remotely operating content synchronization according to the present invention.
  • a server according to an embodiment of the present invention include:
  • the receiving unit 31 receives an operation event generated based on the operation, and the operation event includes an operation message and an operation type;
  • Operation type judgment unit 32 which judges the operation type
  • the storage unit 34 stores an operation message when the operation type is a write operation.
  • the server for remote operation content synchronization processes the operation message differently according to different operation types, for example, only broadcasts the operation message without writing to the database, and writes the operation message to the database and broadcasts the message. Partial operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data.
  • the operation type may be divided into two types.
  • the operation type includes a first operation type and a second operation type.
  • the server 30 broadcasts an operation message of an operation event of the first operation type, and the server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type.
  • a part of operations are divided into the first operation type.
  • the operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30.
  • the operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
  • an embodiment of the present invention provides a method for remotely operating content synchronization, including the following steps:
  • Receive operation events, operation events include operation messages and operation types
  • Broadcast operation messages or store and broadcast operation messages according to the operation type are broadcast operation messages or store and broadcast operation messages according to the operation type.
  • the method for remote operation content synchronization performed by the embodiment of the present invention performs different processing on operation messages according to different operation types, such as broadcasting only operation messages without writing to a database, and writing operation messages to a database and broadcasting the message. Partial operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data.
  • the operation type may be divided into two types.
  • the operation type includes a first operation type and a second operation type.
  • the server 30 broadcasts an operation message of an operation event of the first operation type.
  • the server 30 stores and broadcasts a second operation type.
  • a part of operations are divided into the first operation type.
  • the operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
  • the operation of the first operation type includes a process operation of an operation event
  • the second operation type includes a result operation of the operation event.
  • the data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced.
  • the second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
  • the specific operations are not limited, and they can be synchronized according to the presence or absence of writing.
  • the operation is login.
  • the first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30.
  • the operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the steps of the foregoing method are implemented.
  • an embodiment of the present invention provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor implements the foregoing method when the program is executed. step.
  • the “unit” or “module” in this specification refers to software and / or hardware capable of completing specific functions independently or in cooperation with other components, where the hardware may be, for example, FPGA (Field-Programmable Gate Array). , IC (Integrated Circuit), etc.
  • An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method of any of the foregoing embodiments are implemented.
  • the computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, and flash memory devices. , Magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
  • An embodiment of the present invention further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the program, the steps of the method of any of the foregoing embodiments are implemented.
  • the processor is a control center of a computer system, and may be a processor of a physical machine or a processor of a virtual machine.
  • the terms “first”, “second”, etc. are used for descriptive purposes only, and cannot be understood to indicate or imply relative importance or order; the term “plurality” means two or more, Unless otherwise clearly defined.
  • the terms “installation”, “connected”, “connected”, “fixed” and the like should be understood in a broad sense. For example, “connected” can be a fixed connection, a detachable connection, or an integral connection; “connected” can It is directly connected or indirectly connected through an intermediate medium.
  • the specific meanings of the above terms in the present invention can be understood according to specific situations.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of multimedia. In order to solve the problem of service performance loss in remote operations, the present invention provides a remote operation content synchronization system and method. The remote operation content synchronization system comprises a first terminal, a second terminal, and a server. The first terminal transmits an operation event generated on the basis of an operation acting on the first terminal interface, the operation event comprising an operation message and an operation type; multiple function modules are rendered on the first terminal interface. The server receives the operation event, and broadcasts the operation message, or stores and broadcasts the operation message, according to the operation type. The second terminal synchronizes the broadcast operation message; multiple function modules are rendered on the second terminal interface. The present invention alleviates the problem of service performance loss caused by high concurrent writes.

Description

一种远程操作内容同步的***及方法System and method for remote operation content synchronization
本申请要求了2018年8月14日提交的、申请号为201810924691.2、发明名称为“一种远程操作内容同步的***及方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on August 14, 2018, with application number 201810924691.2, and the invention name is "a system and method for remotely operating content synchronization", the entire contents of which are incorporated herein by reference. in.
技术领域Technical field
本发明涉及多媒体技术领域,特别涉及一种远程操作内容同步的***及方法。The present invention relates to the field of multimedia technology, and in particular, to a system and method for remotely operating content synchronization.
背景技术Background technique
本发明对于背景技术的描述属于与本发明相关的相关技术,仅仅是用于说明和便于理解本发明的发明内容,不应理解为申请人明确认为或推定申请人认为是本发明在首次提出申请的申请日的现有技术。The description of the background technology of the present invention belongs to the related technology related to the present invention, and is only used to explain and facilitate the understanding of the inventive content of the present invention. It should not be understood that the applicant explicitly thinks or presumes that the applicant thinks that the present invention is the first application Prior art at the filing date.
随着网络的发展,为会议和授课等提供了极大的便利。会议或授课等活动会需要互动,因此任何一端进行操作要进行同步。但现有的远程操作同步中,会由于高并发写入数据库操作而带来服务性能损耗。With the development of the Internet, great convenience has been provided for meetings and lectures. Events such as meetings or lectures require interaction, so operations at either end need to be synchronized. However, in the existing remote operation synchronization, service performance is lost due to high concurrent write database operations.
发明内容Summary of the Invention
有鉴于此,本发明实施例提供一种远程操作内容同步的***,主要目的是减少高并发写入带来的问题。In view of this, an embodiment of the present invention provides a system for remotely operating content synchronization, the main purpose of which is to reduce problems caused by high concurrent writing.
为达到上述目的,本发明主要提供如下技术方案:To achieve the above object, the present invention mainly provides the following technical solutions:
第一方面,本发明实施例提供了一种远程操作内容同步的***,包括第一终端、第二终端和服务器,其中In a first aspect, an embodiment of the present invention provides a system for remotely operating content synchronization, including a first terminal, a second terminal, and a server, where
第一终端,发送基于作用于所述第一终端界面的操作生成的操作事件,所述操作事件包括操作消息和操作类型;在所述第一终端界面上渲染出多个功能模块;The first terminal sends an operation event generated based on an operation acting on the interface of the first terminal, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
服务器,接收所述操作事件,根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播;A server, receiving the operation event, broadcasting the operation message or storing and broadcasting the operation message according to the operation type;
第二终端,同步广播的所述操作消息;在所述第二终端界面上渲染出多个功能模块。The second terminal synchronously broadcasts the operation message; a plurality of functional modules are rendered on the interface of the second terminal.
第二方面,本发明实施例提供了一种远程操作内容同步的方法,包括:In a second aspect, an embodiment of the present invention provides a method for remotely operating content synchronization, including:
第一终端发送基于作用于所述第一终端界面的操作生成的操作事件,所述操作事件包括操作消息和操作类型;在所述第一终端界面上渲染出多个功能模块;The first terminal sends an operation event generated based on an operation acting on the first terminal interface, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
服务器接收所述操作事件,根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播;The server receives the operation event, and broadcasts the operation message or stores and broadcasts the operation message according to the operation type;
第二终端同步广播的所述操作消息;在所述第二终端界面上渲染出多个功能模块。The operation message broadcasted by the second terminal synchronously; a plurality of functional modules are rendered on the interface of the second terminal.
第三方面,本发明实施例提供了一种远程操作内容同步的终端,所述终端包括:According to a third aspect, an embodiment of the present invention provides a terminal for remotely operating content synchronization, and the terminal includes:
监测单元,监测作用于所述终端界面的操作;A monitoring unit that monitors an operation acting on the terminal interface;
响应单元,响应所述操作;A response unit, which responds to the operation;
操作事件生成单元,基于响应所述操作生成操作事件,所述操作事件包括操作消息和操作类型;An operation event generating unit, which generates an operation event based on a response to the operation, where the operation event includes an operation message and an operation type;
发送单元,发送所述操作事件,以便于根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播;A sending unit, sending the operation event, so as to broadcast the operation message or store and broadcast the operation message according to the operation type;
渲染单元,在所述终端界面上渲染出多个功能模块。The rendering unit renders a plurality of function modules on the terminal interface.
第四方面,本发明实施例提供了一种远程操作内容同步的方法,包括:In a fourth aspect, an embodiment of the present invention provides a method for remotely operating content synchronization, including:
监测作用于终端界面的操作;Monitor operations on the terminal interface;
响应所述操作;In response to said operation;
基于响应所述操作生成操作事件,所述操作事件包括操作消息和操作类型;Generating an operation event based on the operation, the operation event including an operation message and an operation type;
发送所述操作事件,以便于根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播;Sending the operation event so as to broadcast the operation message or store and broadcast the operation message according to the operation type;
在所述终端界面上渲染出多个功能模块。A plurality of functional modules are rendered on the terminal interface.
第五方面,本发明实施例提供了一种远程操作内容同步的服务器,所述服务器包括:In a fifth aspect, an embodiment of the present invention provides a server for remotely operating content synchronization, and the server includes:
接收单元,接收基于操作生成的操作事件,操作事件包括操作消息和操作类型;A receiving unit that receives an operation event generated based on the operation, and the operation event includes an operation message and an operation type;
操作类型判断单元,判断操作类型;Operation type judgment unit, which judges the operation type;
广播单元,广播操作消息,以便同步;A broadcasting unit for broadcasting operation messages for synchronization;
存储单元,当操作类型为写入型操作时,存储操作消息。The storage unit stores operation messages when the operation type is a write operation.
第六方面,本发明实施例提供了一种远程操作内容同步的方法,包括:According to a sixth aspect, an embodiment of the present invention provides a method for remotely operating content synchronization, including:
接收操作事件,所述操作事件包括操作消息和操作类型;Receiving an operation event, the operation event including an operation message and an operation type;
根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播。Broadcasting the operation message or storing and broadcasting the operation message according to the operation type.
第七方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的方法的步骤。According to a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the foregoing method are implemented.
第八方面,本发明实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的方法的步骤。According to an eighth aspect, an embodiment of the present invention provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor implements the foregoing method when the program is executed. step.
与现有技术相比,本发明实施例的有益效果在于:Compared with the prior art, the beneficial effects of the embodiments of the present invention are:
本发明实施例提供的远程操作内容同步的***通过对操作进行分类,根据不同的操作类型对操作消息进行不同处理,如对于第一操作类型,仅对操作消息进行广播而不写入数据库,对第二操作类型写入数据库并广播该消息,从而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The system for synchronizing remote operation contents provided by the embodiment of the present invention classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database. The second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1示出了本发明远程操作内容同步的***的一实施例的示意图。FIG. 1 is a schematic diagram of an embodiment of a system for remotely operating content synchronization according to the present invention.
图2示出了本发明远程操作内容同步的终端的一实施例的示意图。FIG. 2 is a schematic diagram of an embodiment of a terminal for remotely operating content synchronization according to the present invention.
图3示出了本发明远程操作内容同步的方法的一实施例的流程图。FIG. 3 shows a flowchart of an embodiment of a method for remotely operating content synchronization according to the present invention.
图4示出了本发明远程操作内容同步的服务器的一实施例的流程图。FIG. 4 shows a flowchart of an embodiment of a server for remotely operating content synchronization according to the present invention.
具体实施方式detailed description
下面结合具体实施例对本发明作进一步详细描述,但不作为对本发明的限定。在下述说明中,不同的“一实施例”或“实施例”指的不一定是同一实施例。此外,一或多个实施例中的特定特征、结构、或特点可由任何合适形式组合。The present invention is described in further detail below with reference to specific embodiments, but is not intended to limit the present invention. In the following description, different "one embodiment" or "an embodiment" does not necessarily mean the same embodiment. Furthermore, the particular features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
本发明实施例提供了一种远程操作内容同步的***,图1示出了本发明远程操作内容同步的***的一实施例的示意图。参见图1,本发明实施例的远程操作内容同步的***包括第一终端10、第二终端20和服务器30,其中An embodiment of the present invention provides a system for remotely operating content synchronization. FIG. 1 shows a schematic diagram of an embodiment of the system for remotely operating content synchronization of the present invention. Referring to FIG. 1, a system for remotely operating content synchronization according to an embodiment of the present invention includes a first terminal 10, a second terminal 20, and a server 30.
第一终端10,发送基于作用于第一终端10界面的操作生成的操作事件,操作事件包括操作消息和操作类型;在第一终端10界面上渲染出多个功能模块;The first terminal 10 sends an operation event generated based on an operation acting on the interface of the first terminal 10, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the interface of the first terminal 10;
服务器30,接收操作事件,根据操作类型对操作消息广播或对操作消息存储和广播;The server 30 receives operation events and broadcasts operation messages or stores and broadcasts operation messages according to operation types;
第二终端20,同步广播的操作消息;在第二终端20界面上渲染出多个功能模块。The second terminal 20 synchronizes broadcast operation messages; a plurality of functional modules are rendered on the interface of the second terminal 20.
其中,功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块。Among them, the function module includes a selection module, a library module, a drag text and picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / or a screen clearing module.
选择模块例如可以用于选择图片、文字、音频、视频、文档等对象,以使第一终端10的用户与第二终端20的用户进行交流。The selection module may be used, for example, to select objects such as pictures, text, audio, video, and documents, so that the user of the first terminal 10 communicates with the user of the second terminal 20.
图库模块例如可以用于存放图片(照片),例如专门用于教学的图片、终端用户的生活照片等,终端用户可以通过图片展示教学的内容,以使教学更丰富生动。The library module can be used to store pictures (photos), for example, pictures used for teaching, life photos of end users, etc. The end users can display the contents of teaching through pictures to make teaching more rich and vivid.
拖动文字图片模块例如可以用于拖动或者移动图片和/或文字,通过拖动文字图片模块,终端用户能够更清晰、更准确地对教学内容进行讲解。The drag text image module can be used to drag or move pictures and / or text, for example. By dragging the text image module, the end user can explain the teaching content more clearly and accurately.
画线模块例如可以用于在终端的操作界面上画线,例如直线、曲线,也可以画各种粗细的线,还可以画各种颜色的线,满足不同教学需求。The line drawing module can be used to draw lines on the operation interface of the terminal, such as straight lines and curves, and can also draw lines of various thicknesses, and can also draw lines of various colors to meet different teaching needs.
音频播放模块例如可以播放音频,包括长音频和短音频,根据用户的点击操作以播放或者暂停播放音频。The audio playback module can play audio, including long audio and short audio, for example, to play or pause audio according to a user's click operation.
跳页翻页模块例如可以用于接收使用者的点击操作或者输入的页码,以根据点击操作翻页或者根据输入的页码跳转至相应的页码。The page jump and page turning module can be used, for example, to receive a user's click operation or input a page number, so as to turn the page according to the click operation or jump to a corresponding page number according to the input page number.
清屏模块例如可以用于接收点击清屏按钮的操作,根据点击清屏按钮的操作还原页面的初始状态。The screen clearing module may be used, for example, to receive an operation of clicking the screen clearing button, and restore the initial state of the page according to the operation of clicking the screen clearing button.
在一个实施例中,渲染(render)为将数据以特定外观的形式在图形用户界面上呈现给用户的过程,从而用户能够在屏幕上更方便地进行交互,提升使用体验。在一个实施例中,第一终端10和第二终端20在其各自界面上均渲染出上述一个或者多个功能模块。下面以第一终端10在其界面上均渲染出上述一个或者多个功能模块为例进行介绍。在第一终端10中,CPU(中央处理器)、GPU(Graphics Processing Unit,图形处理器)和显示器在进行功能模块渲染时,通过以下方式协同工作:在同步信号到达后,第一终端10通过CPU计算显示内容,比如视图的创建、布局计算、图片解码、文本绘制等,计算完成后CPU会将显示内容提交到GPU,由GPU根据显示内容进行渲染。In one embodiment, rendering is a process of presenting data to a user on a graphical user interface in the form of a specific appearance, so that the user can interact more conveniently on the screen and improve the use experience. In one embodiment, the first terminal 10 and the second terminal 20 each render one or more of the above-mentioned functional modules on their respective interfaces. The following takes the first terminal 10 as an example to render one or more functional modules on its interface as an example for description. In the first terminal 10, when a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), and a display perform function module rendering, they work together in the following ways: After the synchronization signal arrives, the first terminal 10 passes The CPU calculates the display content, such as view creation, layout calculation, picture decoding, text drawing, etc. After the calculation is completed, the CPU submits the display content to the GPU, and the GPU renders according to the display content.
在一个实施例中,第一终端10渲染多个功能模块的步骤如下:从服务器30获取与各功能模块渲染有关的渲染数据信息;处理渲染数据信息以将其包装成渲染功能模块所需要的用户接口信息;第一终端10根据用户接口信息渲染相应的功能模块。In one embodiment, the steps of the first terminal 10 rendering multiple functional modules are as follows: obtaining rendering data information related to the rendering of each functional module from the server 30; processing the rendering data information to package it into a user required by the rendering functional module Interface information; the first terminal 10 renders corresponding functional modules according to the user interface information.
在一个实施例中,用户接口信息包括功能模块界面中的图文内容、功能模块界面的呈现形式、功能模块界面的各组件的位置以及各组件的大 小。在一个实施例中,渲染的步骤还包括:将渲染结果存入第一终端10的缓存中,以便当再一次渲染时,能够从缓存中直接读取出渲染数据进行渲染,从而可以提高渲染速度,提升产品的流畅度,给用户带来更好的体验。In one embodiment, the user interface information includes the graphic content in the functional module interface, the presentation form of the functional module interface, the location of each component of the functional module interface, and the size of each component. In an embodiment, the step of rendering further includes: storing the rendering result in a cache of the first terminal 10, so that when rendering again, the rendering data can be directly read from the cache for rendering, thereby improving rendering speed , Improve the smoothness of the product, and bring a better experience to users.
本发明实施例提供的远程操作内容同步的***通过对操作进行分类,根据不同的操作类型对操作消息进行不同处理,如对于第一操作类型,仅对操作消息进行广播而不写入数据库,对第二操作类型写入数据库并广播该消息,从而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The system for synchronizing remote operation contents provided by the embodiment of the present invention classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database. The second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,服务器30广播第一操作类型的操作事件的操作消息,服务器30存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, the operation type may be divided into two types. For example, the operation type includes a first operation type and a second operation type. The server 30 broadcasts an operation message of an operation event of the first operation type, and the server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type. In the embodiment of the present invention, a part of operations are divided into the first operation type. The operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。其中一个实施例中,操作为登录,第一终端10判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。在第一终端界面上渲染出多个功能模块,功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块等。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30. The operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page. A plurality of functional modules are rendered on the first terminal interface. The functional modules include a selection module, a gallery module, a drag-and-drop image module, a line drawing module, an audio playback module, a page jumping and page turning module, and / or a screen clearing module.
本发明实施例中的第一终端既可以是老师控制的终端,也可以是学生控制的终端。The first terminal in the embodiment of the present invention may be a terminal controlled by a teacher or a terminal controlled by a student.
第二方面,本发明实施例提供了一种远程操作内容同步的方法,本实施例的方法可通过上述的***来实现。因此,上述***实施例的说明部分可用于理解本发明方法。本发明实施例的远程操作内容同步的方法包括如下步骤:In a second aspect, an embodiment of the present invention provides a method for remotely operating content synchronization, and the method in this embodiment may be implemented by the foregoing system. Therefore, the description of the above system embodiment can be used to understand the method of the present invention. The method for remote operation content synchronization in the embodiment of the present invention includes the following steps:
第一终端发送基于作用于所述第一终端界面的操作生成的操作事件,所述操作事件包括操作消息和操作类型;在所述第一终端界面上渲染出多个功能模块;The first terminal sends an operation event generated based on an operation acting on the first terminal interface, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
服务器接收所述操作事件,根据所述操作类型对所述操作消息广播或对所述操作消息存储和广播;The server receives the operation event, and broadcasts the operation message or stores and broadcasts the operation message according to the operation type;
第二终端同步广播的所述操作消息;在所述第二终端界面上渲染出多个功能模块。The operation message broadcasted by the second terminal synchronously; a plurality of functional modules are rendered on the interface of the second terminal.
本发明实施例提供的远程操作内容同步的方法通过对操作进行分类,根据不同的操作类型对操作消息进行不同处理,如对于第一操作类型,仅对操作消息进行广播而不写入数据库,对第二操作类型写入数据库并广播该消息,从而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The method for remote operation content synchronization provided by the embodiment of the present invention classifies operations and processes operation messages differently according to different operation types. For example, for the first operation type, only operation messages are broadcast without being written to the database. The second operation type writes to the database and broadcasts the message, thereby reducing the pressure on the server and greatly improving the service performance loss caused by the high concurrent write data.
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,服务器30广播第一操作类型的操作事件的操作消息,服务器30存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, the operation type may be divided into two types. For example, the operation type includes a first operation type and a second operation type. The server 30 broadcasts an operation message of an operation event of the first operation type. The server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type. In the embodiment of the present invention, a part of operations are divided into the first operation type. The operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以 减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。其中一个实施例中,操作为登录,第一终端10判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30. The operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
第三方面,本发明实施例提供了一种远程操作内容同步的终端,图2示出了本发明远程操作内容同步的终端的一实施例的示意图,参见图2,本发明实施例的远程操作内容同步的终端包括:In a third aspect, an embodiment of the present invention provides a terminal for remotely operating content synchronization. FIG. 2 shows a schematic diagram of an embodiment of a terminal for remotely operating content synchronization according to the present invention. Referring to FIG. Content synchronization terminals include:
监测单元11,监测作用于终端界面的操作;A monitoring unit 11 for monitoring an operation acting on a terminal interface;
响应单元12,响应操作; Response unit 12, response operation;
操作事件生成单元13,基于响应操作生成操作事件,操作事件包括操作消息和操作类型;The operation event generating unit 13 generates an operation event based on the response operation, and the operation event includes an operation message and an operation type;
发送单元14,发送操作事件,以便于根据操作类型对操作消息广播或对操作消息存储和广播;The sending unit 14 sends an operation event, so as to broadcast the operation message or store and broadcast the operation message according to the operation type;
渲染单元15,在终端界面上渲染出多个功能模块。The rendering unit 15 renders multiple function modules on the terminal interface.
本发明实施例提供的远程操作内容同步的终端通过对操作进行分类,发送的操作事件中包括操作类型信息,以便于根据不同的操作类型对操作消息进行不同处理,例如仅对操作消息进行广播而不写入数据库,以及对操作消息写入数据库并广播该消息,由于将部分操作类型不进行写入,因而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The terminal for remote operation content synchronization provided by the embodiment of the present invention categorizes operations, and the operation event sent includes operation type information, so as to perform different processing on operation messages according to different operation types, for example, only broadcast operation messages. Does not write to the database, writes the operation message to the database and broadcasts the message, because some operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data .
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,广播第一操作类型的操作事件的操作消息,存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,以便于对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, operation types may be divided into two types. For example, operation types include a first operation type and a second operation type, an operation message that broadcasts an operation event of the first operation type, and an operation that stores and broadcasts a second operation type. Action message for the event. In the embodiment of the present invention, a part of operations are divided into the first operation type, so that only operation messages of the type are broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving services brought by high concurrent writing. Performance loss.
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。在一个实施例中,操作为登录,第一终端10还用于判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 is further configured to determine whether it is a class mode. If it is a class mode, the historical data is obtained from the server 30. The operation message in the operation event sent includes the historical data obtained from the server 30. , The operation type is the first operation type; determine whether there is historical page number data, and if so, jump to the historical page number page.
本实施例与远程操作内容同步的***实施例具有相关的部分,相关部分请参见***实施例的介绍。This embodiment has related parts with the system embodiment for remote operation content synchronization. For related parts, refer to the description of the system embodiment.
第四方面,本发明实施例提供了一种远程操作内容同步的方法,图3示出了本发明远程操作内容同步的方法的一实施例的流程图,参见图3,本发明实施例的远程操作内容同步的方法包括如下步骤:In a fourth aspect, an embodiment of the present invention provides a method for remotely operating content synchronization. FIG. 3 shows a flowchart of an embodiment of a method for remotely operating content synchronization according to the present invention. Referring to FIG. The method for operating content synchronization includes the following steps:
监测作用于终端界面的操作;Monitor operations on the terminal interface;
响应监测到的操作;Responding to monitored operations;
基于响应操作生成操作事件,操作事件包括操作消息和操作类型;Generate an operation event based on the response operation. The operation event includes an operation message and an operation type.
发送操作事件,以便于根据操作类型对操作消息广播或对操作消息存储和广播;Send operation events, so as to broadcast operation messages or store and broadcast operation messages according to operation types;
在终端界面上渲染出多个功能模块。Multiple function modules are rendered on the terminal interface.
本发明实施例提供的远程操作内容同步的终端通过对操作进行分类,发送的操作事件中包括操作类型信息,以便于根据不同的操作类型对操作消息进行不同处理,例如仅对操作消息进行广播而不写入数据库,以及对操作消息写入数据库并广播该消息,由于将部分操作类型不进行写入,因而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The terminal for remote operation content synchronization provided by the embodiment of the present invention categorizes operations, and the operation event sent includes operation type information, so as to perform different processing on operation messages according to different operation types, for example, only broadcast operation messages. Does not write to the database, writes the operation message to the database and broadcasts the message, because some operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data .
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,广播第一操作类型的操作事件的操作消息,存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,以便于对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, operation types may be divided into two types. For example, operation types include a first operation type and a second operation type, an operation message that broadcasts an operation event of the first operation type, and an operation that stores and broadcasts a second operation type. Action message for the event. In the embodiment of the present invention, a part of operations are divided into the first operation type, so that only operation messages of the type are broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving services brought by high concurrent writing. Performance loss.
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。其中一个实施例中,操作为登录,第一终端10判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30. The operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
本实施例与远程操作内容同步的***实施例具有相关的部分,相关部分请参见***实施例的介绍。This embodiment has related parts with the system embodiment for remote operation content synchronization. For related parts, refer to the description of the system embodiment.
第五方面,本发明实施例提供了一种远程操作内容同步的服务器,图4示出了本发明远程操作内容同步的服务器的一实施例的流程图,参见图4,本发明实施例的服务器包括:In a fifth aspect, an embodiment of the present invention provides a server for remotely operating content synchronization. FIG. 4 shows a flowchart of an embodiment of a server for remotely operating content synchronization according to the present invention. Referring to FIG. 4, a server according to an embodiment of the present invention include:
接收单元31,接收基于操作生成的操作事件,操作事件包括操作消息和操作类型;The receiving unit 31 receives an operation event generated based on the operation, and the operation event includes an operation message and an operation type;
操作类型判断单元32,判断操作类型;Operation type judgment unit 32, which judges the operation type;
广播单元33,广播操作消息,以便同步;A broadcasting unit 33 for broadcasting an operation message for synchronization;
存储单元34,当操作类型为写入型操作时,存储操作消息。The storage unit 34 stores an operation message when the operation type is a write operation.
本发明实施例提供的远程操作内容同步的服务器根据不同的操作类型对操作消息进行不同处理,例如仅对操作消息进行广播而不写入数据库,以及对操作消息写入数据库并广播该消息,由于将部分操作类型不进行写入,因而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The server for remote operation content synchronization provided by the embodiment of the present invention processes the operation message differently according to different operation types, for example, only broadcasts the operation message without writing to the database, and writes the operation message to the database and broadcasts the message. Partial operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data.
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,服务器30广播第一操作类型的操作事件的操作消息,服务器30存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, the operation type may be divided into two types. For example, the operation type includes a first operation type and a second operation type. The server 30 broadcasts an operation message of an operation event of the first operation type, and the server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type. In the embodiment of the present invention, a part of operations are divided into the first operation type. The operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。其中一个实施例中,操作为登录,第一终端10判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30. The operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
第六方面,本发明实施例提供了一种远程操作内容同步的方法,包括如下步骤:In a sixth aspect, an embodiment of the present invention provides a method for remotely operating content synchronization, including the following steps:
接收操作事件,操作事件包括操作消息和操作类型;Receive operation events, operation events include operation messages and operation types;
根据操作类型对操作消息广播或对操作消息存储和广播。Broadcast operation messages or store and broadcast operation messages according to the operation type.
本发明实施例提供的远程操作内容同步的方法根据不同的操作类型对操作消息进行不同处理,例如仅对操作消息进行广播而不写入数据库,以 及对操作消息写入数据库并广播该消息,由于将部分操作类型不进行写入,因而减少了服务器的压力,极大改善了由于高并发写入数据带来的服务性能损耗。The method for remote operation content synchronization provided by the embodiment of the present invention performs different processing on operation messages according to different operation types, such as broadcasting only operation messages without writing to a database, and writing operation messages to a database and broadcasting the message. Partial operation types are not written, which reduces the pressure on the server and greatly improves the service performance loss caused by the high concurrent write data.
本发明实施例中,操作类型可以分为两种,例如,操作类型包括第一操作类型和第二操作类型,服务器30广播第一操作类型的操作事件的操作消息,服务器30存储和广播第二操作类型的操作事件的操作消息。本发明实施例将一部分操作划分为第一操作类型,对该类型的操作消息仅广播而不存储,减少数据写入,降低了服务器压力,极大改善了高并发写入带来的服务性能损耗。In the embodiment of the present invention, the operation type may be divided into two types. For example, the operation type includes a first operation type and a second operation type. The server 30 broadcasts an operation message of an operation event of the first operation type. The server 30 stores and broadcasts a second operation type. Operation message for operation event of operation type. In the embodiment of the present invention, a part of operations are divided into the first operation type. The operation messages of this type are only broadcast but not stored, reducing data writing, reducing server pressure, and greatly improving service performance loss caused by high concurrent writing. .
本发明实施例中,可以根据实际情况将哪些操作划入第一操作类型,哪些操作划入第二操作类型。例如,第一操作类型的操作包括操作事件的过程操作;第二操作类型包括操作事件的结果操作。对于操作过程产生的数据可以不进行存储,而仅对结果数据进行存储。例如拖动文件时,仅记录最终位置即可,而从原始位置至最终位置的过程不必存储,这样就可以减少数据写入。第二操作类型还可以包括删除操作(del)、清屏操作(clear)等。In the embodiment of the present invention, which operations can be classified into the first operation type and which operations are classified into the second operation type according to actual conditions. For example, the operation of the first operation type includes a process operation of an operation event; the second operation type includes a result operation of the operation event. The data generated during the operation process may not be stored, and only the result data may be stored. For example, when dragging a file, it is only necessary to record the final position, and the process from the original position to the final position does not need to be stored, so that data writing can be reduced. The second operation type may further include a delete operation (del), a clear screen operation (clear), and the like.
本发明实施例中,具体的操作不做限定,均可以按照有无写入进行同步。其中一个实施例中,操作为登录,第一终端10判断是否为上课模式,若是上课模式,则从服务器30获取历史数据,发送的操作事件中的操作消息包括从服务器30获取历史数据,操作类型为第一操作类型;判断是否有历史页码数据,若有,则跳转至历史页码页面。In the embodiment of the present invention, the specific operations are not limited, and they can be synchronized according to the presence or absence of writing. In one embodiment, the operation is login. The first terminal 10 determines whether it is a class mode. If it is a class mode, it obtains historical data from the server 30. The operation message in the operation event sent includes obtaining historical data from the server 30, operation type It is the first operation type; judging whether there is historical page number data, and if so, jumping to the historical page number page.
第七方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的方法的步骤。According to a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the foregoing method are implemented.
第八方面,本发明实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的方法的步骤。According to an eighth aspect, an embodiment of the present invention provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor implements the foregoing method when the program is executed. step.
本领域的技术人员可以清楚地了解到本发明实施例的技术方案可借助软件和/或硬件来实现。本说明书中的“单元”或“模块”是指能够独立完成或与其他部件配合完成特定功能的软件和/或硬件,其中硬件例如可以是 FPGA(Field-Programmable Gate Array,现场可编程门阵列)、IC(Integrated Circuit,集成电路)等。Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present invention can be implemented by software and / or hardware. The “unit” or “module” in this specification refers to software and / or hardware capable of completing specific functions independently or in cooperation with other components, where the hardware may be, for example, FPGA (Field-Programmable Gate Array). , IC (Integrated Circuit), etc.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述任一实施例方法的步骤。其中,计算机可读存储介质可以包括但不限于任何类型的盘,包括软盘、光盘、DVD、CD-ROM、微型驱动器以及磁光盘、ROM、RAM、EPROM、EEPROM、DRAM、VRAM、闪速存储器设备、磁卡或光卡、纳米***(包括分子存储器IC),或适合于存储指令和/或数据的任何类型的媒介或设备。An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method of any of the foregoing embodiments are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, and flash memory devices. , Magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时实现上述任一实施例方法的步骤。在本发明实施例中,处理器为计算机***的控制中心,可以是实体机的处理器,也可以是虚拟机的处理器。An embodiment of the present invention further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method of any of the foregoing embodiments are implemented. In the embodiment of the present invention, the processor is a control center of a computer system, and may be a processor of a physical machine or a processor of a virtual machine.
在本发明中,术语“第一”、“第二”等仅用于描述的目的,而不能理解为指示或暗示相对重要性或顺序;术语“多个”则指两个或两个以上,除非另有明确的限定。术语“安装”、“相连”、“连接”、“固定”等术语均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接;“相连”可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, the terms "first", "second", etc. are used for descriptive purposes only, and cannot be understood to indicate or imply relative importance or order; the term "plurality" means two or more, Unless otherwise clearly defined. The terms "installation", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can It is directly connected or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
本发明的描述中,需要理解的是,术语“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或单元必须具有特定的方向、以特定的方位构造和操作,因此,不能理解为对本发明的限制。In the description of the present invention, it should be understood that the orientations or positional relationships indicated by the terms “up” and “down” are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description. It is not an indication or implied that the device or unit referred to must have a specific direction, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present invention. It should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (30)

  1. 一种远程操作内容同步的***,包括第一终端、第二终端和服务器,其中A system for remotely operating content synchronization includes a first terminal, a second terminal, and a server, wherein
    第一终端,发送基于作用于所述第一终端界面的操作生成的操作事件,所述操作事件包括操作消息和操作类型;在所述第一终端界面上渲染出多个功能模块;The first terminal sends an operation event generated based on an operation acting on the interface of the first terminal, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
    服务器,接收所述操作事件,根据所述操作类型对所述操作消息广播和/或对所述操作消息存储和广播;A server, receiving the operation event, broadcasting the operation message and / or storing and broadcasting the operation message according to the operation type;
    第二终端,同步广播的所述操作消息;在所述第二终端界面上渲染出多个功能模块。The second terminal synchronously broadcasts the operation message; a plurality of functional modules are rendered on the interface of the second terminal.
  2. 根据权利要求1所述的***,其特征在于,所述操作类型包括第一操作类型和第二操作类型,所述服务器广播所述第一操作类型的操作事件的操作消息,所述服务器存储和广播所述第二操作类型的操作事件的操作消息。The system according to claim 1, wherein the operation type includes a first operation type and a second operation type, the server broadcasts an operation message of an operation event of the first operation type, and the server stores and Broadcasting an operation message of the operation event of the second operation type.
  3. 根据权利要求2所述的***,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The system according to claim 2, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  4. 根据权利要求2所述的***,其特征在于,所述作用于第一终端界面的操作为登录,所述第一终端判断是否为上课模式,若是上课模式,则从所述服务器获取历史数据,发送的操作事件中的操作消息包括从所述服务器获取历史数据,操作类型为第一操作类型;The system according to claim 2, wherein the operation acting on the interface of the first terminal is logging in, the first terminal determines whether it is a class mode, and if it is a class mode, obtains historical data from the server, The operation message in the operation event sent includes obtaining historical data from the server, and the operation type is the first operation type;
    判断是否有历史页码数据,若有,则跳转至历史页码页面。Determine whether there is historical page number data. If so, go to the historical page number page.
  5. 根据权利要求1-4中任一项所述的***,其特征在于,所述功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块。The system according to any one of claims 1-4, wherein the function modules include a selection module, a library module, a drag text picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / Or clear screen module.
  6. 一种远程操作内容同步的方法,包括:A method for remote operation content synchronization includes:
    第一终端发送基于作用于所述第一终端界面的操作生成的操作事件,所述操作事件包括操作消息和操作类型;在所述第一终端界面上渲染出多个功能模块;The first terminal sends an operation event generated based on an operation acting on the first terminal interface, where the operation event includes an operation message and an operation type; a plurality of functional modules are rendered on the first terminal interface;
    服务器接收所述操作事件,根据所述操作类型对所述操作消息广播和/或对所述操作消息存储和广播;The server receives the operation event, and broadcasts the operation message and / or stores and broadcasts the operation message according to the operation type;
    第二终端同步广播的所述操作消息;在所述第二终端界面上渲染出多个功能模块。The operation message broadcasted by the second terminal synchronously; a plurality of functional modules are rendered on the interface of the second terminal.
  7. 根据权利要求6所述的方法,其特征在于,所述操作类型包括第一操作类型和第二操作类型,所述服务器广播所述第一操作类型的操作事件的操作消息,所述服务器存储和广播所述第二操作类型的操作事件的操作消息。The method according to claim 6, wherein the operation type includes a first operation type and a second operation type, the server broadcasts an operation message of the operation event of the first operation type, and the server stores and Broadcasting an operation message of the operation event of the second operation type.
  8. 根据权利要求7所述的方法,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The method according to claim 7, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  9. 根据权利要求7所述的方法,其特征在于,所述作用于第一终端界面的操作为登录,所述第一终端判断是否为上课模式,若是上课模式,则从所述服务器获取历史数据,发送的操作事件中的操作消息包括从所述服务器获取历史数据,操作类型为第一操作类型;The method according to claim 7, wherein the operation acting on the interface of the first terminal is logging in, the first terminal determines whether it is a class mode, and if it is a class mode, obtains historical data from the server, The operation message in the operation event sent includes obtaining historical data from the server, and the operation type is the first operation type;
    判断是否有历史页码数据,若有,则跳转至历史页码页面。Determine whether there is historical page number data. If so, go to the historical page number page.
  10. 根据权利要求6-9中任一项所述的方法,其特征在于,所述功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块。The method according to any one of claims 6 to 9, wherein the function modules include a selection module, a gallery module, a drag text picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / Or clear screen module.
  11. 一种远程操作内容同步的终端,所述终端包括:A terminal for remote operation content synchronization, the terminal includes:
    监测单元,监测作用于所述终端界面的操作;A monitoring unit that monitors an operation acting on the terminal interface;
    响应单元,响应所述操作;A response unit, which responds to the operation;
    操作事件生成单元,基于响应所述操作生成操作事件,所述操作事件包括操作消息和操作类型;An operation event generating unit, which generates an operation event based on a response to the operation, where the operation event includes an operation message and an operation type;
    发送单元,发送所述操作事件,以便于根据所述操作类型对所述操作消息广播和/或对所述操作消息存储和广播;A sending unit, sending the operation event, so as to broadcast the operation message and / or store and broadcast the operation message according to the operation type;
    渲染单元,在所述终端界面上渲染出多个功能模块。The rendering unit renders a plurality of function modules on the terminal interface.
  12. 根据权利要求11所述的终端,其特征在于,所述操作类型包括第一操作类型和第二操作类型,广播所述第一操作类型的操作事件的操作消息,存储和广播所述第二操作类型的操作事件的操作消息。The terminal according to claim 11, wherein the operation types include a first operation type and a second operation type, an operation message broadcasting an operation event of the first operation type, and storing and broadcasting the second operation An action message of type action event.
  13. 根据权利要求12所述的终端,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The terminal according to claim 12, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  14. 根据权利要求12所述的终端,其特征在于,所述终端还用于:作用于所述终端界面的操作为登录,所述第一终端判断是否为上课模式,若是上课模式,则从所述服务器获取历史数据,发送的操作事件中的操作消息包括从所述服务器获取历史数据,操作类型为第一操作类型;The terminal according to claim 12, characterized in that the terminal is further configured to: the operation acting on the interface of the terminal is to log in, the first terminal determines whether it is a class mode, and if it is a class mode, from the class The server obtains historical data, and the operation message in the operation event sent includes obtaining historical data from the server, and the operation type is the first operation type;
    判断是否有历史页码数据,若有,则跳转至历史页码页面。Determine whether there is historical page number data. If so, go to the historical page number page.
  15. 根据权利要求11-14中任一项所述的终端,其特征在于,所述功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块。The terminal according to any one of claims 11 to 14, wherein the function modules include a selection module, a gallery module, a drag text picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / Or clear screen module.
  16. 一种远程操作内容同步的方法,包括:A method for remote operation content synchronization includes:
    监测作用于终端界面的操作;Monitor operations on the terminal interface;
    响应所述操作;In response to said operation;
    基于响应所述操作生成操作事件,所述操作事件包括操作消息和操作类型;Generating an operation event based on the operation, the operation event including an operation message and an operation type;
    发送所述操作事件,以便于根据所述操作类型对所述操作消息广播和/或对所述操作消息存储和广播;Sending the operation event so as to broadcast the operation message and / or store and broadcast the operation message according to the operation type;
    在所述终端界面上渲染出多个功能模块。A plurality of functional modules are rendered on the terminal interface.
  17. 根据权利要求16所述的方法,其特征在于,所述操作类型包括第一操作类型和第二操作类型,所述服务器广播所述第一操作类型的操作事件的操作消息,所述服务器存储和广播所述第二操作类型的操作事件的操作消息。The method according to claim 16, wherein the operation type includes a first operation type and a second operation type, the server broadcasts an operation message of an operation event of the first operation type, and the server stores and Broadcasting an operation message of the operation event of the second operation type.
  18. 根据权利要求17所述的方法,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The method according to claim 17, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  19. 根据权利要求17所述的方法,其特征在于,作用于所述终端界面的操作为登录,所述第一终端判断是否为上课模式,若是上课模式,则从所述服务器获取历史数据,发送的操作事件中的操作消息包括从所述服务器获取历史数据,操作类型为第一操作类型;The method according to claim 17, wherein the operation acting on the terminal interface is logging in, the first terminal determines whether it is a class mode, and if it is a class mode, it obtains historical data from the server and sends the The operation message in the operation event includes obtaining historical data from the server, and the operation type is the first operation type;
    判断是否有历史页码数据,若有,则跳转至历史页码页面。Determine whether there is historical page number data. If so, go to the historical page number page.
  20. 根据权利要求16-19中任一项所述的方法,其特征在于,所述功能模块包括选择模块、图库模块、拖动文字图片模块、画线模块、音频播放模块、跳页翻页模块和/或清屏模块。The method according to any one of claims 16 to 19, wherein the function modules include a selection module, a gallery module, a drag text picture module, a line drawing module, an audio playback module, a page jump and page turning module, and / Or clear screen module.
  21. 一种远程操作内容同步的服务器,包括:A remote operation content synchronization server includes:
    接收单元,接收基于操作生成的操作事件,操作事件包括操作消息和操作类型;A receiving unit that receives an operation event generated based on the operation, and the operation event includes an operation message and an operation type;
    操作类型判断单元,判断操作类型;Operation type judgment unit, which judges the operation type;
    广播单元,广播操作消息,以便同步;A broadcasting unit for broadcasting operation messages for synchronization;
    存储单元,当操作类型为写入型操作时,存储操作消息。The storage unit stores operation messages when the operation type is a write operation.
  22. 根据权利要求21所述的服务器,其特征在于,所述操作类型包括第一操作类型和第二操作类型,所述服务器广播所述第一操作类型的操作事件的操作消息,所述服务器存储和广播所述第二操作类型的操作事件的操作消息。The server according to claim 21, wherein the operation type includes a first operation type and a second operation type, the server broadcasts an operation message of an operation event of the first operation type, and the server stores and Broadcasting an operation message of the operation event of the second operation type.
  23. 根据权利要求22所述的服务器,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The server according to claim 22, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  24. 根据权利要求21-23中任一项所述的服务器,其特征在于,所述操作消息包括历史操作数据。The server according to any one of claims 21 to 23, wherein the operation message includes historical operation data.
  25. 一种远程操作内容同步的方法,包括:A method for remote operation content synchronization includes:
    接收操作事件,所述操作事件包括操作消息和操作类型;Receiving an operation event, the operation event including an operation message and an operation type;
    根据所述操作类型对所述操作消息广播和/或对所述操作消息存储和广播。Broadcasting the operation message and / or storing and broadcasting the operation message according to the operation type.
  26. 根据权利要求25所述的方法,其特征在于,所述操作类型包括第一操作类型和第二操作类型,所述服务器广播所述第一操作类型的操作事件的操作消息,所述服务器存储和广播所述第二操作类型的操作事件的操作消息。The method according to claim 25, wherein the operation type includes a first operation type and a second operation type, the server broadcasts an operation message of an operation event of the first operation type, and the server stores and Broadcasting an operation message of the operation event of the second operation type.
  27. 根据权利要求26所述的方法,其特征在于,所述第一操作类型包括所述操作事件的过程操作;所述第二操作类型包括所述操作事件的结果操作。The method according to claim 26, wherein the first operation type includes a process operation of the operation event; and the second operation type includes a result operation of the operation event.
  28. 根据权利要求25-27中任一项所述的方法,其特征在于,所述操作消息包括历史操作数据。The method according to any one of claims 25-27, wherein the operation message includes historical operation data.
  29. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现权利要求6-10、16-20、25-28中任一项所述方法的步骤。A computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 6-10, 16-20, 25-28.
  30. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求6-10、16-20、25-28中任一项所述方法的步骤。A computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor implements claims 6-10, 16-20, and 25-28 when the program is executed. Steps of the method of any one.
PCT/CN2019/082700 2018-08-14 2019-04-15 Remote operation content synchronization system and method WO2020034651A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810924691.2A CN109167821A (en) 2018-08-14 2018-08-14 A kind of system and method that remote control description is synchronous
CN201810924691.2 2018-08-14

Publications (1)

Publication Number Publication Date
WO2020034651A1 true WO2020034651A1 (en) 2020-02-20

Family

ID=64895671

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082700 WO2020034651A1 (en) 2018-08-14 2019-04-15 Remote operation content synchronization system and method

Country Status (2)

Country Link
CN (1) CN109167821A (en)
WO (1) WO2020034651A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034652A1 (en) * 2018-08-14 2020-02-20 北京大米科技有限公司 System and method for synchronizing user interface, terminal, and server
CN111773691A (en) * 2020-07-03 2020-10-16 珠海金山网络游戏科技有限公司 Cloud game service system, cloud client and data processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080027995A1 (en) * 2002-09-20 2008-01-31 Cola Systems and methods for survey scheduling and implementation
CN104932814A (en) * 2015-04-29 2015-09-23 萌宝信息技术(上海)有限公司 Data transmission method and system and electronic terminal
CN105654801A (en) * 2016-04-05 2016-06-08 北京盒子鱼教育科技有限公司 Network teaching method, device and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515279B (en) * 2009-01-12 2012-11-28 深圳市同洲电子股份有限公司 Remote information synchronization method and system
CN102509482A (en) * 2011-11-15 2012-06-20 北京瑞信在线***技术有限公司 Multimedia teaching system based on mobile terminal framework
WO2015013557A1 (en) * 2013-07-26 2015-01-29 Tech 2000, Incorporated Methods and devices for accessing and displaying content on a mobile device
EP3087547A4 (en) * 2013-12-27 2017-06-21 Amdon Consulting Pte Ltd. System and method for managing interactive content
CN103780400A (en) * 2014-01-02 2014-05-07 航天数字传媒有限公司 Data receiving buffer forwarding system and method
CN105978870B (en) * 2016-05-06 2020-03-03 北京大生在线科技有限公司 Handwriting real-time sharing method and device in teaching system
CN106375296A (en) * 2016-08-30 2017-02-01 杭州施强教育科技有限公司 Multimedia courseware teaching live broadcast method
CN108156502A (en) * 2018-01-05 2018-06-12 创盛视联数码科技(北京)有限公司 A kind of method for improving paintbrush and word net cast synchronism

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080027995A1 (en) * 2002-09-20 2008-01-31 Cola Systems and methods for survey scheduling and implementation
CN104932814A (en) * 2015-04-29 2015-09-23 萌宝信息技术(上海)有限公司 Data transmission method and system and electronic terminal
CN105654801A (en) * 2016-04-05 2016-06-08 北京盒子鱼教育科技有限公司 Network teaching method, device and system

Also Published As

Publication number Publication date
CN109167821A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
US11960826B2 (en) Managing a sharing of media content among client computers
US10872535B2 (en) Facilitating facial recognition, augmented reality, and virtual reality in online teaching groups
KR101934932B1 (en) Network training recording and playback method and system
CN107193794B (en) Display content annotating method and device
US20070288640A1 (en) Remote rendering of multiple mouse cursors
US20130346865A1 (en) Dynamic wallpaper of mobile systems
US20140053052A1 (en) Techniques for facilitating annotations
WO2018166173A1 (en) Remote cooperation method and system
US20240089529A1 (en) Content collaboration method and electronic device
JP2016502316A (en) Automatically adjust the size of the content rendered on the display
US20140208211A1 (en) Allowing Web Meeting Attendees to Navigate Content During a Presentation
JP6051670B2 (en) Image processing apparatus, image processing system, image processing method, and program
WO2019105191A1 (en) Multi-element interaction method, apparatus and device, and storage medium
WO2021244666A1 (en) Video playing control method and apparatus, and computer device and storage medium
US9794635B2 (en) Distribution device, distribution method, and non-transitory computer readable storage medium
WO2020034651A1 (en) Remote operation content synchronization system and method
WO2023104102A1 (en) Live broadcasting comment presentation method and apparatus, and device, program product and medium
WO2023273854A9 (en) Control display method and apparatus, device, and medium
CN109697004B (en) Method, device and equipment for writing annotation by touch equipment and storage medium
US20160299671A1 (en) Opening New Application Window in Response to Remote Resource Sharing
US20240114106A1 (en) Machine learning driven teleprompter
WO2021159645A1 (en) Initiation and synchronization methods and systems for dynamic arrangement of multiple video windows
US20170017632A1 (en) Methods and Systems of Annotating Local and Remote Display Screens
WO2020034652A1 (en) System and method for synchronizing user interface, terminal, and server
WO2022127524A1 (en) Video conference presentation method and apparatus, and terminal device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19849501

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19849501

Country of ref document: EP

Kind code of ref document: A1