CN113468120A - File co-processing method, device, equipment and readable storage medium - Google Patents

File co-processing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113468120A
CN113468120A CN202110627472.XA CN202110627472A CN113468120A CN 113468120 A CN113468120 A CN 113468120A CN 202110627472 A CN202110627472 A CN 202110627472A CN 113468120 A CN113468120 A CN 113468120A
Authority
CN
China
Prior art keywords
operation information
target file
target
information
file
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.)
Pending
Application number
CN202110627472.XA
Other languages
Chinese (zh)
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.)
Hainan Shilian Communication Technology Co ltd
Original Assignee
Hainan Shilian Communication 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 Hainan Shilian Communication Technology Co ltd filed Critical Hainan Shilian Communication Technology Co ltd
Priority to CN202110627472.XA priority Critical patent/CN113468120A/en
Publication of CN113468120A publication Critical patent/CN113468120A/en
Pending legal-status Critical Current

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
    • 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/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a file cooperative processing method, which is applied to terminal equipment and comprises the following steps: responding to the starting operation of the cooperative processing function of the target file, and sending a cooperative processing request aiming at the target file to the server; if the operation instruction of the target file is detected, executing first operation processing of the target file, generating first operation information of the target file, adding the first operation information into an operation information set of the target file, and sending the first operation information to a server; and if second operation information of the target file sent by the server is received, adding the second operation information into the operation information set, determining the target operation information from the operation information set according to a preset rule, and executing target operation processing of the target file according to the target operation information. Therefore, each terminal device displaying the same target file can simultaneously execute operation on the target file, so that communication among users is more convenient, and user experience is improved.

Description

File co-processing method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of video networking, in particular to a file coprocessing method, a device, equipment and a readable storage medium.
Background
The online consultation is an important part of the application of the video networking technology, and medical experts can remotely operate medical images such as CT (computed tomography) images and X-ray images of patients through a video networking conference and diagnose the patients according to the medical images, so that the patients can conveniently see a doctor in a nearby hospital, and the medical cost and the transfer trouble of the patients are reduced.
In some cases, the consultation of the patient needs to be completed by multiple medical experts together, that is, during the online consultation process, the multiple medical experts are required to cooperatively process the medical image, so as to obtain a more accurate diagnosis result.
However, in the process of the video networking conference, a single user can only operate the file at the same time, and the cooperative operation of multiple users on the file cannot be realized, so that the communication among the users participating in the video networking conference is not convenient and fast, and the user experience is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a file coprocessing method, apparatus, device and readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a file co-processing method, where the method is applied to a terminal device, and the method includes:
responding to an opening operation of a cooperative processing function of a target file, and sending a cooperative processing request aiming at the target file to a server, wherein the cooperative processing request is used for indicating the server to generate cooperative information aiming at the target file, and the cooperative information is used for recording operation information initiated by the terminal equipment and at least one other terminal equipment participating in cooperative processing on the target file;
if an operation instruction for the target file is detected, executing first operation processing for the target file according to the operation instruction, generating first operation information of the target file, adding the first operation information to an operation information set of the target file, and sending the first operation information to the server so that the server updates the cooperation information;
and if second operation information of the target file sent by the server is received, adding the second operation information to the operation information set, determining target operation information from the operation information set according to a preset rule, and executing target operation processing of the target file according to the target operation information, wherein the second operation information comprises operation information of the target file initiated by the other terminal equipment recorded in the cooperation information.
Optionally, the determining the target operation information from the operation information set according to a preset rule includes:
displaying the first operation information and the second operation information in the operation information set;
and determining target operation information in response to the selection operation of the user on the first operation information and/or the second operation information in the operation information set.
Optionally, the determining target operation information in response to a selection operation on the first operation information and/or the second operation information in the operation information set includes:
responding to the selection operation of a user on any one of the first operation information or the second operation information in the operation information set, and taking the timestamp of the selected first operation information or second operation information as a target timestamp;
and taking the first operation information and the second operation information with the time stamps not later than the target time stamp in the operation information set as target operation information.
Optionally, the executing, according to the target operation information, the target operation processing on the target file includes:
and executing target operation processing on the target file according to the time stamp sequence and the target operation information in sequence.
Optionally, the determining the target operation information from the operation information set according to a preset rule includes:
and determining the first operation information or the second operation information with the latest timestamp in the operation information set as target operation information.
The embodiment of the invention also discloses a file cooperative processing method, which is applied to the server and comprises the following steps:
receiving a cooperative processing request sent by at least one terminal device for a target file, establishing connection with the terminal device, and generating cooperative information for the target file, wherein the cooperative information is used for recording operation information initiated by at least two terminal devices participating in cooperative processing for the target file;
receiving operation information of the target file sent by any terminal equipment participating in cooperative processing, and updating the cooperative information according to the operation information;
and for each terminal device, synchronizing operation information initiated by other terminal devices except the terminal device to the target file to the terminal device according to the cooperative information, so that each terminal device executes operation processing corresponding to the received operation information on the target file respectively, and the terminal devices participating in cooperative processing realize cooperative processing of the target file.
The embodiment of the invention also discloses a file coprocessing device, which is applied to terminal equipment and comprises:
a response module, configured to send, in response to an operation for starting a cooperative processing function of a target file, a cooperative processing request for the target file to a server, where the cooperative processing request is used to instruct the server to generate cooperative information for the target file, and the cooperative information is used to record operation information initiated by the terminal device and at least one other terminal device participating in cooperative processing on the target file;
the first processing module is configured to, if an operation instruction for the target file is detected, execute first operation processing for the target file according to the operation instruction, generate first operation information of the target file, add the first operation information to an operation information set of the target file, and send the first operation information to the server, so that the server updates the cooperation information;
and the second processing module is configured to, if second operation information for the target file sent by the server is received, add the second operation information to the operation information set, determine target operation information from the operation information set according to a preset rule, and execute target operation processing for the target file according to the target operation information, where the second operation information includes operation information initiated by the other terminal device for the target file and recorded in the cooperation information.
The embodiment of the invention also discloses a file coprocessing device, which is applied to a server and comprises:
the connection module is used for receiving a cooperative processing request sent by at least one terminal device for a target file, establishing connection with the terminal device and generating cooperative information for the target file, wherein the cooperative information is used for recording operation information initiated by at least two terminal devices participating in cooperative processing for the target file;
the receiving module is used for receiving operation information of the target file sent by any terminal equipment participating in the cooperative processing and updating the cooperative information according to the operation information;
and the sending module is used for synchronizing the operation information initiated by other terminal equipment except the terminal equipment to the target file to the terminal equipment according to the cooperative information aiming at each terminal equipment so that each terminal equipment respectively executes the operation processing corresponding to the received operation information on the target file and realizes the cooperative processing of the terminal equipment participating in the cooperative processing on the target file.
The embodiment of the invention also discloses a file cooperative processing device, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform any of the file co-processing methods described above.
The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program enables a processor to execute any one of the file co-processing methods.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, each terminal device which establishes connection aiming at the displayed target file with the server can send the first operation information which carries out operation processing on the target file to the server, can also receive the second operation information sent by the server, adds the first operation information and the second operation information to the operation information set, determines the target operation information from the operation information set according to the preset rule, and carries out the target operation processing on the target file according to the target operation information, namely, each terminal device which displays the same target file can carry out operation on the target file at the same time, so that the communication between users is more convenient, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a file co-processing method of the present invention;
FIG. 2 is a flow chart of another document co-processing method of the present invention;
FIG. 3 is a schematic diagram of a document co-processing method according to the present invention;
FIG. 4 is a diagram illustrating establishment of a message box between a terminal device and a server in one implementation;
FIG. 5 is a schematic diagram of a scenario of a file co-processing method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a document cooperative processing apparatus according to the present invention;
fig. 7 is a configuration diagram of another file cooperative processing apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The online consultation is an important part of the application of the video networking technology, and in some cases, the consultation of a patient needs to be completed by a plurality of medical experts together, that is, in the online consultation process, the medical images need to be processed by the cooperation of the plurality of medical experts, so that a more accurate diagnosis result can be obtained. However, in the process of the video networking conference, a single user can only operate the file at the same time, and the cooperative operation of multiple users on the file cannot be realized, so that the communication among the users participating in the video networking conference is not convenient and fast, and the user experience is poor.
In order to solve the technical problem, embodiments of the present invention provide a file co-processing method, apparatus, device and readable storage medium.
As shown in fig. 1, an embodiment of the present invention provides a file cooperation processing method, where the method is applied to a terminal device, and the method includes the following steps:
s101: and responding to the starting operation of the cooperative processing function of the target file, and sending a cooperative processing request aiming at the target file to the server.
The cooperative processing request is used for indicating the server to generate cooperative information aiming at the target file, and the cooperative information is used for recording operation information initiated by the terminal equipment and at least one other terminal equipment participating in cooperative processing on the target file.
In this step, the target file is a file that requires cooperative processing of a plurality of terminal devices, for example, the target file may be a medical image of a patient required for online consultation, or may be a file type such as a document, a table, an image and the like required in other types of video online conferences, and is not limited specifically. The cooperative processing function means that a plurality of terminal devices can perform operation processing on the target file together, and the operation processing on the target file can be synchronized on different terminal devices, so that the target files on different terminal devices reach the same state.
The terminal device may send a cooperative processing request for the target file to the server in response to an opening operation of the cooperative processing function of the target file by the user, so that the server generates the cooperative information for the target file. The starting operation of the cooperative processing function may be a display operation of the target file, after the display operation, the terminal device displays a display interface of the target file to display the target file, and meanwhile, the cooperative processing request for the target file may be sent to the server. Or, the starting operation of the cooperative processing function may also be a click operation of a cooperative processing operation key on the target document presentation page, and the like, which is not limited specifically.
The cooperation information is used for recording operation information initiated by the terminal device and at least one other terminal device participating in the cooperation processing on the target file, and the cooperation information further includes information of each terminal device which starts the cooperation processing function on the target file, that is, after any terminal device starts the cooperation processing function on the target file, the cooperation information for the target file can be obtained, and then the target file is cooperatively processed according to the operation information of each terminal device on the target file recorded in the cooperation information, so that the states of the target files in each terminal device are the same.
In one implementation, after the terminal device sends the cooperative processing request for the target file to the server, the server may first establish a connection for the target file with the terminal device, and then generate the cooperative information for the target file. For example, the specific steps may include:
firstly, a terminal device sends a cooperative processing request to a server, wherein the cooperative processing request carries a file identifier of a target file and a function identifier for indicating the server to generate cooperative information for the target file, the file identifier may be a serial number, a file name or an identity id of the target file, and the only corresponding target file can be determined according to the file identifier. Therefore, after receiving the cooperative processing request, the server can start the cooperative processing function of the terminal device on the target file according to the function identifier, generate cooperative information for the target file according to the file identifier, and feed back connection confirmation information to the terminal device. Then, the terminal device may establish a connection with the server for the cooperation information of the target file according to the connection confirmation information. For example, the connection established between the terminal device and the server for the collaboration information of the target file may be a socket connection.
The collaboration information of the target file may be generated in advance, for example, whenever the server detects a file identifier of a new file, the collaboration information of the file is created, that is, each file is configured with one piece of collaboration information in advance; or, the server may create the collaboration information of the file after receiving the collaboration processing request carrying any file identifier.
For example, if the server creates the cooperative information of the file after receiving the cooperative processing request carrying any file identifier, the server may first determine whether the cooperative information for the target file has been created after receiving the cooperative processing request for the target file; if the collaborative information is created, updating the created collaborative information aiming at the target file to obtain new collaborative information aiming at the target file; and if not, creating the collaborative information aiming at the target file.
S102: if the operation instruction of the target file is detected, executing first operation processing of the target file according to the operation instruction, generating first operation information of the target file, adding the first operation information to an operation information set of the target file, and sending the first operation information to the server so that the server updates the cooperation information.
After the terminal device displays the target file, if an operation instruction of the user on the target file is detected, a first operation process on the target file can be executed according to the operation instruction. The operation instruction refers to a corresponding instruction sent when the user performs an operation on the target file through the terminal device, for example, the operation instruction may be a labeling instruction for adding a label in the target file, or a scaling instruction for scaling the target file, or the like. Different operation instructions correspond to different operation processes. The operation instructions which can be detected by the terminal equipment can be configured according to different types of target files, different types of video networking conferences or requirements of users.
After the first operation processing on the target file is executed, first operation information of the target file can be generated, and the first operation processing on the target file by the terminal device is recorded in the first operation information, so that other terminal devices can restore the first operation processing according to the first operation information.
For example, the operation instruction may include a labeling instruction and a zooming instruction, wherein if the operation instruction is the labeling instruction, a labeling position of the target file is determined according to the labeling instruction, labeling information is added to the labeling position, and the labeling position and the labeling information are used as first operation information; and if the operation instruction is a zooming instruction, zooming the target file, and taking the zooming ratio of the target file as first operation information.
For example, the labeling instruction may be a right click operation on any position of the target file, where the any position is the labeling position, and meanwhile, after the terminal device detects the operation, an operation box may be popped up, where the operation box includes a selection of a mark shape, such as a circular mark, a square mark, an irregular line mark, and the like. In addition, the terminal equipment can respond to the remark operation of the user on the mark and add remark information to the target file according to the input information of the user. The mark shape, remark information and mark position added by the user to the target file can be used as mark information, for example, the mark shape can be stored as a currentsharp variable value in the mark information, the remark information can be stored as a remark variable value in the mark information, and the mark position can be stored as a position variable in the mark information in a coordinate value (x, y) form.
In addition, the zoom instruction may be a sliding operation of the mouse wheel by the user, or may also be a dragging operation of the zoom control, and the like, which is not limited in detail. The scaling ratio may be stored as a value of a current _ level variable in the first operation information as the first operation information.
In one implementation mode, after the annotation position of the target file is determined according to the annotation instruction and the annotation information is added to the annotation position, the terminal device can also display screenshot prompting information, and if a screenshot confirmation instruction of a user is received, the image of the area corresponding to the annotation position is stored.
After generating the first operation information of the target file, the terminal device may add the first operation information to the operation information set of the target file, and send the first operation information to the server. The operation information set is stored and displayed locally in the terminal device, and includes all operation information for the target file, including the first operation information, received by the terminal device. For example, the operation information set may be displayed in a page of the terminal device in the form of an operation information list, and in the operation information list, the operation information of the target file may be arranged according to a time stamp sequence, which is not limited specifically.
In the embodiment of the present invention, after receiving the first operation information, the server may update the coordination information, record the first operation information in the coordination information, and then send the first operation information to the other terminal devices that start the coordination processing function for the target file according to the updated coordination information, so that all the terminal devices that start the coordination processing function for the target file may synchronize the first operation processing on the target file, that is, implement coordination processing on the target file among the plurality of terminal devices.
The server may send the updated coordination information to other terminal devices, so as to further improve the synchronization of the coordination information received by each terminal device, or the server may send only the incremental first operation information in the coordination information to other terminal devices, so as to reduce the occupation of system resources.
S103: and if second operation information of the target file sent by the server is received, adding the second operation information into the operation information set, determining the target operation information from the operation information set according to a preset rule, and executing target operation processing of the target file according to the target operation information.
The second operation information includes operation information initiated by the other terminal devices to the target file and recorded in the cooperation information. In the embodiment of the present invention, the execution order of step S102 and step S103 is not limited.
After the terminal device receives the second operation information on the target file sent by the server, the second operation information may be added to the operation information set first, that is, the operation information set further includes the second operation information. After determining the target operation information from the operation information set according to the preset rule, the terminal device may execute target operation processing on the target file according to the target operation information.
The second operation information includes operation information initiated by other terminal devices to the target file recorded in the collaboration information, and the target operation information may be first operation information in an operation information set or second operation information in the operation information set.
The preset rule can be the selection operation of the user on the target operation information, so that compared with a mode that the terminal equipment sequentially executes each operation information in the operation information set according to the time sequence, the method is more flexible and convenient. Alternatively, the first operation information or the second operation information with the latest timestamp in the operation information set may be determined as the target operation information, so that the target files on different terminal devices are in the same state as much as possible, which is not limited specifically.
For example, if the preset rule is a selection operation of the user on the target operation information, the terminal device may display the first operation information and the second operation information in the operation information set, where a message identifier of each of the first operation information and the second operation information is displayed in the display interface, where the message identifier may include information, such as a terminal identifier of the terminal device that generates the first operation information or the second operation information, or a generation time of the first operation information or the second operation information, and is not particularly limited; then, in response to a user's selection operation on the first operation information and/or the second operation information in the operation information set, target operation information is determined.
In one implementation, the terminal device may take the selected first operation information and/or second operation information as the target operation information in response to a user selection operation on the first operation information and/or the second operation information in the operation information set. That is, each of the first operation information or the second operation information in the operation information set is independent of each other, and only the selected first operation information and/or second operation information is to be the target operation information.
In another implementation manner, in response to a selection operation of a user on first operation information or second operation information in an operation information set, a terminal device takes a timestamp of the selected first operation information or second operation information as a target timestamp, and takes both the first operation information and the second operation information of which timestamps are not later than the target timestamp in the operation information set as target operation information.
That is, each of the first operation information or the second operation information in the operation information set has an association relationship, and if the operation information in the operation information set includes the operation information A, B, C according to the sorting order of the timestamps, after the operation information C is selected, the timestamp of the operation information C is the target timestamp, and the operation information A, B, C whose timestamp is not later than the target timestamp in the operation information set is the target operation information.
In this step, after the terminal device determines the target operation information, target operation processing on the target file may be performed according to the target operation information, and the target operation processing may be one or more.
In one implementation, each of the first operation information and the second operation information in the operation information set is independent from each other, and the target operation processing on the target file can be executed sequentially and independently according to each target operation information according to the time sequence in which the target operation information is selected. For example, if the order in which the target operation information is selected is A, B, the terminal device first performs the target operation processing a on the target file according to the target operation information a, and when performing the target operation information B, the terminal device first withdraws the target operation processing a on the target file, and then performs the target operation processing B on the target file according to the target operation information B, and so on.
In another implementation manner, each first operation information or second operation information in the operation information set has an association relationship, and target operation processing on the target file may be performed sequentially according to the target operation information and the time stamp sequence of the target operation information. For example, if the target operation information is sorted into A, B, C according to the time stamp, the target operation processing on the target file may be sequentially executed according to the operation information A, B, C, and after the target operation processing a is executed on the target file, the target operation processing c may be continued on the target file on which the target operation processing B has been executed according to the target operation information B, and so on.
Specifically, the setting may be performed according to different types of target files or different application scenarios of file collaborative processing, which is not limited in the embodiment of the present invention.
For example, in this step, according to the target operation information, a specific process of performing target operation processing on the target file may include:
after the target operation information is determined, if the operation instruction corresponding to the target operation information is a labeling instruction, the target operation information may include a currentsharp variable, a remark variable and coordinates (x, y), the terminal device determines a position labeled in the target file according to the coordinates (x, y), determines a shape of the label according to the currentsharp variable, and determines remark information in the label according to the remark variable.
In addition, if the operation instruction corresponding to the target operation information is a zoom instruction, the target operation information may include a current _ level variable, and the terminal device determines a zoom ratio corresponding to the target operation information according to the current _ level variable, so as to implement playback of the operation instruction corresponding to the target operation information.
As can be seen from the above, in the file cooperative processing method provided in the embodiment of the present invention, each terminal device that establishes a connection with the server for the displayed target file may send, to the server, first operation information for performing operation processing on the target file by itself, receive, to add the first operation information and the second operation information to the operation information set, determine, according to a preset rule, the target operation information from the operation information set, and perform, according to the target operation information, target operation processing on the target file, that is, each terminal device that displays the same target file may perform operations on the target file at the same time, so that communication between users is more convenient and faster, and user experience is improved.
As shown in fig. 2, an embodiment of the present invention further provides another file co-processing method, where the method is applied to a server, and the method includes the following steps:
s201: and receiving a cooperative processing request sent by at least one terminal device aiming at the target file, establishing connection with the terminal device and generating cooperative information aiming at the target file.
The cooperative information is used to record operation information initiated by the terminal device and at least one other terminal device participating in the cooperative processing on the target file, and the cooperative information further includes information of each terminal device that starts the cooperative processing function on the target file, that is, after any terminal device starts the cooperative processing function on the target file, the cooperative information for the target file can be obtained, and then the target file is subjected to the cooperative processing according to the operation information of each terminal device on the target file recorded in the cooperative information, so that the states of the target files in each terminal device are the same.
For example, the server may receive the cooperation processing request sent by the terminal device, establish a connection with the terminal device for the target file, and regenerate the cooperation information for the target file. The cooperative processing request carries a file identifier of the target file and a function identifier for instructing the server to generate cooperative information for the target file, wherein the file identifier may be a serial number, a file name or an identity id of the target file, and the only corresponding target file can be determined according to the file identifier.
Therefore, after receiving the cooperative processing request, the server can start the cooperative processing function of the terminal device on the target file according to the function identifier, generate cooperative information for the target file according to the file identifier, and feed back connection confirmation information to the terminal device. Then, the terminal device may establish a connection with the server for the cooperation information of the target file according to the connection confirmation information. For example, the connection established between the terminal device and the server for the collaboration information of the target file may be a socket connection.
The collaboration information of the target file may be generated in advance, for example, whenever the server detects a file identifier of a new file, the collaboration information of the file is created, that is, each file is configured with one piece of collaboration information in advance; or, the server may create the collaboration information of the file after receiving the collaboration processing request carrying any file identifier.
For example, if the server creates the cooperative information of the file after receiving the cooperative processing request carrying any file identifier, the server may first determine whether the cooperative information for the target file has been created after receiving the cooperative processing request for the target file; if the collaborative information is created, updating the created collaborative information aiming at the target file to obtain new collaborative information aiming at the target file; and if not, creating the collaborative information aiming at the target file.
S202: and receiving operation information of the target file sent by any terminal equipment participating in the cooperative processing, and updating the cooperative information according to the operation information.
The operation instruction which can be detected by each terminal device can be configured according to different types of target files, different types of video networking conferences or requirements of users. And the terminal equipment executes the operation processing on the target file according to the operation instruction, then generates corresponding operation information, and records the operation processing on the target file by the terminal equipment in the operation information, so that other terminal equipment can restore the operation processing executed by the terminal equipment according to the operation information.
For example, the operation instruction may include a labeling instruction and a zooming instruction, wherein if the operation instruction is the labeling instruction, a labeling position of the target file is determined according to the labeling instruction, labeling information is added to the labeling position, and the labeling position and the labeling information are used as operation information; and if the operation instruction is a zooming instruction, zooming the target file, and taking the zooming ratio of the target file as operation information.
For example, the labeling instruction may be a right click operation on any position of the target file, after the terminal device detects the operation, an operation box may pop up, where the operation box includes a mark selection, such as a circular mark, a square mark, an irregular line mark, and the like, and by double-click operation on different marks by the user, a mark added by the user to the target file at the any position may be determined. In addition, the terminal equipment can respond to the remark operation of the user on the mark and add remark information to the target file according to the input information of the user. The mark and remark information added by the user for the target file can be used as marking information, and then operation information is generated.
In addition, the zoom instruction may be a sliding operation of the mouse wheel by the user, or may also be a dragging operation of the zoom control, and the like, which is not limited in detail.
S203: and for each terminal device, synchronizing operation information initiated by other terminal devices except the terminal device to the target file to the terminal device according to the cooperative information, so that each terminal device executes operation processing corresponding to the received operation information on the target file respectively, and the terminal devices participating in the cooperative processing realize the cooperative processing of the target file.
In the embodiment of the present invention, after receiving the operation information, the server may synchronize the operation information to each terminal device according to the coordination information, so that all terminal devices that establish connection with the server for the target file may synchronize operation processing on the target file, that is, implement coordination processing on the target file among the plurality of terminal devices.
The server may send, to each terminal device, operation information, initiated by another terminal device except the terminal device, of the updated cooperation information to the other terminal devices, so as to further improve synchronization of the cooperation information received by each terminal device, or the server may only send, to the other terminal devices, incremental operation information, initiated by another terminal device except the terminal device, of the cooperation information to the target file, so as to reduce occupation of system resources.
As can be seen from the above, in the file cooperative processing method provided in the embodiment of the present invention, each terminal device that establishes a connection with the server for the displayed target file may send, to the server, first operation information for performing operation processing on the target file by itself, receive, to add the first operation information and the second operation information to the operation information set, determine, according to a preset rule, the target operation information from the operation information set, and perform, according to the target operation information, target operation processing on the target file, that is, each terminal device that displays the same target file may perform operations on the target file at the same time, so that communication between users is more convenient and faster, and user experience is improved.
Fig. 3 is a timing diagram of a file co-processing method according to an embodiment of the present invention. The method can be applied to the video network, wherein the video network comprises a video network server and a plurality of video network terminals which are in communication connection with the video network server.
The method comprises the steps that firstly, a video network terminal responds to the display operation of a user on a target file, a display interface of the target file is displayed, meanwhile, a connection request aiming at the target file can be sent to a video network server, the connection request is also a cooperative processing request and is used for establishing connection aiming at the target file with the video network server and indicating the server to generate cooperative information aiming at the target file, the connection request carries a file identification of the target file, and the cooperative information is used for recording operation information of a terminal device and at least one other terminal device participating in cooperative processing on the target file.
And secondly, the video network server determines a message queue corresponding to the video network terminal according to the file identifier, wherein the message queue is the message queue of the operation information recorded in the cooperative information corresponding to the target file displayed by the video network terminal, and then feeds back connection confirmation information to the video network terminal to establish connection aiming at the message queue with the video network terminal.
The connection for the target file may be a socket connection, and the connection for the message queue may be a message box. That is to say, after a user displays a target file on the video networking terminal, the video networking terminal may establish a socket connection with the video networking server, and then the video networking server determines a message queue corresponding to the target file displayed by the video networking terminal, so as to implement a cooperative processing function of the target file among a plurality of video networking terminals.
And thirdly, if the video network terminal detects an operation instruction of the user on the target file, executing operation processing on the target file according to the operation instruction, generating operation information of the target file, and sending the operation information to the video network server.
For example, if the user adds a label to the target file, the operation instruction is a label instruction, the video network terminal determines a label position of the target file according to the label instruction of the user, adds label information to the label position, and sends the label position and the label information to the video network server as the operation information of the target file.
And fourthly, the video network server stores the operation information into the message queue and sequentially sends the operation information stored in the message queue to other video network terminals establishing connection aiming at the message queue.
And fifthly, if other video network terminals receive the operation information of the target file sent by the video network server, responding to the execution operation of the user on the operation information, and executing the operation processing on the target file according to the operation information.
In this way, continuing the above example, after receiving the operation information on the target file sent by the video network server, the other video network terminals may add the same label at the same position of the target file according to the label position and the label information, so that the operation information on the target file by the video network terminals showing the same target file in the video network is synchronized, and the effect of cooperative processing on the target file is achieved.
For example, as shown in fig. 4, a schematic diagram of establishing a message box between a terminal device and a server in an implementation manner is shown. After a user opens a target file through a terminal device, the terminal device establishes connection with a server and judges whether the target file is opened by a person or not, if yes, socket connection is established with the server, and a message box for the target file is associated with the socket connection; if no one opens the target file, a message box aiming at the target file is firstly established, then socket connection is established with the server, and the message box aiming at the target file is associated with the socket connection.
Fig. 5 is a schematic diagram of a scheme of a file co-processing method according to an embodiment of the present invention. The user can interact with the terminal equipment to transmit operation information, the terminal equipment transmits the operation information of the user to the message box in the server through the socket, and the message box forwards the operation information of the user, so that other terminal equipment can receive the same operation information of the user. And the other terminal equipment performs collection display on the received user operation message, so that the users of the other terminal equipment can click the collection to perform playback operation on any user operation message.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
As shown in fig. 6, an embodiment of the present invention further provides a file co-processing apparatus, where the method is applied to a terminal device, and the apparatus includes:
a response module 401, configured to send, in response to an operation of starting a cooperative processing function on a target file, a cooperative processing request for the target file to a server, where the cooperative processing request is used to instruct the server to generate cooperative information for the target file, and the cooperative information is used to record operation information initiated by the terminal device and at least one other terminal device participating in cooperative processing on the target file;
a first processing module 402, configured to, if an operation instruction for a target file is detected, execute a first operation process for the target file according to the operation instruction, generate first operation information of the target file, add the first operation information to an operation information set of the target file, and send the first operation information to a server, so that the server updates the collaboration information;
a second processing module 403, configured to, if second operation information for a target file sent by a server is received, add the second operation information to the operation information set, determine target operation information from the operation information set according to a preset rule, and execute target operation processing for the target file according to the target operation information, where the second operation information includes operation information initiated by the other terminal device for the target file and recorded in the coordination information.
As can be seen from the above, in the file cooperative processing apparatus provided in the embodiment of the present invention, each terminal device that establishes a connection with the server for the displayed target file may send, to the server, first operation information for performing operation processing on the target file by itself, receive, to add the first operation information and the second operation information to the operation information set, determine, according to a preset rule, the target operation information from the operation information set, and perform, according to the target operation information, target operation processing on the target file, that is, each terminal device that displays the same target file may perform operations on the target file at the same time, so that communication between users is more convenient and faster, and user experience is improved.
As shown in fig. 7, an embodiment of the present invention further provides another file co-processing apparatus, where the apparatus is applied to a server, and the apparatus includes:
a connection module 501, configured to receive a cooperative processing request sent by at least one terminal device for a target file, establish a connection with the terminal device, and generate cooperative information for the target file, where the cooperative information is used to record operation information initiated by at least two terminal devices participating in cooperative processing on the target file;
a receiving module 502, configured to receive operation information of the target file sent by any terminal device participating in the cooperative processing, and update the cooperative information according to the operation information;
a sending module 503, configured to synchronize, according to the coordination information, operation information initiated by other terminal devices except the terminal device for the target file to the terminal device, so that each terminal device executes operation processing corresponding to the received operation information on the target file, and the terminal devices participating in the coordination processing perform coordination processing on the target file.
As can be seen from the above, in the file cooperative processing apparatus provided in the embodiment of the present invention, each terminal device that establishes a connection with the server for the displayed target file may send, to the server, first operation information for performing operation processing on the target file by itself, receive, to add the first operation information and the second operation information to the operation information set, determine, according to a preset rule, the target operation information from the operation information set, and perform, according to the target operation information, target operation processing on the target file, that is, each terminal device that displays the same target file may perform operations on the target file at the same time, so that communication between users is more convenient and faster, and user experience is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for file co-processing provided by the invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A file cooperative processing method is applied to a terminal device, and comprises the following steps:
responding to an opening operation of a cooperative processing function of a target file, and sending a cooperative processing request aiming at the target file to a server, wherein the cooperative processing request is used for indicating the server to generate cooperative information aiming at the target file, and the cooperative information is used for recording operation information initiated by the terminal equipment and at least one other terminal equipment participating in cooperative processing on the target file;
if an operation instruction for the target file is detected, executing first operation processing for the target file according to the operation instruction, generating first operation information of the target file, adding the first operation information to an operation information set of the target file, and sending the first operation information to the server so that the server updates the cooperation information;
and if second operation information of the target file sent by the server is received, adding the second operation information to the operation information set, determining target operation information from the operation information set according to a preset rule, and executing target operation processing of the target file according to the target operation information, wherein the second operation information comprises operation information of the target file initiated by the other terminal equipment recorded in the cooperation information.
2. The method according to claim 1, wherein the determining the target operation information from the operation information set according to a preset rule comprises:
displaying the first operation information and the second operation information in the operation information set;
and determining target operation information in response to the selection operation of the user on the first operation information and/or the second operation information in the operation information set.
3. The method according to claim 2, wherein the determining target operation information in response to a user selection operation on the first operation information and/or the second operation information in the operation information set comprises:
responding to the selection operation of a user on any one of the first operation information or the second operation information in the operation information set, and taking the timestamp of the selected first operation information or second operation information as a target timestamp;
and taking the first operation information and the second operation information with the time stamps not later than the target time stamp in the operation information set as target operation information.
4. The method according to any one of claims 1 to 3, wherein the performing target operation processing on the target file according to the target operation information includes:
and executing target operation processing on the target file according to the time stamp sequence and the target operation information in sequence.
5. The method according to claim 1, wherein the determining the target operation information from the operation information set according to a preset rule comprises:
and determining the first operation information or the second operation information with the latest timestamp in the operation information set as target operation information.
6. A file coprocessing method is applied to a server and comprises the following steps:
receiving a cooperative processing request sent by at least one terminal device for a target file, establishing connection with the terminal device, and generating cooperative information for the target file, wherein the cooperative information is used for recording operation information initiated by at least two terminal devices participating in cooperative processing for the target file;
receiving operation information of the target file sent by any terminal equipment participating in cooperative processing, and updating the cooperative information according to the operation information;
and for each terminal device, synchronizing operation information initiated by other terminal devices except the terminal device to the target file to the terminal device according to the cooperative information, so that each terminal device executes operation processing corresponding to the received operation information on the target file respectively, and the terminal devices participating in cooperative processing realize cooperative processing of the target file.
7. A file coprocessing device is characterized in that the device is applied to terminal equipment and comprises:
a response module, configured to send, in response to an operation for starting a cooperative processing function of a target file, a cooperative processing request for the target file to a server, where the cooperative processing request is used to instruct the server to generate cooperative information for the target file, and the cooperative information is used to record operation information initiated by the terminal device and at least one other terminal device participating in cooperative processing on the target file;
the first processing module is configured to, if an operation instruction for the target file is detected, execute first operation processing for the target file according to the operation instruction, generate first operation information of the target file, add the first operation information to an operation information set of the target file, and send the first operation information to the server, so that the server updates the cooperation information;
and the second processing module is configured to, if second operation information for the target file sent by the server is received, add the second operation information to the operation information set, determine target operation information from the operation information set according to a preset rule, and execute target operation processing for the target file according to the target operation information, where the second operation information includes operation information initiated by the other terminal device for the target file and recorded in the cooperation information.
8. A file co-processing apparatus, wherein the apparatus is applied to a server, and the apparatus comprises:
the connection module is used for receiving a cooperative processing request sent by at least one terminal device for a target file, establishing connection with the terminal device and generating cooperative information for the target file, wherein the cooperative information is used for recording operation information initiated by at least two terminal devices participating in cooperative processing for the target file;
the receiving module is used for receiving operation information of the target file sent by any terminal equipment participating in the cooperative processing and updating the cooperative information according to the operation information;
and the sending module is used for synchronizing the operation information initiated by other terminal equipment except the terminal equipment to the target file to the terminal equipment according to the cooperative information aiming at each terminal equipment so that each terminal equipment respectively executes the operation processing corresponding to the received operation information on the target file and realizes the cooperative processing of the terminal equipment participating in the cooperative processing on the target file.
9. A file co-processing apparatus, characterized by comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the file co-processing method of any one of claims 1 to 5, or the file co-processing method of claim 6.
10. A computer-readable storage medium characterized by storing a computer program causing a processor to execute the file co-processing method according to any one of claims 1 to 5, or the file co-processing method according to claim 6.
CN202110627472.XA 2021-06-04 2021-06-04 File co-processing method, device, equipment and readable storage medium Pending CN113468120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110627472.XA CN113468120A (en) 2021-06-04 2021-06-04 File co-processing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110627472.XA CN113468120A (en) 2021-06-04 2021-06-04 File co-processing method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113468120A true CN113468120A (en) 2021-10-01

Family

ID=77872348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110627472.XA Pending CN113468120A (en) 2021-06-04 2021-06-04 File co-processing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113468120A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189755A (en) * 2021-12-03 2022-03-15 创盛视联数码科技(北京)有限公司 Synchronous display method, system and device for live broadcast and storage medium
US11349893B1 (en) * 2021-02-26 2022-05-31 Dell Products, Lp System and method for normalizing shared content during a video conference sessions
WO2023071095A1 (en) * 2021-10-28 2023-05-04 华为云计算技术有限公司 File processing method, terminal device, server, and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101159504B1 (en) * 2011-10-14 2012-06-25 주식회사 한글과컴퓨터 Terminal device and document cooperation editing method of the terminal device
CN110636046A (en) * 2019-08-20 2019-12-31 视联动力信息技术股份有限公司 Method, server, electronic device and storage medium for cooperatively processing files
CN111080270A (en) * 2019-12-31 2020-04-28 杨剑峰 Collaborative system application design method, system, device, server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101159504B1 (en) * 2011-10-14 2012-06-25 주식회사 한글과컴퓨터 Terminal device and document cooperation editing method of the terminal device
CN110636046A (en) * 2019-08-20 2019-12-31 视联动力信息技术股份有限公司 Method, server, electronic device and storage medium for cooperatively processing files
CN111080270A (en) * 2019-12-31 2020-04-28 杨剑峰 Collaborative system application design method, system, device, server and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11349893B1 (en) * 2021-02-26 2022-05-31 Dell Products, Lp System and method for normalizing shared content during a video conference sessions
WO2023071095A1 (en) * 2021-10-28 2023-05-04 华为云计算技术有限公司 File processing method, terminal device, server, and related device
CN114189755A (en) * 2021-12-03 2022-03-15 创盛视联数码科技(北京)有限公司 Synchronous display method, system and device for live broadcast and storage medium

Similar Documents

Publication Publication Date Title
CN113468120A (en) File co-processing method, device, equipment and readable storage medium
CN110019279B (en) Online document collaborative updating method, device, equipment and storage medium
JP6961994B2 (en) Systems and methods for message management and document generation on devices, message management programs, mobile devices
US20210092172A1 (en) Real Time Collaboration And Document Editing By Multiple Participants In A Content Management System
US11966414B2 (en) Synchronization of components of digital assets during live co-editing
US10805388B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
US8694586B2 (en) Maintaining corresponding relationships between chat transcripts and related chat content
JP6961993B2 (en) Systems and methods for message management and document generation on devices, message management programs, mobile devices
US20150373063A1 (en) Method and apparatus for timeline-synchronized note taking during a web conference
MX2011007385A (en) Synchronizing presentation states between multiple applications.
CN106572139B (en) Multi-terminal control method, terminal, server and system
EP3139645B1 (en) Method and system for transferring and sharing information among mobile devices
CN111444139A (en) File management method, device, equipment and storage medium
US20170046659A1 (en) Non-transitory computer readable medium, information processing apparatus, and information processing system
US10664494B2 (en) Method and system for synchronously storing multi-modal information of portable endoscope
US20190146645A1 (en) Replaying event-based sessions between a user device and an agent device
US10979598B2 (en) Conference management apparatus, document registration method, program, and conference system
CN115292166A (en) Multi-person collaborative test case management method, device, equipment and medium
CN115831333A (en) Hospital follow-up visit data processing method and system
CN114519336A (en) Picture typesetting method, device and equipment and storage medium
US20190220802A1 (en) Information processing apparatus and non-transitory computer readable medium
JP6780392B2 (en) Information processing equipment and information processing programs
CN109104501B (en) Data synchronization method, device and system
US11880921B2 (en) System and method for multimedia presentation
CN113727054A (en) Method and device for sharing information in video conference and computer readable storage medium

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