Cooperative space information synchronization processing method and device and electronic equipment

By obtaining and storing mouse movement events in online collaboration tools, the mouse lag caused by information out of synchronization during multi-user collaboration is solved, and the sequence and consistency of data are achieved, reducing latency and performance problems.

CN119473448APending Publication Date: 2025-02-18GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310983384.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing online collaboration tools have problems such as information out of synchronization or untimely synchronization when multi-user collaboration, resulting in mouse stuttering.

Method used

By obtaining the user's mouse movement event on the collaborative software product interface, the mouse position information is stored into the preset data structure, and the information is broadcast when specific conditions are met, so that the receiver can render the mouse trajectory.

Benefits of technology

Ensure the order and consistency of data, avoid data loss, and control the data transmission frequency, reduce latency and performance problems, improve information synchronization of online collaboration tools, and reduce lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473448A_ABST
    Figure CN119473448A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a collaborative space information synchronization processing method and device and electronic equipment. The method comprises the steps that when a user enters an interface of a collaborative software product, a mouse moving event of the user on the interface of the collaborative software product is obtained, and the mouse moving event comprises mouse position information; storing the mouse position information into a preset data structure; and when the condition for triggering the sending of the mouse movement event is met, broadcasting the mouse position information stored in the data structure, so that a receiving end obtains the mouse position information according to the data structure, and renders the track of the mouse according to the mouse position information. According to the method, the sequence and continuity of the data are ensured, and data loss is avoided; by controlling the frequency of triggering the broadcast data by the sending end, data loss caused by data broadcasting can be avoided, and delay and performance problems caused by excessive data transmission can be avoided; the information synchronization of the online cooperation tool can be ensured, and the jamming phenomenon is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for synchronously processing collaborative space information. Background Art

[0002] When using online collaboration tools (such as space drawing boards), each user can see information about other users who have entered the space together on their own space drawing board page, such as the movement track of other users' mice.

[0003] During the process of implementing the embodiments of the present application, the inventors discovered that the related technology has at least the following technical problems: if user A and user B use the same space drawing board at the same time, user A's mouse can be seen to be stuck on the page of user B's space screen, especially when more users use the same space drawing board at the same time, this stuck phenomenon is more serious. Summary of the invention

[0004] The implementation methods of the present application are mainly used to solve the technical problem that existing online collaboration tools have information asynchrony or untimely synchronization that causes freezing.

[0005] To solve the above technical problems, a technical solution adopted in the implementation mode of the present application is: to provide a method for synchronously processing collaborative space information, including: when a user enters the interface of a collaborative software product, obtaining a mouse movement event of the user on the interface of the collaborative software product, the mouse movement event including mouse position information; storing the mouse position information in a preset data structure; when the conditions for triggering the sending of the mouse movement event are met, broadcasting the mouse position information stored in the data structure, so that the receiving end obtains the mouse position information according to the data structure, and renders the mouse trajectory according to the mouse position information.

[0006] Optionally, the condition for triggering the sending of the mouse movement event includes: the amount of mouse position information stored in the preset data structure is greater than a preset threshold; or the interval time satisfies the data clearing time corresponding to the data structure.

[0007] Optionally, storing the mouse position information in a preset data structure includes: establishing a corresponding data storage space according to the preset data structure; setting a length of the preset data structure, wherein the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure; storing the mouse position information in the data storage space according to a traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

[0008] Optionally, when the users include at least two users, obtaining mouse movement events of the users on the interface of the collaborative software product when the users enter the interface of the collaborative software product includes: obtaining mouse movement events of the at least two users on the interface of the collaborative software product within a preset time when the at least two users enter the interface of the collaborative software product; wherein the mouse movement events are sorted according to timestamps of mouse operations by the at least two users within the preset time.

[0009] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: providing a method for synchronous processing of collaborative space information, comprising: receiving a data structure including mouse position information; taking out a piece of mouse position information from the data structure according to a traversal method of the data structure, and rendering according to the mouse position information, and then taking out another piece of mouse position information and rendering according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

[0010] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide a collaborative space information synchronization processing device, including: a mouse movement event acquisition module, which is used to obtain the mouse movement event of the user on the interface of the collaborative software product when the user enters the interface of the collaborative software product, and the mouse movement event includes mouse position information; a mouse position information storage module, which is used to store the mouse position information in a preset data structure; a first synchronization processing module, which is used to broadcast the mouse position information stored in the data structure when the conditions for triggering the sending of the mouse movement event are met, so that the receiving end obtains the mouse position information according to the data structure, and renders the mouse trajectory according to the mouse position information.

[0011] Optionally, the condition for triggering the sending of the mouse movement event includes: the amount of mouse position information stored in the preset data structure is greater than a preset threshold; or the interval time satisfies the data clearing time corresponding to the data structure.

[0012] Optionally, the mouse position information storage module is specifically used to: establish a corresponding data storage space according to a preset data structure; set the length of the preset data structure, and the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure; store the mouse position information in the data storage space according to the traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

[0013] Optionally, when the users include at least two users, the mouse movement event acquisition module is specifically used to: when the at least two users enter the interface of the collaborative software product, acquire mouse movement events of the at least two users on the interface of the collaborative software product within a preset time; wherein the mouse movement events are sorted according to timestamps of the at least two users operating the mouse within the preset time.

[0014] In order to solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide a collaborative space information synchronization processing device, including: a data structure receiving module, used to receive a data structure including mouse position information; a second synchronization processing module, used to take out a mouse position information from the data structure according to the traversal method of the data structure, and render it according to the mouse position information, and then take out a mouse position information and render it according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

[0015] To solve the above technical problems, another technical solution adopted in the implementation mode of the present application is: to provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0016] Different from the related art, the embodiments of the present application provide a method, device and electronic device for synchronous processing of collaborative space information. When a user enters the interface of a collaborative software product, the mouse movement event of the user on the interface of the collaborative software product is obtained, and the mouse movement event includes mouse position information; the mouse position information is stored in a preset data structure; when the conditions for triggering the sending of the mouse movement event are met, the mouse position information stored in the data structure is broadcast, so that the receiving end obtains the mouse position information according to the data structure, and renders the mouse trajectory according to the mouse position information. The implementation method of the present application ensures the order and continuity of the data and avoids data loss by storing the mouse position information in a preset data structure; in addition, the mouse position information is broadcast only when the conditions for triggering the sending of the mouse movement event are met, and the frequency of triggering the broadcast data by the sending end is controlled, so as to avoid data loss caused by broadcasting data, and to avoid delays and performance problems caused by excessive data transmission; finally, it can ensure the information synchronization of online collaborative tools and reduce the jamming phenomenon. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0018] Figure 1 This is a schematic diagram of an application environment provided by an embodiment of the present application;

[0019] Figure 2 This is a schematic diagram corresponding to the display screen of the user terminal 102 provided in an embodiment of the present application when used for online collaboration;

[0020] Figure 3 It is a flowchart of a collaborative space information synchronization processing method provided by an embodiment of the present application;

[0021] Figure 4 is a flowchart of a collaborative space information synchronization processing method provided by another embodiment of the present application;

[0022] Figure 5 It is a structural diagram of a collaborative space information synchronization processing device provided in an embodiment of the present application;

[0023] Figure 6 is a structural diagram of a collaborative space information synchronization processing device provided by another embodiment of the present application;

[0024] Figure 7 It is a schematic diagram of the hardware structure of an electronic device for executing the collaborative space information synchronization processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0026] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.

[0027] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0028] Online collaboration refers to the use of network technologies such as the Internet to enable multiple users to collaborate in different locations using computers, mobile devices and other terminal devices. Online collaboration can include many forms, such as online document collaboration, online meeting collaboration, online whiteboard (also known as space drawing board) collaboration, online project management collaboration, etc. Online collaboration is to complete a task or achieve a goal by sharing information, resources and tools. Online collaboration can improve work efficiency, reduce communication costs, and enhance teamwork, and has been widely used in various aspects such as work, study, and social interaction.

[0029] Currently, online collaboration requires user data and information to be stored in the cloud, which may lead to security issues; online collaboration requires users to connect to cloud services through the Internet, and network instability or failure may lead to reduced collaboration efficiency or interruption of collaboration; when multiple users collaborate at the same time, data synchronization and transmission efficiency must be guaranteed, otherwise it will cause freezes, delays and other problems.

[0030] Among them, the data synchronization problem in online collaboration refers to the need to ensure the synchronization and consistency of data when multiple users edit or modify the same data at the same time, that is, the data seen by each user should be the latest, accurate, and conflict-free. In multi-user online collaboration, due to the delay in data transmission and processing between users, the order of data modification between different users may also be different, so problems such as untimely data synchronization and data inconsistency may occur. For example, in online whiteboard collaboration, multiple users draw on the same whiteboard at the same time. If the drawing data of one user is not transmitted to the terminals of other users in time, the whiteboard screen seen by other users will be inconsistent with the actual screen or there will be a freeze.

[0031] Specifically, for example, user A uses the mouse to drag the object on the space canvas to move it to a new location, and performs some editing operations, such as changing the color and size of the object. At this time, user A's terminal will send these operations to the server and update its own screen. However, while user A is moving the object to a new location, user B is also performing mouse operations, such as performing some drawing operations or changing the background color of the canvas. At this time, user B's terminal will send these operations to the server and update its own screen. Due to certain delays in network transmission and processing, the screens seen by user A and user B may be inconsistent, causing data synchronization problems. For example, user A has moved the object to a new location on his terminal, but the screen seen by user B is still the object in its original location, or user A and user B edit the object at the same time, but the order of these operations is different, resulting in inconsistent final results.

[0032] For example, when multiple users perform mouse operations on the same object at the same time, it will cause a jamming phenomenon. When the mouse moves, a mouse event is triggered, and its update frequency is very high. Each update will trigger an IM (Instant Messaging) broadcast, so there is a possibility that the previous broadcast has not been sent out, and the next broadcast has been generated. Because of IM's own protection mechanism, some data will be discarded in this process, resulting in data loss. When the receiver receives the lost data (incomplete coordinate data), the mouse track will jump on the receiver's interface (for example, from position 1 to position 3); when the receiver renders the mouse event, because the rendering frequency of the rendering data is not controlled, it will cause the receiver to see the mouse movement jam.

[0033] The delay and inconsistency of the above data synchronization will affect the collaboration efficiency and user experience. Therefore, the inventor provides a collaborative space information synchronization processing method, which mainly optimizes the transmission mode to ensure data coherence and no loss; and uses rendering optimization technology to improve rendering efficiency and reduce jamming.

[0034] See also Figure 1 , Figure 1 Schematic diagram of an application environment provided by an embodiment of the present application. The method and device for synchronous processing of collaborative space information in an embodiment of the present application can be applied to the application environment. Figure 1As shown, the application environment includes a server 101 and a user terminal 102. The server 101 is the core device for online collaboration, responsible for storing and processing user data, coordinating collaborative operations between users, and providing interfaces for the collaboration platform. The server 101 has powerful computing and storage capabilities to meet the needs of multiple users to collaborate simultaneously. The user terminal 102 includes at least one, which generally refers to a terminal device such as a computer or mobile device used by a user, which is used to communicate with the server 101, send and receive data, and perform collaborative operations. The user terminal 102 needs to have a good network connection, an efficient operating system, and software support such as a browser to ensure collaboration efficiency and user experience.

[0035] In addition to the server 101 and the user terminal 102, other hardware devices such as network routers and switches may also be included to build the infrastructure of the collaborative network. These devices need to be able to provide stable network connections and high-speed data transmission capabilities to ensure the quality and efficiency of collaboration.

[0036] The user interface of the user terminal 102 can be used to display the space interface corresponding to the collaborative space. Figure 2 As shown, for example, an online whiteboard application supports multiple users to collaborate in the same space. Users can draw graphics, add text, upload pictures, etc. on the whiteboard, and other users can see these operations in real time and interact and modify them accordingly. When multiple users are collaborating, the terminal display screen of each user includes: space name, user information, whiteboard screen, mouse, chat window, etc. Among them, the space name is used to distinguish different collaboration scenarios; user information includes information of the current online user, which may include user avatar, nickname and other information; the whiteboard screen can be used for drawing, text editing, picture uploading and other operations, and other users can see these operations in real time and interact and modify them accordingly; the mouse is the mouse symbol of the current online user, which can be displayed in the whiteboard screen, and the current user can see the mouse symbols of other online users, and each mouse symbol can correspond to the nickname of the corresponding user; the chat window is used to send and receive messages such as text, emoticons, and files, and users can discuss and communicate in the chat window to better collaborate.

[0037] For the above-mentioned online whiteboard application, the server 101 can store all the operation data performed by the user on the whiteboard, including drawing, text editing, picture uploading and other operations. These data need to be synchronized to other users' terminals in a timely manner to ensure the efficiency and consistency of collaboration. In addition, the server 101 can also manage the information of all online users, including the user's login, logout, permission control, etc. The server 101 can also provide network communication services to ensure data transmission and communication between the user terminal 102 and the server 101. The server 101 can also optimize the performance during the collaboration process, including reducing network delays, reducing server loads, and improving data transmission efficiency.

[0038] In the embodiment of the present application, the user terminal 102 includes a sending end and a receiving end. The users corresponding to the sending end and the receiving end all enter the same collaborative software product. The user who triggers the mouse movement event can be the sending end, and the users who have entered the collaborative software product can be the receiving end. The sending end is used to: when the user enters the interface of the collaborative software product, obtain the mouse movement event of the user on the interface of the collaborative software product, and the mouse movement event includes the mouse position information; store the mouse position information in a preset data structure; when the condition for triggering the sending of the mouse movement event is met, broadcast the mouse position information stored in the data structure, so that the receiving end obtains the mouse position information according to the data structure, and renders the mouse trajectory according to the mouse position information. The receiving end is used to: receive the data structure including the mouse position information; according to the traversal method of the data structure, take out a piece of mouse position information from the data structure, and render it according to the mouse position information, and then take out another piece of mouse position information and render it according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information. The server 101 may serve as a data transmission medium to transmit data from a sending end to a receiving end.

[0039] Above Figure 1 and Figure 2 This is an example of an application environment provided by the embodiment of the present application. It should be noted that the collaborative space information synchronization processing method and device of the embodiment of the present application can also be applied to other application environments, not limited to Figure 1 and Figure 2 .

[0040] See also Figure 3 , Figure 3 : is a flowchart of a collaborative space information synchronization processing method provided by an embodiment of the present application. The method can be executed by the above-mentioned sending end, and the method includes:

[0041] S11. When a user enters an interface of a collaborative software product, a mouse movement event of the user on the interface of the collaborative software product is obtained, where the mouse movement event includes mouse position information.

[0042] For example, when a user connects to the interface of a cloud-based collaborative software product deployed on the server 101 through the Internet, after the interface of the cloud-based collaborative software product is started and initialized, the relative position coordinates of the user's mouse in the interface of the cloud-based collaborative software product are immediately obtained. For example, taking the upper left corner of the interface of the cloud-based collaborative software product as the origin, the horizontal axis to the right and the vertical axis downward are positive directions, and the horizontal axis to the left and the vertical axis upward are negative directions. The relative position coordinates of the user's mouse in the interface of the collaborative software product are obtained as (30, 40). The minimum measurement units of the horizontal axis and the vertical axis can be flexibly set according to actual application scenarios and application requirements. For example, the minimum measurement unit is set to 1 pixel. As the user continues to move the mouse in the interface of the collaborative software product, the relative position of the user's mouse is continuously recorded, thereby forming a mouse movement event.

[0043] Furthermore, when the user includes at least two users, at least one mouse mark is displayed on the interface of the collaborative software product, that is, the number of mouse marks displayed on the interface of the collaborative software product is one less than the number of users. Furthermore, when the user enters the interface of the collaborative software product, the mouse movement event of the user on the interface of the collaborative software product is obtained, including: when the at least two users enter the interface of the collaborative software product, the mouse movement events of the at least two users on the interface of the collaborative software product within a preset time are obtained. The preset time can be flexibly set according to machine configuration, network bandwidth, actual network speed, application scenario, etc. For example, the preset time can be shortened in an environment with high machine hardware configuration and large network bandwidth, and the preset time can be increased in an environment with low machine hardware configuration and small network bandwidth. The mouse movement events are sorted according to the timestamps of the at least two users operating the mouse within the preset time.

[0044] S12: storing the mouse position information in a preset data structure.

[0045] Specifically, first, a corresponding data storage space is established according to a preset data structure, and the data structure may be an array, a linked list, a stack, a queue, a tree, a graph, a hash table, etc. For example, in a more specific embodiment, a queue data structure is selected to establish a corresponding data storage space, then the mouse movement event obtained first in time logic will be stored at the head of the queue, and the mouse movement event obtained later in time logic will be stored at the tail of the queue, the first element of the queue is the first mouse movement event obtained, and the last element of the queue is the mouse movement event obtained most recently at the current time. Then, the length of the preset data structure is set, and the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure, that is, the number of mouse movement events obtained on the interface of the collaborative software product within the preset time. On the one hand, it is limited by factors such as the machine hardware performance and data transmission network bandwidth, such as the machine's graphics rendering capability, and the upper limit of the mouse movement events obtained within the preset time needs to be limited. On the other hand, it is limited by factors such as the human eye's perception of the page refresh rate. For example, when the page refresh rate is lower than a certain value, the human eye will feel that the page is stuck, and the lower limit of the mouse movement events obtained within the preset time needs to be limited. Finally, the mouse position information is stored in the data storage space according to the traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

[0046] S13. When the condition for triggering the sending of the mouse movement event is met, broadcast the mouse position information stored in the data structure, so that the receiving end obtains the mouse position information according to the data structure and renders the mouse trajectory according to the mouse position information.

[0047] The conditions for triggering the sending of the mouse movement event include: the amount of mouse position information stored in the preset data structure is greater than a preset threshold; or the interval time meets the data clearing time corresponding to the data structure.

[0048] Specifically, when a new mouse movement event is obtained, an application is made to store the new mouse movement event in the storage space of the data structure. If the storage space of the data structure is full at this time, that is, the preset threshold of the storage space of the data structure is reached, the condition for triggering the sending of the mouse movement event is met. In addition, there may be a situation where the mouse movement event fails to be obtained. In this case, it is necessary to determine whether the condition for triggering the sending of the mouse movement event is met according to the preset time, that is, when the time counting within the preset time ends, the sending of the mouse movement event will also be triggered. When the preset time counting ends, all mouse movement events in the storage space of the data structure will be sent, and then the storage space of the data structure will be cleared to wait for new mouse movement events to be stored. For example, in a more specific embodiment, it is set to obtain the mouse movement event within 1 second, and the maximum length of the queue data structure storing the mouse movement event is 60, that is, when the 1-second timing ends or the mouse movement events stored in the queue data structure are greater than 60, all mouse movement events stored in the queue data structure will be sent, and then the storage space of the queue data structure will be cleared and the timing will start again.

[0049] The embodiment of the present application provides a method for synchronizing collaborative space information. The method stores the mouse position information in a preset data structure, thereby ensuring the order and coherence of the data and avoiding data loss; in addition, the mouse position information is broadcast only when the conditions for triggering the sending of the mouse movement event are met, and the frequency of triggering the broadcast data by the sender is controlled, thereby avoiding data loss caused by broadcasting data, and avoiding delays and performance problems caused by excessive data transmission; finally, the information synchronization of online collaborative tools can be ensured, and the jamming phenomenon is reduced.

[0050] See also Figure 4 , Figure 4 is another flow chart of a collaborative space information synchronization processing method provided by an embodiment of the present application. The method can be executed by the above-mentioned user terminal 102, and the method includes:

[0051] S21. Receive a data structure including mouse position information.

[0052] The mouse position information is stored in the data structure. The sending end broadcasts the data structure containing the mouse position information, and the receiving end receives the data structure, thereby obtaining a certain amount of mouse position information.

[0053] S22. According to the traversal method of the data structure, a piece of mouse position information is taken out from the data structure, and rendering is performed according to the mouse position information. Then, another piece of mouse position information is taken out and rendering is performed according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

[0054] In this embodiment, the mouse position information is taken out one by one from the above-mentioned received data structure, and each time a piece of mouse position information is taken out, it is rendered. The mouse position information can be rendered through the browser built-in API requestAnimationFrame of the collaborative software product kernel, and the rendering time of each frame is controlled within a preset time, such as controlling the rendering time of one frame within 16ms, so as to ensure smoothness and coherence of the data.

[0055] There are also differences in the rendering processing methods for the receiving end of different operating systems. For example, the graphics library used for rendering in the Windows operating system is DirectX, while the graphics library used for rendering in the macOS operating system is Quartz. Moreover, different graphics libraries can be used for rendering even on the same operating system. Furthermore, in addition to using the CPU for rendering in general, the GPU can also be used to work together to accelerate the rendering and improve the quality of the mouse trajectory rendering.

[0056] The collaborative space information synchronization processing method provided in the embodiment of the present application receives the mouse position information stored in a data structure, and the data structure limits the amount of stored mouse position information. Then, each piece of data is taken out from the data structure one by one and rendered separately, and the rendering time is also controlled during the rendering process. Since the mouse position information is stored in the data structure, the order and continuity of the data are guaranteed, and data loss can be avoided; since the rendering time node is controlled and the rendering is performed one by one, the smoothness and continuity of the data are guaranteed.

[0057] See also Figure 5 , Figure 5 3 is a schematic diagram of a structure of a collaborative space information synchronization processing device provided in an embodiment of the present application. The collaborative space information synchronization processing device 30 comprises: a mouse movement event acquisition module 31 , a mouse position information storage module 32 and a first synchronization processing module 33 .

[0058] The mouse movement event acquisition module 31 is used to acquire the mouse movement event of the user on the interface of the collaborative software product when the user enters the interface of the collaborative software product, and the mouse movement event includes mouse position information; the mouse position information storage module 32 is used to store the mouse position information in a preset data structure; the first synchronization processing module 33 is used to broadcast the mouse position information stored in the data structure when the conditions for triggering the sending of the mouse movement event are met, so that the receiving end acquires the mouse position information according to the data structure and renders the mouse trajectory according to the mouse position information.

[0059] The conditions for triggering the sending of the mouse movement event include: the amount of mouse position information stored in the preset data structure is greater than a preset threshold; or the interval time meets the data clearing time corresponding to the data structure.

[0060] Among them, the mouse position information storage module 32 is specifically used to: establish its corresponding data storage space according to a preset data structure; set the length of the preset data structure, and the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure; store the mouse position information in the data storage space according to the traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

[0061] When the users include at least two users, the mouse movement event acquisition module 31 is specifically used to: when the at least two users enter the interface of the collaborative software product, acquire the mouse movement events of the at least two users on the interface of the collaborative software product within a preset time; wherein the mouse movement events are sorted according to the timestamps of the at least two users operating the mouse within the preset time.

[0062] See also Figure 6 , Figure 6 4 is another structural diagram of a collaborative space information synchronization processing device provided in an embodiment of the present application. The collaborative space information synchronization processing device 40 comprises: a data structure receiving module 41 and a second synchronization processing module 42.

[0063] The data structure receiving module 41 is used to receive a data structure including mouse position information; the second synchronization processing module 42 is used to take out a piece of mouse position information from the data structure according to the traversal method of the data structure, and render it according to the mouse position information, and then take out another piece of mouse position information and render it according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

[0064] It should be noted that the above-mentioned collaborative space information synchronization processing device can execute the collaborative space information synchronization processing method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the collaborative space information synchronization processing device, please refer to the collaborative space information synchronization processing method provided in the embodiment of the present application.

[0065] Figure 7 is a schematic diagram of the hardware structure of an electronic device 50 provided in an embodiment of the present application, such as Figure 7 As shown, the electronic device 50 includes: one or more processors 51 and a memory 52, Figure 7 A processor 51 is taken as an example.

[0066] The processor 51 and the memory 52 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0067] The memory 52 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the collaborative space information synchronization processing method in the embodiment of the present application. The processor 51 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 52, that is, realizing the collaborative space information synchronization processing method in the above method embodiment.

[0068] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the collaborative space information synchronization processing device, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the collaborative space information synchronization processing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0069] The one or more modules are stored in the memory 52, and when executed by the one or more processors 51, execute the collaborative space information synchronization processing method in any of the above method embodiments, for example, execute the above described Figure 3 Steps S11 to S13 of the method, Figure 4 Steps S21 to S22 of the method are implemented Figure 5The functions and implementation of modules 31-33 in Figure 6 The functions of modules 41-42 in.

[0070] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0071] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to: mobile terminals, personal computers and other electronic devices with data interaction functions.

[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0073] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for synchronously processing collaborative space information, characterized in that: include: When the user enters the interface of the collaborative software product, obtaining a mouse movement event of the user on the interface of the collaborative software product, wherein the mouse movement event includes mouse position information; Storing the mouse position information in a preset data structure; When the condition for triggering the sending of the mouse movement event is met, the mouse position information stored in the data structure is broadcasted, so that the receiving end obtains the mouse position information according to the data structure and renders the mouse track according to the mouse position information.

2. The method according to claim 1, characterized in that The conditions satisfying the triggering of sending the mouse movement event include: The amount of mouse position information stored in the preset data structure is greater than a preset threshold; or, The interval time satisfies the data clearing time corresponding to the data structure.

3. The method according to claim 1, characterized in that The storing the mouse position information into a preset data structure comprises: Establishing the corresponding data storage space according to the preset data structure; Setting the length of the preset data structure, wherein the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure; The mouse position information is stored in the data storage space according to the traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

4. The method according to any one of claims 1 to 3, characterized in that: When the user includes at least two users, when the user enters the interface of the collaborative software product, obtaining a mouse movement event of the user on the interface of the collaborative software product includes: When the at least two users enter the interface of the collaborative software product, obtaining mouse movement events of the at least two users on the interface of the collaborative software product within a preset time; The mouse movement events are sorted according to timestamps of the at least two users operating the mouse within the preset time.

5. A collaborative space information synchronization processing method, characterized in that: include: Receive a data structure including mouse position information; According to the traversal method of the data structure, a piece of mouse position information is taken out from the data structure and rendered according to the mouse position information, and then another piece of mouse position information is taken out and rendered according to the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

6. A collaborative space information synchronization processing device, characterized in that: include: A mouse movement event acquisition module, used for acquiring a mouse movement event of the user on the interface of the collaborative software product when the user enters the interface of the collaborative software product, wherein the mouse movement event includes mouse position information; A mouse position information storage module, used for storing the mouse position information in a preset data structure; The first synchronization processing module is used to broadcast the mouse position information stored in the data structure when the conditions for triggering the sending of the mouse movement event are met, so that the receiving end obtains the mouse position information according to the data structure and renders the mouse trajectory according to the mouse position information.

7. The device according to claim 6, characterized in that The conditions satisfying the triggering of sending the mouse movement event include: The amount of mouse position information stored in the preset data structure is greater than a preset threshold; or, The interval time satisfies the data clearing time corresponding to the data structure.

8. The device according to claim 6, characterized in that The mouse position information storage module is specifically used for: Establishing the corresponding data storage space according to the preset data structure; Setting the length of the preset data structure, wherein the length is used to limit the maximum capacity of the mouse position information stored in the preset data structure; The mouse position information is stored in the data storage space according to the traversal method corresponding to the preset data structure, and the capacity of the stored mouse position information does not exceed the maximum capacity.

9. The device according to any one of claims 6 to 8, characterized in that When the user includes at least two users, the mouse movement event acquisition module is specifically used for: When the at least two users enter the interface of the collaborative software product, obtaining mouse movement events of the at least two users on the interface of the collaborative software product within a preset time; The mouse movement events are sorted according to timestamps of the at least two users operating the mouse within the preset time.

10. A collaborative space information synchronization processing device, characterized in that: include: A data structure receiving module, used for receiving a data structure including mouse position information; The second synchronization processing module is used to take out a piece of mouse position information from the data structure according to the traversal method of the data structure, and perform rendering processing based on the mouse position information, and then take out another piece of mouse position information and perform rendering processing based on the mouse position information, until all the mouse position information is taken out from the data structure and all the mouse position information is rendered, so as to obtain the mouse trajectory corresponding to the mouse position information.

11. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.