CN111651422B - Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system - Google Patents

Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system Download PDF

Info

Publication number
CN111651422B
CN111651422B CN202010774917.2A CN202010774917A CN111651422B CN 111651422 B CN111651422 B CN 111651422B CN 202010774917 A CN202010774917 A CN 202010774917A CN 111651422 B CN111651422 B CN 111651422B
Authority
CN
China
Prior art keywords
file
window
widget message
local
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010774917.2A
Other languages
Chinese (zh)
Other versions
CN111651422A (en
Inventor
孙亚东
贺骞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eeo Education Technology Co ltd
Original Assignee
Beijing Eeo Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eeo Education Technology Co ltd filed Critical Beijing Eeo Education Technology Co ltd
Priority to CN202010774917.2A priority Critical patent/CN111651422B/en
Publication of CN111651422A publication Critical patent/CN111651422A/en
Application granted granted Critical
Publication of CN111651422B publication Critical patent/CN111651422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • G06F3/1462Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay with means for detecting differences between the image stored in the host and the images displayed on the remote displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an initiating and responding method and an interactive system for multi-end synchronization of online multiple files. The initiating method for the online multi-file multi-terminal synchronization comprises the following steps: receiving a local file opening command, displaying the file in a local file window according to the file name in the command, generating a Widget message and sending the Widget message to a server; the Widget message is used for describing the pixel position of the file in the local file window and the display state of the current file; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server; and receiving the Widget message forwarded by the server, adjusting the local file window and keeping synchronization.

Description

Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system
Technical Field
The invention relates to the field of online conferences and online teaching, in particular to an initiating and responding method and an interaction system for online multi-file multi-terminal synchronization. .
Background
In the common online file opening, single file viewing and editing exist, and the method cannot achieve the effect that multiple files are opened by multiple users and viewed, edited and synchronized at multiple ends in real time. This is not friendly enough for the real-time and interactivity of online files.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, solve the problems that an online file cannot be opened and edited by multiple files and the intercommunication of multiple ends and multiple users, and provide an initiating and responding method and an interactive system for the multi-end synchronization of the online multiple files.
In order to achieve the above object, the present invention provides an initiating method for online multi-file multi-end synchronization, where the method includes:
receiving a local file opening command, displaying the file in a local file window according to the file name in the file opening command, generating a Widget message and sending the Widget message to a server; the Widget message is used for describing the pixel position of the file in a local file window and the display state of the current file;
receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server;
receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server;
and receiving the Widget message forwarded by the server, adjusting the local file window and further keeping synchronization.
As an improvement of the above method, the file comprises: audio and video files, PDF files, WORD files, text files, PPT files, picture files and custom files.
As an improvement of the above method, the file is displayed in a local file window according to a file name in a file opening command, and a widget message is generated and sent to a server; the method specifically comprises the following steps:
judging whether the file exists in the local List List or not according to the file name in the file opening command, and if so, adjusting the file window to the uppermost end of the desktop display; otherwise, the file is opened in the file window at the uppermost end of the desktop display, the file is added at the tail of the List List, and a Widget message is generated and sent to the server.
As an improvement of the above method, the widget message includes window information and file specific information; wherein the content of the first and second substances,
the window information is as follows: including the pixel location of the file in the file window and the size of the file window;
the file specific information includes: storage path and current display content of the file on the server: wherein the content of the first and second substances,
when the file is an audio/video file, the display content comprises: the current playing position, the total playing time length, the playing state and the playing speed;
when the file is a PDF file, the display content comprises: the current reading page number, the reading position and the PDF remark information;
when the file is a WORD file, the display content comprises: the current reading page number and the reading position;
when the file is a text file, the display content comprises: the current reading page number and the reading position;
when the file is a PPT file, the display content comprises: the current reading page number and the reading position;
when the file is a picture file, the display content comprises: picture size and picture rotation angle;
when the file is a custom file, the display content comprises: and self-defining the current reading information of the file.
As an improvement of the above method, the receiving server receives the widget message forwarded by the server, and adjusts the local file window, thereby maintaining synchronization; the method specifically comprises the following steps:
receiving a Widget message forwarded by a server;
reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
and reading the file exclusive information of the Widget message, comparing the file exclusive information with the local file display state, and if the file exclusive information of the Widget message is different from the local file display state, synchronously updating the local file display state according to the file exclusive information of the Widget message, thereby keeping synchronization.
An initiating system for online multi-file multi-end synchronization, the system comprising: the file display device comprises a file opening module, a window adjusting module and a file display adjusting module; wherein the content of the first and second substances,
the file opening module is used for judging whether the file exists in the local List List according to the file name in the file opening command, and if so, adjusting the file window to the uppermost end of the desktop display; otherwise, opening the file in the file window at the uppermost end of the desktop display, adding the file at the tail of the List List, generating a Widget message and sending the Widget message to the server;
the window adjusting module is used for receiving a local file window adjusting command, adjusting the size of the file window, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
the file display adjustment module is used for receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; and reading the file exclusive information of the Widget message, comparing the file exclusive information with the local file display state, and if the file exclusive information of the Widget message is different from the local file display state, synchronously updating the local file display state according to the file exclusive information of the Widget message, thereby keeping synchronization.
A responsive method of online multi-file multi-end synchronization, the method comprising:
receiving the Widget message forwarded by the server and analyzing to obtain window information and file exclusive information;
if the Widget message of the file is received for the first time, setting a local file window according to the window information; downloading the file from the server to the local according to the exclusive information of the file, and displaying the file in a file window after analyzing the corresponding file;
otherwise, reading the window information, comparing with the position of the local file window, if different, resetting the pixel position of the file in the file window and the size of the file window according to the window information; if the local file window is the same, the local file window is kept unchanged;
reading the file exclusive information, comparing the file exclusive information with the local file display state, and if the file exclusive information is different from the local file display state, synchronously updating the local file display state according to the file exclusive information so as to keep synchronization;
receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server;
and receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to the server.
A response system for online multi-file multi-end synchronization, the system comprising: the device comprises a message receiving and analyzing module, a file opening module, a window adjusting module and a file display adjusting module; wherein the content of the first and second substances,
the message receiving and analyzing module is used for receiving the Widget message forwarded by the server and analyzing the Widget message to obtain window information and file exclusive information; if the Widget message of the file is received for the first time, the parsed window information and file exclusive information are sent to a file opening module; otherwise, the analyzed window information is sent to a window adjusting module, and the file exclusive information is sent to a file display adjusting module;
the file opening module is used for setting a local file window according to window information, downloading the file from the server to the local according to exclusive file information, analyzing the corresponding file and displaying the file in the file window;
the window adjusting module is used for reading window information, comparing the window information with the position of a local file window, and resetting the pixel position of the file in the file window and the size of the file window according to the window information if the window information is different from the local file window; if the local file window is the same, the local file window is kept unchanged; the device is also used for receiving a local file window adjusting command, adjusting the size of the file window, generating a Widget message and sending the Widget message to the server;
the file display adjusting module is used for reading the exclusive information of the file, comparing the exclusive information with the local file display state, and if the exclusive information of the file is different from the local file display state, synchronously updating the local file display state according to the exclusive information of the file so as to keep synchronization; and the widget message server is also used for receiving a local file modification operation command, adjusting the display state of the file, generating a widget message and sending the widget message to the server.
An interactive system for online multi-file multi-end synchronization, the system comprising: the system comprises an initiating module arranged at an initiating end, a response module arranged at a receiving end and a forwarding module arranged on a server; wherein the content of the first and second substances,
the initiating module is used for receiving a local file opening command, displaying the file in a local file window according to the file name in the file opening command, generating a Widget message and sending the Widget message to the server; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server; receiving a Widget message forwarded by a server, and adjusting a local file window to further keep synchronization;
the response module is used for receiving the Widget message forwarded by the server and analyzing the Widget message to obtain window information and file exclusive information; if the Widget message of the file is received for the first time, setting a local file window according to the window information; downloading the file from the server to the local according to the exclusive information of the file, and displaying the file in a file window after analyzing the corresponding file; otherwise, reading the window information, comparing with the position of the local file window, if different, resetting the pixel position of the file in the file window and the size of the file window according to the window information; if the local file window is the same, the local file window is kept unchanged; reading the file exclusive information, comparing the file exclusive information with the local file display state, and if the file exclusive information is different from the local file display state, synchronously updating the local file display state according to the file exclusive information so as to keep synchronization; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server;
the forwarding module is used for forwarding the Widget message generated by the initiating module to the responding module; and the Widget message sending module is also used for forwarding the Widget message generated by the response module to the initiating module.
Compared with the prior art, the invention has the advantages that:
1. the invention provides a special interaction mode, when a responder operates a file, an initiator can sense and respond in real time, the file display synchronization among multiple ends, multiple users and multiple files is realized, and the user experience is improved. The synchronization of the file sizes is realized, and practical scenes are increased;
2. the method has the advantages that multi-end multi-file opening is innovatively completed, the bandwidth usage amount is reduced, the user experience is guaranteed, the limitations of real-time performance and interactivity are overcome, the real-time performance is guaranteed by using a TCP data transmission protocol, and the arrival rate of messages is improved. The file contents of multiple ends are kept consistent, and the receiving end can also operate the file contents, so that the interactivity is ensured.
Drawings
FIG. 1 is a flow chart of an initiating and responding method of online multi-file multi-end synchronization of the present invention;
FIG. 2 is a diagram of a document window according to the present invention.
Detailed Description
The participators applied by the method of the invention are divided into an initiator and a responder according to roles. And multiple types of file opening are supported, and multiple files are simultaneously opened. The application scenario is that a plurality of clients and a server are used, wherein the plurality of clients communicate through the server and adopt a C/S structure and a TCP protocol for transmission. Each client has the functions of initiating and responding to the on-line multi-file multi-terminal synchronization. The interaction flow of the online file is shown in fig. 1.
The client adopts an MVC architecture and comprises a display layer, a control layer and a data layer:
1. the presentation layer refers to an operation meeting of a user, and comprises a file base view and a file content view, as shown in fig. 2;
2. the control layer is a core service logic and is responsible for file display strategies, data coding and decoding and data receiving and transmitting under different states;
3. the data layer is responsible for the definition of various data and data management.
The opener selects the file to be opened, obtains the type and the required data of the file to be opened, constructs the Widget message data for encoding, and stores the file in a List; and when the same file is opened again, judging whether the file to be opened exists in the List or not, if so, not processing, and if not, sending the encoded Widget message to the initiator and the server. The server may distribute to other clients that are online. The Widget message comprises window information and file exclusive information; the window information comprises the pixel position of the file in the file window and the size of the file window; the file specific information includes: the storage path of the file on the server and the current display content.
The audio and video file is used for playing audio and video files, and the file exclusive information in the Widget message is as follows: the playing Url, the current playing position, the total time length, the playing state and the playing speed are used for synchronizing the contents of the audio and video files;
the PDF file is used for displaying PDF, and the file exclusive information in the Widget message is as follows: url to be displayed, the current page number, the read position, the note information and the code are used for synchronizing the content of the PDF file and then sent to a server;
the exclusive information of the file in the WORD file and the Widget message is as follows: url to be presented, the current page number, the read position, is used for synchronization of the WORD file contents.
The text file is used for displaying text files such as TXT, JAVA and the like, and the exclusive information of the files in the Widget message is as follows: url of the open file, and the synchronization state of the text file, which are used for synchronizing the content of the text file.
The PPT file is used for displaying the PPT file, and the exclusive information of the file in the Widget message is as follows: url of PPT, the current page number, and the read position are used for PPT file content synchronization.
The image file is used for displaying an image, and the file exclusive information in the Widget message is as follows: url, width and height of the picture, and angle selection for picture content synchronization.
The user-defined file is used for displaying the picture and sharing the screen file, and the user-defined content is realized through other interfaces because the user-defined data Widget message is not easy to expand; for example, when a web page is opened, the specific information is: the webpage address, the webpage title and the authority, wherein the authority is used for indicating whether the webpage can be operated by a viewer. For another example, the initiator may share a part of the desktop, and the widget message does not satisfy the requirement, and generally receives or sends the widget message through another command to share the desktop information.
And the responder receives and analyzes the Widget message forwarded by the server and displays the Widget message, and firstly judges whether the file is displayed locally or not according to the FileId List. If not, firstly analyzing window information and file types in the Widget message, locally drawing a window for displaying files, and correspondingly displaying different file types. If the file exists locally, the view layer is notified to update the file. The above process is repeated every time a widget message is received.
The initiator and the responder can adjust the size of a file window through a mouse or a finger (mobile phone), calculate the display position of the current file, modify the Widget message and send the Widget message to the server; including operations such as double-click max, double-click recovery, file movement, file size scaling, etc., as shown in fig. 2, a file window diagram is shown.
And the responder analyzes the position information in the Widget message by the control layer, compares the position information with the local position information, updates the display position of the file window if the position information is different from the local position information, ignores the exclusive information of the file, and judges the exclusive information of the file if the position information is the same as the local position information.
The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and examples.
Example 1
As shown in fig. 1, embodiment 1 of the present invention provides an initiating method for online multi-file multi-end synchronization, which specifically includes the following steps:
step 1) File opening
1-1: the client A selects a video courseware to be opened to acquire file information;
1-2: judging whether the currently selected courseware is displayed or not according to the file information, if so, adjusting the file window to the uppermost end of desktop display, and stopping opening the process, otherwise, continuing the following process;
1-3: the local file window displays the file, adds the file at the tail of the List List, generates a Widget message and sends the Widget message to the server; the Widget message is used for describing the pixel position of the file in the local file window and the display state of the current file.
Step 2) adjusting the window
2-1: operating on the view layer to adjust the size of a window and the like;
2-2: receiving the change of the data at the control layer, generating a changed Widget message according to the Widget message of the current file, and sending the changed Widget message to the server;
2-3: each adjustment will send a Widget message to notify the server, and then repeat the above processes.
Step 3) adjusting courseware playing progress
3-1: operating a progress bar in a view layer, or playing, pausing and other operations;
3-2: receiving the change of the data at the control layer, generating a changed Widget message according to the Widget message of the current file, and sending the changed Widget message to the server;
3-3: each adjustment will send a Widget message to notify the server, and then repeat the above processes.
Step 4) receiving the synchronous message
4-1: receiving a Widget message forwarded by a server;
4-2: reading the window information of the Widget message, comparing the window information with the position of the local file window,
if the file is different from the file window, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
4-3: reading the exclusive information of the Widget message and displaying the local file
And if the two files are different, synchronously updating the display state of the local file according to the exclusive information of the file of the Widget message, and further keeping synchronization.
And repeating the steps to open a plurality of files, wherein the files can be of the same type or different types, and the simultaneous opening and synchronization of the online files are realized.
Example 2
Embodiment 2 of the present invention provides an initiating system for online multi-file multi-end synchronization, including: the file display device comprises a file opening module, a window adjusting module and a file display adjusting module; wherein the content of the first and second substances,
the file opening module is used for judging whether the file exists in the local List List b according to the file name in the file opening command, and if so, adjusting the file window to the uppermost end of the desktop display; otherwise, the file is opened in the file window at the uppermost end of the desktop display, the file is added at the tail of the List List, and a Widget message is generated and sent to the server.
The window adjusting module is used for receiving a local file window adjusting command, adjusting the size of the file window, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if so, the local file view remains unchanged.
The file display adjustment module is used for receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; and reading the file exclusive information of the Widget message, comparing the file exclusive information with the local file display state, and if the file exclusive information of the Widget message is different from the local file display state, synchronously updating the local file display state according to the file exclusive information of the Widget message, thereby keeping synchronization.
Example 3
Embodiment 3 of the present invention may also provide a computer apparatus (originating client), including: at least one processor, memory, at least one network interface, and a user interface. The various components in the device are coupled together by a bus system. It will be appreciated that a bus system is used to enable communications among the components. The bus system includes a power bus, a control bus, and a status signal bus in addition to a data bus.
The user interface may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It will be appreciated that the memory in the embodiments disclosed herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, the memory stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system and an application program.
The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs, including various application programs such as a Media Player (Media Player), a Browser (Browser), etc., are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure may be included in an application program.
In the above embodiments, the processor may further be configured to, by calling a program or an instruction stored in the memory, specifically, a program or an instruction stored in the application program: the steps of the method of example 1 were performed.
The method of embodiment 1 may be applied in or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The methods, steps, and logic blocks disclosed in embodiment 1 may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with embodiment 1 may be directly implemented by a hardware decoding processor, or may be implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques of the present invention may be implemented by executing the functional blocks (e.g., procedures, functions, and so on) of the present invention. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Example 4
Embodiment 4 of the present invention may also provide a nonvolatile storage medium for storing a computer program. The computer program may realize the steps of the above-described method embodiment 1 when executed by a processor.
Example 5
Embodiment 5 of the present invention provides a response method for online multi-file multi-end synchronization. The method comprises the following steps:
step 1) receiving Widget message forwarded by server
1-1: analyzing the Widget message to obtain window information and file exclusive information;
1-2: if the Widget message of the file is received for the first time, setting a local file window according to the window information; downloading the file to the local from the server according to the exclusive information of the file, analyzing the file correspondingly, and displaying the file in a file window by taking a courseware file as an example;
1-3: otherwise, reading the window information, comparing with the position of the local file window, if different, resetting the pixel position of the file in the file window and the size of the file window according to the window information; if the local file window is the same, the local file window is kept unchanged;
and reading the file exclusive information, comparing the file exclusive information with the local file display state, and if the file exclusive information is different from the local file display state, synchronously updating the local file display state according to the file exclusive information so as to keep synchronization.
Step 2) adjusting the window
2-1: operating on the view layer to adjust the size of a window and the like;
2-2: receiving the change of the data at the control layer, generating a changed Widget message according to the Widget message of the current file, and sending the changed Widget message to the server;
2-3: each adjustment will send a Widget message to notify the server, and then repeat the above processes.
Step 3) adjusting courseware playing progress
3-1: operating a progress bar in a view layer, or playing, pausing and other operations;
3-2: receiving the change of the data at the control layer, generating a changed Widget message according to the Widget message of the current file, and sending the changed Widget message to the server;
3-3: each adjustment will send a Widget message to notify the server, and then repeat the above processes.
If the initiator opens a plurality of files at the same time, the responder repeats the steps to realize synchronous response of the plurality of files.
Example 6
Embodiment 6 of the present invention provides a response system for online multi-file multi-end synchronization, which includes: the device comprises a message receiving and analyzing module, a file opening module, a window adjusting module and a file display adjusting module; wherein the content of the first and second substances,
the message receiving and analyzing module is used for receiving the Widget message forwarded by the server and analyzing the Widget message to obtain window information and file exclusive information; if the Widget message of the file is received for the first time, the parsed window information and file exclusive information are sent to a file opening module; otherwise, the analyzed window information is sent to a window adjusting module, and the file exclusive information is sent to a file display adjusting module;
the file opening module is used for setting a local file window according to the window information, downloading the file from the server to the local according to the exclusive information of the file, and displaying the file in the file window after analyzing the corresponding file;
the window adjusting module is used for reading window information, comparing the window information with the position of a local file window, and resetting the pixel position of the file in the file window and the size of the file window according to the window information if the window information is different from the local file window; if the local file window is the same, the local file window is kept unchanged; the device is also used for receiving a local file window adjusting command, adjusting the size of the file window, generating a Widget message and sending the Widget message to the server;
the file display adjusting module is used for reading the exclusive information of the file, comparing the exclusive information with the local file display state, and if the exclusive information of the file is different from the local file display state, synchronously updating the local file display state according to the exclusive information of the file so as to keep synchronization; and the widget message server is also used for receiving a local file modification operation command, adjusting the display state of the file, generating a widget message and sending the widget message to the server.
Example 7
Embodiment 7 of the present invention may also provide a computer device (originating client) comprising: at least one processor, memory, at least one network interface, and a user interface. The various components in the device are coupled together by a bus system. It will be appreciated that a bus system is used to enable communications among the components. The bus system includes a power bus, a control bus, and a status signal bus in addition to a data bus.
The user interface may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It will be appreciated that the memory in the embodiments disclosed herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, the memory stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system and an application program.
The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs, including various application programs such as a Media Player (Media Player), a Browser (Browser), etc., are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure may be included in an application program.
In the above embodiments, the processor may further be configured to, by calling a program or an instruction stored in the memory, specifically, a program or an instruction stored in the application program: the steps of the method of example 5 were performed.
The method of embodiment 5 may be applied in or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The methods, steps, and logic blocks disclosed in embodiment 1 may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with embodiment 1 may be directly implemented by a hardware decoding processor, or may be implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques of the present invention may be implemented by executing the functional blocks (e.g., procedures, functions, and so on) of the present invention. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Example 8
Embodiment 8 of the present invention may also provide a nonvolatile storage medium for storing a computer program. The computer program may realize the steps of the above-described method embodiment 5 when executed by a processor.
Example 9
Embodiment 9 of the present invention provides an interactive system for online multi-file multi-end synchronization, which includes: the system comprises an initiating module arranged at an initiating end, a response module arranged at a receiving end and a forwarding module arranged on a server; wherein the content of the first and second substances,
the initiating module is used for receiving a local file opening command, displaying the file in a local file window according to the file name in the file opening command, generating a Widget message and sending the Widget message to the server; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server; receiving a Widget message forwarded by a server, and adjusting a local file window to further keep synchronization;
the response module is used for receiving the Widget message forwarded by the server and analyzing the Widget message to obtain window information and file exclusive information; if the Widget message of the file is received for the first time, setting a local file window according to the window information; downloading the file from the server to the local according to the exclusive information of the file, and displaying the file in a file window after analyzing the corresponding file; otherwise, reading the window information, comparing with the position of the local file window, if different, resetting the pixel position of the file in the file window and the size of the file window according to the window information; if the local file window is the same, the local file window is kept unchanged; reading the file exclusive information, comparing the file exclusive information with the local file display state, and if the file exclusive information is different from the local file display state, synchronously updating the local file display state according to the file exclusive information so as to keep synchronization; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server;
the forwarding module is used for forwarding the Widget message generated by the initiating module to the responding module; and the Widget message sending module is also used for forwarding the Widget message generated by the response module to the initiating module.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and are not limited. Although the present invention has been described in detail with reference to the embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (3)

1. A method for initiating online multi-file multi-end synchronization, the method comprising:
receiving a local file opening command, judging whether the file exists in a local List List according to the file name in the file opening command, and if so, adjusting the window of the file to the uppermost end of the desktop display; otherwise, opening the file in the file window at the uppermost end of the desktop display, adding the file at the tail of the List List, generating a Widget message and sending the Widget message to the server; the Widget message is used for describing the pixel position of the file in a local file window and the display state of the current file;
receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server;
receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server;
receiving a Widget message forwarded by a server, and adjusting a local file window to further keep synchronization;
the file includes: audio and video files, PDF files, WORD files, text files, PPT files, picture files and custom files;
the Widget message comprises window information and file exclusive information; wherein the content of the first and second substances,
the window information includes: the pixel position of the file in the file window and the size of the file window;
the file specific information includes: storage path and current display content of the file on the server: wherein the content of the first and second substances,
when the file is an audio/video file, the current display content comprises: the current playing position, the total playing time length, the playing state and the playing speed;
when the file is a PDF file, the current display content includes: the current reading page number, the reading position and the PDF remark information;
when the file is a WORD file, the current display content comprises: the current reading page number and the reading position;
when the file is a text file, the current display content comprises: the current reading page number and the reading position;
when the file is a PPT file, the current display content comprises: the current reading page number and the reading position;
when the file is a picture file, the current display content comprises: picture size and picture rotation angle;
when the file is a custom file, the current display content comprises: customizing the current reading information of the file;
the Widget message forwarded by the server is received, and the local file window is adjusted to keep synchronization; the method specifically comprises the following steps:
receiving a Widget message forwarded by a server;
reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
and reading the file exclusive information of the Widget message, comparing the file exclusive information with the local display state of the file, and if the file exclusive information of the Widget message is different from the local display state of the file, synchronously updating the local display state of the file according to the file exclusive information of the Widget message, thereby keeping synchronization.
2. An initiating system for online multi-file multi-end synchronization, the system comprising: the file display device comprises a file opening module, a window adjusting module and a file display adjusting module; wherein the content of the first and second substances,
the file opening module is used for judging whether the file exists in the local List List according to the file name in the file opening command, and if so, adjusting the window of the file to the uppermost end of the desktop display; otherwise, opening the file in the file window at the uppermost end of the desktop display, adding the file at the tail of the List List, generating a Widget message and sending the Widget message to the server;
the window adjusting module is used for receiving a local file window adjusting command, adjusting the size of the file window, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
the file display adjustment module is used for receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to the server; the device is also used for receiving the Widget message forwarded by the server; reading file exclusive information of the Widget message, comparing the file exclusive information with the local display state of the file, and if the file exclusive information of the Widget message is different from the local display state of the file, synchronously updating the local display state of the file according to the file exclusive information of the Widget message, so as to keep synchronization;
the file includes: audio and video files, PDF files, WORD files, text files, PPT files, picture files and custom files;
the Widget message comprises window information and file exclusive information; wherein the content of the first and second substances,
the window information includes: the pixel position of the file in the file window and the size of the file window;
the file specific information includes: storage path and current display content of the file on the server: wherein the content of the first and second substances,
when the file is an audio/video file, the current display content comprises: the current playing position, the total playing time length, the playing state and the playing speed;
when the file is a PDF file, the current display content includes: the current reading page number, the reading position and the PDF remark information;
when the file is a WORD file, the current display content comprises: the current reading page number and the reading position;
when the file is a text file, the current display content comprises: the current reading page number and the reading position;
when the file is a PPT file, the current display content comprises: the current reading page number and the reading position;
when the file is a picture file, the current display content comprises: picture size and picture rotation angle;
when the file is a custom file, the current display content comprises: and self-defining the current reading information of the file.
3. An interactive system for online multi-file multi-end synchronization, the system comprising: the system comprises an initiating module arranged at an initiating end, a response module arranged at a receiving end and a forwarding module arranged on a server; wherein the content of the first and second substances,
the initiating module is used for receiving a local file opening command, displaying the file in a local file window according to the file name in the file opening command, generating a Widget message and sending the Widget message to the server; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server; receiving a Widget message forwarded by a server, and adjusting a local file window to further keep synchronization;
the response module is used for receiving the Widget message forwarded by the server and analyzing the Widget message to obtain window information and file exclusive information; if the Widget message of the file is received for the first time, setting a local file window according to the window information; downloading the file from the server to the local according to the exclusive information of the file, and displaying the file in a file window after analyzing the corresponding file; otherwise, reading the window information, comparing with the position of the local file window, if different, resetting the pixel position of the file in the file window and the size of the file window according to the window information; if the local file window is the same, the local file window is kept unchanged; reading the exclusive information of the file, comparing the exclusive information with the display state of the local file, and if the exclusive information of the file is different from the display state of the local file, synchronously updating the display state of the local file according to the exclusive information of the file, thereby keeping synchronization; receiving a local file window adjusting command, adjusting the size of a file window, generating a Widget message and sending the Widget message to a server; receiving a local file modification operation command, adjusting the display state of the file, generating a Widget message and sending the Widget message to a server;
the forwarding module is used for forwarding the Widget message generated by the initiating module to the responding module; the Widget message sending module is also used for sending the Widget message generated by the response module to the initiating module;
the system comprises a server, a file opening command and a widget message, wherein the file opening command is used for receiving a local file opening command, displaying a file in a local file window according to a file name in the file opening command, generating the widget message and sending the widget message to the server; the method specifically comprises the following steps:
receiving a local file opening command, judging whether the file exists in a local List List according to the file name in the file opening command, and if so, adjusting the window of the file to the uppermost end of the desktop display; otherwise, opening the file in the file window at the uppermost end of the desktop display, adding the file at the tail of the List List, generating a Widget message and sending the Widget message to the server; the Widget message is used for describing the pixel position of the file in a local file window and the display state of the current file;
the file includes: audio and video files, PDF files, WORD files, text files, PPT files, picture files and custom files;
the Widget message comprises window information and file exclusive information; wherein the content of the first and second substances,
the window information includes: the pixel position of the file in the file window and the size of the file window;
the file specific information includes: storage path and current display content of the file on the server: wherein the content of the first and second substances,
when the file is an audio/video file, the current display content comprises: the current playing position, the total playing time length, the playing state and the playing speed;
when the file is a PDF file, the current display content includes: the current reading page number, the reading position and the PDF remark information;
when the file is a WORD file, the current display content comprises: the current reading page number and the reading position;
when the file is a text file, the current display content comprises: the current reading page number and the reading position;
when the file is a PPT file, the current display content comprises: the current reading page number and the reading position;
when the file is a picture file, the current display content comprises: picture size and picture rotation angle;
when the file is a custom file, the current display content comprises: customizing the current reading information of the file;
the Widget message forwarded by the server is received, and the local file window is adjusted to keep synchronization; the method specifically comprises the following steps:
receiving a Widget message forwarded by a server;
reading window information of the Widget message, comparing the window information with the position of a local file window, and if the window information of the Widget message is different, resetting the pixel position of the file in the file window and the size of the file window according to the window information of the Widget message; if the local file window is the same, the local file window is kept unchanged;
and reading the file exclusive information of the Widget message, comparing the file exclusive information with the local display state of the file, and if the file exclusive information of the Widget message is different from the local display state of the file, synchronously updating the local display state of the file according to the file exclusive information of the Widget message, thereby keeping synchronization.
CN202010774917.2A 2020-08-05 2020-08-05 Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system Active CN111651422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010774917.2A CN111651422B (en) 2020-08-05 2020-08-05 Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010774917.2A CN111651422B (en) 2020-08-05 2020-08-05 Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system

Publications (2)

Publication Number Publication Date
CN111651422A CN111651422A (en) 2020-09-11
CN111651422B true CN111651422B (en) 2020-11-24

Family

ID=72342880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010774917.2A Active CN111651422B (en) 2020-08-05 2020-08-05 Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system

Country Status (1)

Country Link
CN (1) CN111651422B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164034A1 (en) * 2007-12-19 2009-06-25 Dopetracks, Llc Web-based performance collaborations based on multimedia-content sharing
CN103188334A (en) * 2011-12-30 2013-07-03 宏碁股份有限公司 Synchronizing system and method thereof
CN107247570A (en) * 2017-06-08 2017-10-13 青岛七十六信息科技有限公司 It is a kind of online with figure cooperating method, apparatus and system
CN111343409B (en) * 2020-02-13 2021-12-28 北京翼鸥教育科技有限公司 Method and system for initiating and synchronizing dynamic arrangement of multiple video windows

Also Published As

Publication number Publication date
CN111651422A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US8595371B2 (en) Sending a remote user interface
US7590750B2 (en) Systems and methods for multimedia remoting over terminal server connections
US9542501B2 (en) System and method for presenting content in a client/server environment
US10382514B2 (en) Presentation of media in an application
US8463912B2 (en) Remote displays in mobile communication networks
US8380866B2 (en) Techniques for facilitating annotations
US7908325B1 (en) System and method for event-based collaboration
US7562131B2 (en) UPnP user interface system and method
US20080222504A1 (en) Script-based system to perform dynamic updates to rich media content and services
US20030061286A1 (en) Co-browsing system including form and focal-point synchronization capabilities for both secure and non-secure web documents
US20070288640A1 (en) Remote rendering of multiple mouse cursors
US20050086344A1 (en) Method and system for unrestricted, symmetric remote scripting
US20030160813A1 (en) Method and apparatus for a dynamically-controlled remote presentation system
WO2022193595A1 (en) Object playing method and apparatus
WO2021164154A1 (en) Screen multi-party sharing initiation, forwarding, response, and receiving methods, and interactive system
EP3267331A1 (en) Method and apparatus for cloud streaming service
CN101473675A (en) Virtualization of mobile device user experience
CN112911320B (en) Live broadcast method, live broadcast device, computer equipment and storage medium
Thommes et al. RemoteUI: A high-performance remote user interface system for mobile consumer electronic devices
KR100340169B1 (en) System and Method for Web Cataloging Dynamic Multimedia Using Java
Berena et al. Shared virtual presentation board for e-Meeting in higher education on the WebELS platform
JP6337449B2 (en) CONFERENCE SERVER DEVICE, PROGRAM, INFORMATION PROCESSING METHOD, AND CONFERENCE SYSTEM
CN111651422B (en) Initiating and responding method for on-line multi-file multi-terminal synchronization and interactive system
US11784887B1 (en) Bandwidth throttling
Boyaci et al. Bass application sharing system

Legal Events

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