WO2023020091A1 - 数据处理方法及装置 - Google Patents

数据处理方法及装置 Download PDF

Info

Publication number
WO2023020091A1
WO2023020091A1 PCT/CN2022/099263 CN2022099263W WO2023020091A1 WO 2023020091 A1 WO2023020091 A1 WO 2023020091A1 CN 2022099263 W CN2022099263 W CN 2022099263W WO 2023020091 A1 WO2023020091 A1 WO 2023020091A1
Authority
WO
WIPO (PCT)
Prior art keywords
draft
information
editing
story
responded
Prior art date
Application number
PCT/CN2022/099263
Other languages
English (en)
French (fr)
Inventor
曹翔
周天鹏
黄雅勤
王浩然
Original Assignee
上海幻电信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海幻电信息科技有限公司 filed Critical 上海幻电信息科技有限公司
Publication of WO2023020091A1 publication Critical patent/WO2023020091A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • This application relates to the field of Internet technology, and in particular to a data processing method.
  • the present application also relates to a data processing device, a computing device, a computer-readable storage medium and a computer program.
  • Multi-person collaborative documents improve office efficiency through collaboration, but there is a lack of a collaboration method for real-time collaboration to edit videos and finally output the edited video.
  • the embodiment of the present application provides a data processing method.
  • the present application also relates to a data processing device, a computing device, a computer-readable storage medium and a computer program, so as to solve the problem in the prior art that there is no data processing method for multiple people to edit data in real time.
  • a data processing method applied to a server including:
  • the draft information edits the initial draft of the story to obtain the initial revised draft of the story
  • a data processing method applied to a client including:
  • a client draft is generated based on the draft modification information and the initial story draft.
  • a data processing device applied to a server including:
  • an adding module configured to receive draft editing requests sent by at least two clients for the initial story draft, and add the draft editing requests sent by each client to a draft editing queue
  • An extracting module configured to extract a first draft editing request of the first client for the initial story draft from the draft editing queue, and acquire first draft information to be responded to in the first draft editing request, based on The first draft information to be responded edits the initial story draft to obtain an initial revised story draft;
  • the first generation module is configured to extract a second draft editing request from the second client for the initial story draft from the draft editing queue, and acquire second pending draft information in the second draft editing request , generating draft information to be responded to according to the first draft information to be responded to and the second draft information to be responded to;
  • the first editing module is configured to edit the initial revised story draft based on the response draft information to obtain a target story draft.
  • a data processing device applied to a client including:
  • a receiving module configured to receive the initial story draft sent by the server
  • the second editing module is configured to edit the initial story draft in response to a draft editing request, and obtain draft information to be submitted;
  • a submission module configured to submit the draft information to be submitted to the server in response to the information submission request, and obtain the draft information to be responded to;
  • the determination module is configured to determine that the draft information to be responded is draft modification information when receiving the response information returned by the server;
  • a second generating module configured to generate a client draft based on the draft modification information and the initial story draft.
  • a computing device including a memory, a processor, and computer instructions stored in the memory and operable on the processor, and the processor implements the computer instructions when executing the computer instructions. The steps of the data processing method described above.
  • a computer-readable storage medium which stores computer instructions, and implements the steps of the data processing method when the computer instructions are executed by a processor.
  • a computer program wherein, when the computer program is executed in a computer, it causes the computer to execute the steps of the above data processing method.
  • the data processing method provided by the present application receives draft editing requests sent by at least two clients for the initial story draft, and adds the draft editing requests sent by each client to the draft editing queue; extracts from the draft editing queue
  • the first client makes a first draft editing request for the initial draft of the story, obtains first draft information to be responded to in the first draft editing request, and edits the initial draft story based on the first draft information to be responded to.
  • the draft editing requests are processed according to the order in which the draft editing requests are received; Make further edits; by responding to the draft editing requests of different clients for the initial story draft in the order in the draft editing queue, and filtering the draft information for the same attribute in the draft information to be responded by different clients, avoiding real-time editing of the draft Conflicts that occur during modification enable efficient processing of draft editing information sent by multiple people in real time.
  • FIG. 1 is a flowchart of a data processing method applied to a server provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a data processing method applied to a client provided by an embodiment of the present application
  • Fig. 3 is a schematic diagram of client data storage provided by an embodiment of the present application.
  • FIG. 4a is a flow chart of a data processing method applied to the client 5 provided by an embodiment of the present application.
  • FIG. 4b is a schematic flowchart of a data processing method applied to the client 5 provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a data processing device applied to a server provided by an embodiment of the present application
  • FIG. 6 is a schematic structural diagram of a data processing device applied to a client provided by an embodiment of the present application.
  • Fig. 7 is a structural block diagram of a computing device provided by an embodiment of the present application.
  • first, second, etc. may be used to describe various information in one or more embodiments of the present application, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second, and similarly, second may also be referred to as first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
  • JSON JSON is a data format widely used in WEB application development. It stores data in the form of key-value pairs, and current mainstream programming languages support the generation and analysis of data in JSON format. JSON is widely used in scenarios such as data exchange and storage.
  • Diff is an algorithm for comparing two files and outputting the difference. Usually the output difference file extension is .patch.
  • Patch refers to the file difference information generated by the diff algorithm.
  • a data structure named Patch is defined to describe this difference.
  • a data processing method is provided.
  • the present application also relates to a data processing device, a computing device, a computer-readable storage medium and a computer program, which are described in detail in the following embodiments one by one.
  • Fig. 1 shows a flow chart of a data processing method applied to a server according to an embodiment of the present application, which specifically includes the following steps:
  • Step 102 Receive draft editing requests sent by at least two clients for the initial story draft, and add the draft editing requests sent by each client to a draft editing queue.
  • the client refers to the terminal device where the user edits the initial story draft;
  • the initial story draft refers to the story draft saved in the current server, and the story draft is the data structure of the storyboard video editor;
  • the draft editing request refers to the initial story draft A request to edit a draft;
  • the draft editing queue refers to the queue that saves the draft editing requests sent by the client.
  • the server receives the draft editing requests for the target story draft sent by multiple clients, and sequentially stores the draft editing requests of each client into the draft editing queue according to the order in which the server receives the draft editing requests.
  • the server adds the received draft editing instructions to the draft editing queue, so that it is convenient to determine which modifications and the order of modification to the initial story draft based on the draft editing requests in the draft editing queue.
  • draft editing requests sent by at least two clients for the initial story draft are received, and the draft editing requests sent by each client are added to the draft editing queue, including:
  • the request time point refers to the time point when the server receives the draft editing request. Obtain the request time point when the server receives the draft editing request sent by each client, and add the draft editing request received by the server to the draft editing queue based on the request time point.
  • the server receives the draft editing request for draft A sent by each client, and records the time point when each draft editing request is received, such as receiving client 1 for draft A
  • the time point of the draft editing request is 2:3:15 seconds
  • the time point of receiving the draft editing request from client 2 for draft A is 2:03:14 seconds
  • first send the The draft editing request for draft A is added to the draft editing queue
  • the draft editing request for draft A sent by client 1 is added to the draft editing queue.
  • Step 104 Extract the first draft editing request of the first client for the initial story draft from the draft editing queue, and obtain the first pending draft information in the first draft editing request, based on the first draft editing request Upon editing the initial story draft in response to the draft information, an initial revised story draft is obtained.
  • the first client refers to the client that has a draft editing request for the initial story draft, and is one of the clients among the multiple clients that have a draft editing request for the initial story draft;
  • the first draft editing request refers to The request sent by the first client to edit the initial draft of the story;
  • the first draft information to be responded refers to the information on editing the initial draft of the story obtained from the first draft editing request;
  • the initial revision of the draft of the story refers to the A draft obtained by making changes to an initial draft story in response to a draft message.
  • the draft editing queue contains draft editing information for the initial story draft
  • the draft editing information for the initial story draft is sequentially acquired in the draft editing queue, and after obtaining the first draft of the initial story draft sent by the first client,
  • extract the first draft information to be responded to in the first draft editing request and modify the initial story draft according to the information of the first draft to be responded to, for example, add a draft to the initial story draft, delete a draft, etc.; based on
  • the draft editing request of the client 3 for draft B is extracted from the draft editing queue, and the draft editing information in the draft editing request is obtained. Draft B is edited, and the edited draft B is obtained.
  • Step 106 Extract the second client's second draft editing request for the initial story draft from the draft editing queue, and obtain the second pending draft information in the second draft editing request, according to the first The first draft information to be responded to and the second draft information to be responded to generate draft information to be responded to.
  • the second client refers to a client that has a draft editing request for the initial story draft, and is a client other than the first client among multiple clients that have a draft editing request for the initial story draft;
  • the editing request refers to the request sent by the second client to edit the initial story draft;
  • the second draft information to be responded refers to the request to edit the initial story draft obtained from the second draft editing request;
  • the draft information to be responded refers to Information obtained according to the first draft information to be responded to and the second draft information to be responded to.
  • the above example is used to extract the draft editing request of the client 4 for draft B from the draft editing queue, and extract the draft editing information in the draft editing request; obtain the draft editing information of the client 3 for draft B
  • the draft editing information in the request is based on the draft editing information in the draft editing request of the client 3 for draft B and the draft editing information of the draft editing request of the client 4 for draft B to obtain the draft information to be responded.
  • a specific method for generating draft information to be responded to includes:
  • the preset conflict strategy refers to a strategy for processing conflict information occurring in the first draft information to be responded to and the second draft information to be responded to, for example, the preset conflict strategy is to determine the first draft information to be responded to and the second draft information to be responded to The same attribute parameter or different attribute parameters in the message.
  • the target attribute parameters in the second draft information to be responded are screened to facilitate subsequent further processing of the second draft information to be responded to.
  • the second draft information to be responded is filtered to obtain the draft information to be responded to, including:
  • the target attribute parameter refers to a parameter of an attribute that conflicts between the first draft information to be responded to and the second draft information to be responded to;
  • the draft information corresponding to the target attribute parameter refers to a parameter value corresponding to the target attribute parameter.
  • the preset conflict strategy determine the same target attribute parameters in the first draft information to be responded to and in the second draft information to be responded to, delete the draft information corresponding to the target attribute parameters in the second draft information to be responded to, and obtain the attributes to be responded to information.
  • the version number corresponding to the initial story draft is V1
  • the information in the initial story draft is shown in Table 1 below.
  • the server receives the pending response message 1 and the pending response message 2 sent by the two clients.
  • the receiving time of the pending response message 1 is T1
  • the receiving time of the pending response message 2 is T2.
  • T1 is earlier than T2.
  • the information to be responded to 1 modifies the title of the first shot and the title of the second shot
  • the information to be responded to 2 modifies the title of the first shot and the target information of the first shot.
  • the default conflict strategy is to determine the same target attribute parameter in the information to be responded to 1 and the information to be responded to in 2, then the target attribute parameter can be determined to be "the title of the first scene".
  • the server first receives the pending response information 1, and based on the pending response information 1, modifies the initial story draft V1, and obtains the initial revised story draft V2, as shown in Table 3 below.
  • the modification of the information to be responded to 2 is based on the initial story draft of the V1 version, and the information to be responded to 2 has modified the title of the first scene and the description information of the first scene in the initial story draft of the V1 version.
  • the title of the first shot is different in the V2 version and the V1 version, and the description information of the first shot is the same in the V2 version and the V1 version, then reject the modification of the title of the first shot in the pending response information 2 , receive the modification of the description information of the first scene in the information to be responded to 2, that is, delete the draft editing information "playground" of the title of the first shot in the information to be responded to 2, and obtain the modified information to be responded to 2;
  • the modified to-be-response information 2 including the description information of the first shot "there are many people in motion on the playground" is used as the to-be-response information after deleting the draft information corresponding to the same attribute parameter.
  • the second The screening of the draft information to be responded facilitates further modification of the draft based on the draft information to be responded obtained through screening, and avoids conflicts of requests.
  • Step 108 Edit the initial revised story draft based on the pending response draft information to obtain a target story draft.
  • the draft information to be responded to refers to the information obtained based on the first draft information to be responded to and the second draft information to be responded to to edit the initial revised story draft;
  • the target story draft refers to editing the initial revised story draft according to the draft information to be responded Edit the obtained draft.
  • the initial modification information edited according to the first information to be responded to is edited based on the information to be responded to, to obtain a draft target story.
  • the initial revised story draft is edited based on the information to be responded to that includes the description information of the first shot "many people are moving on the playground", and the target story draft V3 is obtained.
  • the target story draft V3 is obtained, as shown in Table 4 below.
  • the initial revised story draft is further revised through the obtained draft information to be responded, so as to deal with the conflict situation when different users process the same attribute, and realize the real-time collaboration of multiple people to edit the draft.
  • the method before receiving at least two draft editing requests sent by clients for the initial story draft, the method further includes:
  • An initial draft story is sent to the at least two clients based on the communication connection.
  • the server in order to realize the real-time synchronization of draft editing information between the client and the server, the server first establishes a communication connection with the client that has an editing request for the initial story draft, and based on the established communication connection, the information between the client and the server is updated. Real-time two-way transmission, so as to realize real-time synchronization of information. After the server receives the draft editing request for the initial story draft sent by the client, the server transmits the initial story draft of the current version of the server to the client that sent the draft editing request through the communication connection.
  • the real-time two-way transmission of data between the server and the client can be realized, thereby realizing the real-time synchronization of the draft version between the server and the client.
  • the draft information to be responded generated by the server can be sent to the client based on the established communication connection. That is, after obtaining the target story draft, the data processing method of this application also includes:
  • the server receives the draft editing information of the client and updates the draft of the server based on the draft editing information
  • the draft will be updated in the process of
  • the obtained draft information to be responded is transmitted and synchronized to other clients through the communication connection, so that the client can further modify the latest version of the draft.
  • the real-time transmission of the draft information to be responded is realized, thereby realizing the effect of multiple people editing the draft in real time.
  • the data processing method of the present application realizes processing the draft editing requests according to the order in which the draft editing requests are received; by obtaining the draft information to be responded to in the draft editing requests, further editing of the initial story draft is realized; by combining different clients
  • the draft editing request of the initial story draft is responded to in the order in the draft editing queue, and the draft information for the same attribute is screened out from the draft information to be responded to by different clients, which avoids the conflict that occurs when the draft is modified in real time, and realizes Efficiently process draft editing information sent by multiple people in real time.
  • FIG. 2 shows a flow chart of a data processing method applied to a client according to an embodiment of the present application, which specifically includes the following steps:
  • Step 202 Receive the initial story draft sent by the server.
  • the client includes storage spaces A, X, and Y as an example, wherein, the draft data stored in the storage space A is the synchronized draft data between the client and the server, and the stored data in the storage space X is the draft data that has been synchronized.
  • the draft data submitted to the server has not received a response from the server, and the storage space Y stores draft information that has been locally modified but not submitted to the server.
  • FIG. 3 is a schematic diagram of client data storage provided by a specific embodiment of the present application. The client receives the initial story draft sent by the server and stores it in storage space A.
  • the method further includes:
  • the storyboard draft editor refers to a draft editor with storyboard functions. You can plan and design a storyboard in the storyboard editor, and shoot corresponding material resources based on the storyboard. Upload the initial story draft to the storyboard draft editor, and edit the initial story draft based on the designed storyboard structure in the draft editor's scenes, shots, and other structures.
  • Step 204 Edit the initial story draft in response to the draft editing request, and obtain draft information to be submitted.
  • the draft editing request refers to a request for editing the initial story draft
  • the draft information to be submitted refers to the draft editing information generated during the process of editing the initial story draft.
  • the client receives the editing request for the initial story draft and edits the initial story draft; during the process of editing the initial story draft, the draft editing information for the initial story draft is generated. Draft information pending submission.
  • the client receives a draft editing request for the initial story draft, and edits the initial story draft;
  • the edited draft information data1 is shown as b in FIG. 3 , and the draft information data1 to be submitted is stored in the storage space Y of the client.
  • the draft to be submitted refers to a draft obtained after editing the initial story draft;
  • the difference information refers to different draft editing information between the draft to be submitted and the initial story draft.
  • the initial story draft is edited in response to the draft editing request to generate a draft to be submitted; the initial story draft and the draft to be submitted are obtained, and the difference between the initial story draft and the draft to be submitted is calculated by a diff algorithm or other algorithms that can achieve the same effect Difference information patch.
  • Step 206 In response to the information submission request, submit the draft information to be submitted to the server, and obtain the draft information to be responded to.
  • an information submission request is generated, and in response to the information submission request, the information of the draft to be submitted is uploaded to the server.
  • the above example is used to receive the information submission request and upload the information to be submitted to the server. At this time, the server has not responded to the submission request. As shown in c in Figure 3, the information to be submitted The draft information data1 is merged from the storage space Y to the storage space X, and the storage space Y is cleared.
  • the method for submitting the draft information to be submitted to the server includes:
  • the information of the draft to be submitted is transmitted to the server.
  • the draft information to be submitted generated by the client can be synchronized to the server in real time through the communication connection.
  • Step 208 When receiving the response information returned by the server, determine that the draft information to be responded is draft modification information.
  • the server After the server responds to the draft information to be responded, it will return information of a successful response; after the draft information to be responded to is successfully responded, the draft information to be responded to successfully is used as the draft modification information.
  • Step 210 Generate a client story draft based on the draft modification information and the initial story draft.
  • the client draft refers to a draft obtained by modifying an initial story draft.
  • the client After the client determines the draft modification information, it modifies the initial story draft based on the determined draft modification information, and obtains the client draft after the modification of the initial story draft is completed.
  • the server can receive draft editing instructions sent by other clients to modify the initial story draft contained in the server. To modify, you need to edit the command based on the draft.
  • the specific methods include:
  • the initial story draft is updated based on the pending response draft information.
  • the client After the client receives the initial story draft, it receives the draft modification information server data of other clients sent by the server, as shown in e in Figure 3, and the draft modification information server data is merged into storage space A.
  • the data processing method of this application obtains the draft information to be submitted generated during the draft editing process, uploads the draft information to the server, and realizes synchronizing the draft editing information of the client to the server, so that the server can edit the submitted draft information. Process and synchronize to other clients to realize real-time collaboration among multiple people to edit drafts.
  • Fig. 4a shows a processing flow chart of a data processing method applied to the client 5 provided by an embodiment of the present application
  • Fig. 4b shows a processing flow diagram of a data processing method applied to the client 5 provided by an embodiment of the present application
  • Step 402 Edit the initial draft of the story, and obtain the draft to be submitted.
  • the client 5 receives the initial story draft sent by the server and uploads it to the storyboard draft editor.
  • the draft editing room G includes ⁇ client 3, client 4, client 5 ⁇ three clients that have editing requests for the initial story draft.
  • the user uses the client 5 to edit the initial story draft in the storyboard editor, including modifying the draft structure, and obtains the edited initial story draft as a draft to be submitted.
  • the main editor module will modify the draft structure of the initial story draft
  • the operation is synchronized to the draft to be submitted and synchronized to the draft management module.
  • Step 404 Calculate the difference information between the initial story draft and the draft to be submitted.
  • the draft management module includes the initial story draft and the draft to be submitted; the draft management module synchronizes the draft to be submitted to the Diff module, and uses the diff algorithm to calculate the difference between the initial story draft and the draft to be submitted Information patch, that is, what editing operations are performed on the initial draft of the story to get the draft to be submitted.
  • Step 406 Send the difference information to the synchronization management module.
  • the difference information patch obtained by using the diff algorithm is sent to the synchronization management module for synchronizing the current draft of the client 5, and storing it as the draft information to be responded to The client, before receiving the submission request, w is in the status of pending submission.
  • Step 408 Send the difference information to the server based on the communication connection.
  • the difference information is sent to the server based on the communication connection established between the server and the client 5, specifically, the difference information is encapsulated and sent to the server according to the http protocol.
  • Step 410 The server receives the difference information and distributes it to the corresponding draft editing room.
  • the processing module in the server receives the difference information, and distributes the received difference information to the draft editing room G corresponding to the difference information.
  • Step 412 Merge the received difference information to obtain merged edit information.
  • the server will receive the difference information sent by the client 3, the client 4, and the client 5. If there is a conflict between the difference information, the Room management collaboration module will respond to the conflict. Processing, that is, merging the difference information of the single thread. For example, client 4 and client 5 have made different modifications to the same attribute in the initial story draft, and it is determined that it is a conflict. At this time, the server processes the first The submitted difference information is the difference information submitted by the client 5, and the modification of the same attribute in the difference information of the client 4 is rejected, so as to obtain the merged edit information.
  • Step 414 Edit the initial revised story draft based on the merged edit information.
  • the initial story draft is processed to obtain the initial revised story draft;
  • the draft is further modified to complete the response to the difference information submitted by client 5 and client 4.
  • Step 416 Return the merging information to the client based on the communication connection.
  • Step 418 Synchronize the merged editing information to other clients.
  • the merge editing information is synchronized to the client 3 and the client 4 located in the same draft editing room as the client 5 .
  • This embodiment is applied to the data processing method of the client 5, and the draft is edited in the storyboard draft editor by storing the draft according to the draft storage structure of the scene and the shot, which is convenient for the user to edit the draft logically, by storing the draft
  • the structure is converted into json format, and the conflict of draft editing information is handled, which realizes the real-time synchronization of draft editing information; by calculating the difference editing information in the draft before editing and after editing, the synchronous transmission and correspondence of draft editing information are realized Asynchronous synchronous transfer of media resources.
  • FIG. 5 shows a schematic structural diagram of a data processing device applied to a server provided by an embodiment of the present application.
  • the device includes:
  • the adding module 502 is configured to receive draft editing requests sent by at least two clients for the initial story draft, and add the draft editing requests sent by each client to the draft editing queue;
  • the extracting module 504 is configured to extract the first draft editing request of the first client for the initial story draft from the draft editing queue, and acquire first draft information to be responded to in the first draft editing request, Editing the initial story draft based on the first draft to be responded to obtain an initial revised story draft;
  • the first generating module 506 is configured to extract a second client's second draft editing request for the initial story draft from the draft editing queue, and obtain a second pending draft in the second draft editing request information, generating draft information to be responded to according to the first draft information to be responded to and the second draft information to be responded to;
  • the first editing module 508 is configured to edit the initial revised story draft based on the to-be-responded draft information to obtain a target story draft.
  • the adding module 502 is further configured to:
  • the first generation module 506 is further configured to:
  • the first generation module 506 is further configured to:
  • the apparatus also includes an establishment module configured to:
  • An initial draft story is sent to the at least two clients based on the communication connection.
  • the apparatus also includes a transmission module configured to:
  • This application is applied to the data processing device of the server, including an adding module, receiving draft editing requests sent by at least two clients for the initial story draft, and adding the draft editing requests sent by each client to the draft editing queue; extracting module , extracting the first draft editing request of the first client for the initial story draft from the draft editing queue, and acquiring first draft information to be responded to in the first draft editing request, based on the first pending Editing the initial story draft in response to the draft information to obtain an initial modified story draft; the first generation module extracts a second client's second draft editing request for the initial story draft from the draft editing queue, and obtains the The second draft information to be responded to in the second draft editing request generates draft information to be responded to according to the first draft information to be responded to and the second draft information to be responded to; the first editing module is based on the draft to be responded to The message editor initially modifies the story draft to obtain a target story draft.
  • the data processing device applied to the server in this application realizes the processing of the draft editing requests according to the order in which the draft editing requests are received; further editing of the initial story draft is realized by obtaining the draft information to be responded to in the draft editing request; Different clients respond to the draft editing requests of the initial story draft in the order in the draft editing queue, and filter the draft information for the same attribute in the draft information to be responded by different clients, avoiding conflicts when modifying the draft in real time, Realized the efficient processing of draft editing information sent by multiple people in real time.
  • FIG. 6 shows a schematic structural diagram of a data processing device applied to a client provided by an embodiment of the present application.
  • the device includes:
  • the receiving module 602 is configured to receive the initial story draft sent by the server;
  • the second editing module 604 is configured to, in response to a draft editing request, edit the initial story draft, and obtain draft information to be submitted;
  • the submission module 606 is configured to submit the draft information to be submitted to the server in response to the information submission request, and obtain the draft information to be responded to;
  • the determination module 608 is configured to determine that the draft information to be responded is draft modification information when receiving the response information returned by the server;
  • the second generating module 610 is configured to generate a client draft based on the draft modification information and the initial story draft.
  • the second editing module 604 is further configured to:
  • the submission module 606 is further configured to:
  • the information of the draft to be submitted is transmitted to the server.
  • the apparatus also includes an update module configured to:
  • the initial story draft is updated based on the pending response draft information.
  • the apparatus also includes a loading module configured to:
  • This application is applied to the data processing device of the client, including a receiving module, which receives the initial story draft sent by the server; a second editing module, which responds to the draft editing request, edits the initial story draft, and obtains the draft information to be submitted; the submission module responds In response to the information submission request, submit the draft information to be submitted to the server to obtain draft information to be responded to; the determination module determines that the draft information to be responded is draft modification information when receiving the response information returned by the server; The second generating module generates a client draft based on the draft modification information and the initial story draft.
  • This application is applied to the data processing device of the client to obtain the draft information to be submitted generated during the draft editing process, upload the draft information to the server, and realize the synchronization of the draft editing information of the client to the server, so that the server can edit the submitted draft Editing information is processed and synchronized to other clients, enabling real-time collaboration among multiple people to edit drafts.
  • FIG. 7 shows a structural block diagram of a computing device 700 provided according to an embodiment of the present application.
  • Components of the computing device 700 include, but are not limited to, memory 710 and processor 720 .
  • the processor 720 is connected to the memory 710 through the bus 730, and the database 450 is used for storing data.
  • Computing device 700 also includes an access device 740 that enables computing device 700 to communicate via one or more networks 460 .
  • networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet.
  • Access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)), wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, Worldwide Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, etc.
  • NIC network interface card
  • the above-mentioned components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, for example, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of illustration, rather than limiting the scope of the application. Those skilled in the art can add or replace other components as needed.
  • Computing device 700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile telephones (e.g., smartphones), ), wearable computing devices (eg, smart watches, smart glasses, etc.), or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • mobile computers or mobile computing devices e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.
  • mobile telephones e.g., smartphones
  • wearable computing devices eg, smart watches, smart glasses, etc.
  • desktop computers or PCs e.g., desktop computers or PCs.
  • Computing device 700 may also be a mobile or stationary server.
  • the processor 720 implements the steps of the data processing method when executing the computer instructions.
  • An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions, and implements the steps of the aforementioned data processing method when the computer instructions are executed by a processor.
  • An embodiment of the present application further provides a computer program, wherein, when the computer program is executed in a computer, the computer is caused to execute the steps of the above data processing method.
  • the computer instructions include computer program code, which may be in source code form, object code form, executable file or some intermediate form, and the like.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signal telecommunication signal and software distribution medium, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供数据处理方法及装置,其中所述数据处理方法包括:接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;从草稿编辑队列中提取第一客户端针对初始故事草稿的第一草稿编辑请求,并获取第一草稿编辑请求中的第一待响应草稿信息,基于第一待响应草稿信息编辑初始故事草稿,获得初始修改故事草稿;从草稿编辑队列中提取第二客户端针对初始故事草稿的第二草稿编辑请求,并获取第二草稿编辑请求中的第二待响应草稿信息,根据第一待响应草稿信息和第二待响应草稿信息,生成待响应草稿信息;基于待响应草稿信息编辑初始修改故事草稿,获得目标故事草稿。

Description

数据处理方法及装置
本申请要求于2021年08月17日提交中国专利局、申请号为202110944010.0、发明名称为“数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,特别涉及数据处理方法。本申请同时涉及数据处理装置,一种计算设备,一种计算机可读存储介质以及一种计算机程序。
背景技术
随着计算机技术的不断发展,许多的文档程序具备了多人协作的功能,通过多人对同一文档进行处理,提高办公效率;目前,主流的文档程序具备多人协作的功能,最终输出的是文档,而视频的制作与对文档的处理一样复杂且耗时,并且目前的视频制作方式多为独立制作或线下分阶段合作。多人协作文档通过协作提高了办公效率,而缺少一种实时协作对视频进行编辑,最终输出编辑完成的视频的协作方式。
如何实现多人实时对视频进行编辑成为技术人员目前亟待解决的问题。
发明内容
有鉴于此,本申请实施例提供了数据处理方法。本申请同时涉及数据处理装置,一种计算设备,一种计算机可读存储介质以及一种计算机程序,以解决现有技术中存在的缺少多人实时对数据进行编辑的数据处理方法的问题。
根据本申请实施例的第一方面,提供了一种数据处理方法,应用于服务器,包括:
接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;
从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;
从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;
基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
根据本申请实施例的第二方面,提供了一种数据处理方法,应用于客户端,包括:
接收服务器发送的初始故事草稿;
响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;
响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息;
接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;
基于所述草稿修改信息和所述初始故事草稿生成客户端草稿。
根据本申请实施例的第三方面,提供了一种数据处理装置,应用于服务器,包括:
添加模块,被配置为接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;
提取模块,被配置为从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的 第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;
第一生成模块,被配置为从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;
第一编辑模块,被配置为基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
根据本申请实施例的第四方面,提供了一种数据处理装置,应用于客户端,包括:
接收模块,被配置为接收服务器发送的初始故事草稿;
第二编辑模块,被配置为响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;
提交模块,被配置为响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息;
确定模块,被配置为接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;
第二生成模块,被配置为基于所述草稿修改信息和所述初始故事草稿生成客户端草稿。
根据本申请实施例的第五方面,提供了一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现所述数据处理方法的步骤。
根据本申请实施例的第六方面,提供了一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现所述数据处理方法的步骤。
根据本申请实施例的第七方面,提供了一种计算机程序,其中,当所述计算机程序在计算机中执行时,令计算机执行上述数据处理方法的步骤。
本申请提供的数据处理方法,接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
本申请一实施例通过获取草稿编辑队列中的草稿编辑请求,实现了依据接收草稿编辑请求的顺序对草稿编辑请求进行处理;通过对获取草稿编辑请求中的待响应草稿信息,实现对初始故事草稿进行进一步的编辑;通过将不同客户端对初始故事草稿的草稿编辑请求按草稿编辑队列中的顺序进行响应,并筛选不同客户端的待响应草稿信息中针对相同属性的草稿信息,避免了实时对草稿进行修改时发生的冲突,实现了对多人实时发送的草稿编辑信息进行高效的处理。
附图说明
图1是本申请一实施例提供的一种应用于服务器数据处理方法的流程图;
图2是本申请一实施例提供的一种应用于客户端数据处理方法的流程图;
图3是本申请一实施例提供的客户端数据存储示意图;
图4a是本申请一实施例提供的一种应用于客户端5的数据处理方法的流程图;
图4b是本申请一实施例提供的一种应用于客户端5的数据处理方法的流程示意图;
图5是本申请一实施例提供的一种应用于服务器的数据处理装置的结构示意图;
图6是本申请一实施例提供的一种应用于客户端的数据处理装置的结构示意图;
图7是本申请一实施例提供的一种计算设备的结构框图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
首先,对本申请一个或多个实施例涉及的名词术语进行解释。
JSON:JSON是一种数据格式,广泛应用于WEB应用开发。它通过键值对的方式存储数据,并且目前主流编程语言均支持JSON格式数据的生成以及解析,JSON广泛应用于数据交换、存储等场景。
Diff:Diff是一种算法,用于比较两个文件不同,并输出差异,通常输出的差异文件扩展名为.patch。
Patch:Patch是指由diff算法产生的文件差异信息,在本申请中定义名为Patch的数据结构来描述这种差异。
在本申请中,提供了数据处理方法,本申请同时涉及数据处理装置,一种计算设备,一种计算机可读存储介质以及一种计算机程序,在下面的实施例中逐一进行详细说明。
图1示出了根据本申请一实施例提供的一种应用于服务器的数据处理方法的流程图,具体包括以下步骤:
步骤102:接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列。
其中,客户端是指用户对初始故事草稿进行编辑的终端设备;初始故事草稿是指当前服务器中保存的故事草稿,故事草稿是故事板视频编辑器的数据结构;草稿编辑请求是指对初始故事草稿进行编辑的请求;草稿编辑队列是指保存客户端发送的草稿编辑请求的队列。
具体的,服务器接收由多个客户端发送的针对目标故事草稿的草稿编辑请求,按照服务器接收草稿编辑请求的顺序将每个客户端的草稿编辑请求依次存入至草稿编辑队列。
在本申请一具体实施方式中,以草稿A为例,接收客户端1、客户端2、客户端3以及客户端4针对草稿A的草稿编辑请求;将客户端1、客户端2、客户端3以及客户端4每个客户端的草稿编辑请求添加至草稿编辑队列。
服务器将接收的草稿编辑指令添加至草稿编辑队列,便于后续基于草稿编辑队列中的 草稿编辑请求确定对初始故事草稿进行哪些修改以及修改顺序。
在实际应用中,接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列,包括:
确定接收客户端发送的针对初始故事草稿的草稿编辑请求的请求时间点;
依据所述请求时间点将每个客户端针对初始故事草稿的草稿编辑请求添加至草稿编辑队列。
其中,请求时间点是指服务器接收草稿编辑请求的时间点。获取服务器接收每个客户端发送的草稿编辑请求的请求时间点,基于请求时间点将服务器接收到的草稿编辑请求依据请求时间点添加至草稿编辑队列。
在本申请一具体实施方式中,沿用上例,服务器接收每个客户端发送的针对草稿A的草稿编辑请求,并记录接收每个草稿编辑请求的时间点,如接收客户端1针对草稿A的草稿编辑请求的时间点为2时3分15秒,接收客户端2针对草稿A的草稿编辑请求的时间点为2时3分14秒,则按记录的时间点,先将客户端2发送的针对草稿A的草稿编辑请求添加至草稿编辑队列,再将客户端1发送的针对草稿A的草稿编辑请求添加至草稿编辑队列。
通过基于服务器接收草稿编辑请求的时间点,将草稿编辑请求添加至草稿编辑队列,便于后续基于服务器接收草稿编辑请求的时间点,确定对草稿编辑请求进行处理的顺序。
步骤104:从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿。
其中,第一客户端是指存在针对初始故事草稿的草稿编辑请求的客户端,是存在针对初始故事草稿的草稿编辑请求的多个客户端中的客户端之一;第一草稿编辑请求是指第一客户端发送的对初始故事草稿进行编辑的请求;第一待响应草稿信息是指从第一草稿编辑请求获取的对初始故事草稿进行编辑的信息;初始修改故事草稿是指根据第一待响应草稿信息对初始故事草稿进行修改获得的草稿。
具体的,草稿编辑队列中包含针对初始故事草稿的草稿编辑信息,在草稿编辑队列中依次获取针对初始故事草稿的草稿编辑信息,在获取到第一客户端发送的针对初始故事草稿的第一草稿编辑请求后,提取第一草稿编辑请求中的第一待响应草稿信息,根据第一待响应草稿信息对初始故事草稿进行修改,例如,在初始故事草稿中新增草稿、删除草稿等等;基于第一待响应草稿信息对初始故事草稿修改完成,获得初始修改故事草稿。
在本申请一具体实施方式中,以客户端3为例,从草稿编辑队列中提取客户端3针对草稿B的草稿编辑请求,获取草稿编辑请求中的草稿编辑信息,基于获取的草稿编辑信息对草稿B进行编辑,获得编辑完成的草稿B。
通过获取草稿编辑请求中的待响应草稿信息对初始故事草稿进行修改,实现对服务器中初始故事草稿内容的更新,便于服务器将对初始故事草稿实时的编辑信息同步至参与对初始故事草稿进行编辑的客户端。
步骤106:从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息。
其中,第二客户端是指存在针对初始故事草稿的草稿编辑请求的客户端,是存在针对初始故事草稿的草稿编辑请求的多个客户端中除第一客户端外的客户端;第二草稿编辑请求是指第二客户端发送的对初始故事草稿进行编辑的请求;第二待响应草稿信息是指从第二草稿编辑请求获取的对初始故事草稿进行编辑的请求;待响应草稿信息是指根据第一待 响应草稿信息以及第二待响应草稿信息获得的信息。
具体的,在草稿队列中获取到第二客户端发送的针对初始故事草稿的第二草稿编辑请求后,提取第二草稿编辑请求中的第二待响应草稿信息;基于第一待响应草稿信息以及第二待响应草稿信息生成待响应草稿信息。
在本申请一具体实施方式中,沿用上例,从草稿编辑队列中提取客户端4针对草稿B的草稿编辑请求,提取草稿编辑请求中的草稿编辑信息;获取客户端3针对草稿B的草稿编辑请求中的草稿编辑信息,根据客户端3针对草稿B的草稿编辑请求中的草稿编辑信息以及客户端4针对草稿B的草稿编辑请求中的草稿编辑信息,获得待响应草稿信息。
在实际应用中,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息的具体方法包括:
基于预设冲突策略和所述第一待响应草稿信息筛选所述第二待响应草稿信息,获得待响应草稿信息。
其中,预设冲突策略是指处理第一待响应草稿信息与第二待响应草稿信息中发生的冲突信息的策略,如,预设冲突策略为确定第一待响应草稿信息与第二待响应草稿信息中的相同属性参数或不同属性参数。
通过预设冲突策略以及第一待响应草稿信息,筛选第二待响应草稿信息中的目标属性参数,便于后续对第二待响应草稿信息做进一步的处理。
在实际应用中,基于预设冲突策略和所述第一待响应草稿信息筛选所述第二待响应草稿信息,获得待响应草稿信息,包括:
基于所述预设冲突策略以及所述第一待响应草稿信息确定所述第二待响应草稿信息中的目标属性参数;
删除所述第二待响应草稿信息中所述目标属性参数对应的草稿信息,生成待响应草稿信息。
其中,目标属性参数是指第一待响应草稿信息与第二待响应草稿信息中存在冲突的属性的参数;目标属性参数对应的草稿信息是指目标属性参数对应的参数值。
具体的,基于预设冲突策略确定第一待响应草稿信息中与第二待响应草稿信息中相同的目标属性参数,删除第二待响应草稿信息中目标属性参数对应的草稿信息,获得待响应属性信息。
在本申请一具体实施方式中,以目标属性参数为第一个镜头的标题为例,初始故事草稿对应的版本号为V1,初始故事草稿中的信息如下述表1所示。
表1
Figure PCTCN2022099263-appb-000001
服务器接收到两个客户端发送的待响应信息1和待响应信息2,待响应信息1的接收时间为T1,待响应信息2的接收时间为T2,T1早于T2,待响应信息1和待响应信息2中具体对初始故事草稿的修改内容参见下述表2。
表2
Figure PCTCN2022099263-appb-000002
待响应信息1对第一个镜头的标题和第二个镜头的标题进行了修改,待响应信息2对第一个镜头的标题和第一个镜头的目标信息进行了修改。预设冲突策略为确定待响应信息1与待响应信息2中相同的目标属性参数,则可确定目标属性参数为“第一个镜头的标题”。
服务器先接收到待响应信息1,基于待响应信息1对初始故事草稿V1进行修改,获得的初始修改故事草稿V2,如下述表3所示。
表3
Figure PCTCN2022099263-appb-000003
待响应信息2的修改是基于V1版本的初始故事草稿,待响应信息2对V1版本的初始故事草稿中第一个镜头的标题和第一个镜头的描述信息进行了修改。此时第一个镜头的标题在V2版本中与V1版本中不同,第一个镜头的描述信息在V2版本和V1版本中相同,则拒绝待响应信息2中针对第一个镜头的标题的修改,接收待响应信息2中针对第一个镜头的描述信息的修改,即删除待响应信息2中对第一镜头的标题的草稿编辑信息“操场”,获得修改后的待响应信息2;将仅包含对第一个镜头的描述信息“操场上有很多人在运动”的修改后的待响应信息2作为删除相同属性参数对应的草稿信息后的待响应信息。
通过基于预设冲突策略以及第一待响应草稿信息筛选第二待响应草稿信息中的目标属性参数,并对第二待响应草稿信息中目标属性参数对应的草稿信息进行删除,实现了对第二待响应草稿信息的筛选,便于后续基于筛选获得的待响应草稿信息对草稿进行进一步的修改,避免请求的冲突。
步骤108:基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
其中,待响应草稿信息是指基于第一待响应草稿信息以及第二待响应草稿信息获得的对初始修改故事草稿进行编辑的信息;目标故事草稿是指根据待响应草稿信息对初始修改故事草稿进行编辑获得的草稿。
具体的,在基于第一待响应信息以及第二待响应信息获得待响应信息后,基于待响应信息对根据第一待响应信息编辑得到的初始修改信息进行编辑,获得目标故事草稿。
在本申请一具体实施方式中,沿用上例,基于包含对第一个镜头的描述信息“操场上 有很多人在运动”的待响应信息对初始修改故事草稿进行编辑,获得目标故事草稿V3。此时获得目标故事草稿V3,如下述表4所示。
表4
Figure PCTCN2022099263-appb-000004
通过获得的待响应草稿信息对初始修改故事草稿进行进一步的修改,从而对不同用户在对同一属性进行处理时的冲突情况进行了处理,实现了多人实时协作对草稿进行编辑。
在实际应用中,在接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求之前,所述方法还包括:
建立与至少两个客户端的通信连接;
基于所述通信连接将初始故事草稿发送至所述至少两个客户端。
具体的,为了实现客户端与服务器对草稿编辑信息的实时同步,服务器先与对初始故事草稿存在编辑请求的客户端建立通信连接,基于建立好的通信连接对客户端与服务器之间的信息进行实时双向传输,从而实现信息的实时同步。服务器在接收到客户端发送的针对初始故事草稿的草稿编辑请求后,将服务器当前版本的初始故事草稿通过通信连接传输至返回至发送草稿编辑请求的客户端。
通过建立服务器与客户端之间的通信连接,可实现服务器与客户端之间数据的实时双向传输,从而实现服务器与客户端之间的草稿版本的实时同步。
在建立服务器与至少两个客户端的通信连接后,可基于建立的通信连接将服务器生成的待响应草稿信息发送至客户端。即在获得目标故事草稿之后,本申请的数据处理方法还包括:
基于所述通信连接将所述待响应草稿信息传输至所述至少两个客户端。
具体的,为了实现服务器中的草稿编辑信息与各个客户端的草稿编辑信息的同步,在服务器接收客户端的草稿编辑信息,并基于草稿编辑信息对服务器的草稿进行更新后,将对草稿进行更新过程中得到的待响应草稿信息通过通信连接传同步至其他客户端,使客户端可以对最新版本的草稿做进一步的修改。
通过由通信连接将待响应草稿信息传输至至少两个客户端,实现了对待响应草稿信息的实时传输,从而实现多人实时对草稿进行编辑的效果。
本申请的数据处理方法实现了依据接收草稿编辑请求的顺序对草稿编辑请求进行处理;通过对获取草稿编辑请求中的待响应草稿信息,实现对初始故事草稿进行进一步的编辑;通过将不同客户端对初始故事草稿的草稿编辑请求按草稿编辑队列中的顺序进行响应,并筛选出不同客户端的待响应草稿信息中针对相同属性的草稿信息,避免了实时对草稿进行修改时发生的冲突,实现了对多人实时发送的草稿编辑信息进行高效的处理。
图2示出了根据本申请一实施例提供的一种应用于客户端的数据处理方法的流程图, 具体包括以下步骤:
步骤202:接收服务器发送的初始故事草稿。
将客户端接收的对初始故事草稿进行编辑请求转发至服务器,服务器响应草稿编辑请求将服务器当前的草稿信息即初始故事草稿返回至客户端,客户端接收服务器发送的初始故事草稿保存至客户端本地,后续用户可对客户端接收到的初始故事草稿进行编辑。
在本申请一具体实施方式中,以客户端包含存储空间A、X、Y为例,其中,存储空间A中存储的为客户端与服务器已同步的草稿数据,存储空间X中存储的为已提交至服务器,未收到服务器响应的草稿数据,存储空间Y中存储的为本地已修改未向服务器提交的草稿信息。如图3中的a所示,图3为本申请一具体实施例提供的客户端数据存储示意图,客户端接收服务器发送的初始故事草稿并存入存储空间A。
在实际应用中,在接收服务器发送的初始故事草稿之后,所述方法还包括:
将所述初始故事草稿加载至故事板草稿编辑器。
故事板草稿编辑器是指具有故事板功能的草稿编辑器,可以在故事板编辑器中规划设计故事板,同时基于故事板拍摄对应的素材资源。将初始故事草稿上传至故事板草稿编辑器,可在草稿编辑器中包含的草稿的场景、镜头等结构对初始故事草稿依据设计的故事板结构进行编辑。
通过将初始故事草稿上传至故事板草稿编辑器,便于依据故事板中草稿的存储结构对初始故事草稿进行编辑。
步骤204:响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息。
其中,草稿编辑请求是指对初始故事草稿进行编辑的请求;待提交草稿信息是指对初始故事草稿进行编辑的过程产生的草稿编辑信息。
基于用户对初始故事草稿的修改生成草稿编辑请求;客户端接收对初始故事草稿的编辑请求,对初始故事草稿进行编辑;在对初始故事草稿进行编辑过程中产生对初始故事草稿的草稿编辑信息即待提交草稿信息。
在本申请一具体实施方式中,沿用上例,客户端接收针对初始故事草稿的草稿编辑请求,对初始故事草稿进行编辑;在对初始故事草稿进行编辑的过程中,获取到对初始故事草稿进行编辑的草稿信息data1,如图3中的b所示,将待提交草稿信息data1存入客户端的存储空间Y。
通过获取基于草稿编辑请求对初始故事草稿进行编辑获得的待提交草稿信息,便于后续将待提交草稿信息传输至服务器,服务器接收的多个客户端的待提交草稿信息进行冲突处理。
在实际应用中,编辑所述初始故事草稿,获得待提交草稿信息的具体方法包括:
编辑所述初始故事草稿,获得待提交草稿;
计算所述待提交草稿以及所述初始故事草稿之间的差异信息,确定所述差异信息为待提交草稿信息。
其中,待提交草稿是指对初始故事草稿进行编辑后获得的草稿;差异信息是指待提交草稿与初始故事草稿之间存在的不同的草稿编辑信息。
具体的,响应于草稿编辑请求对初始故事草稿进行编辑,生成待提交草稿;获取初始故事草稿以及待提交草稿,通过diff算法或其他可实现相同效果的算法计算出初始故事草稿与待提交草稿的差异信息patch。
步骤206:响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息。
基于编辑完成后的草稿进行提交的操作,生成信息提交请求,响应于信息提交请求, 将待提交草稿信息上传至服务器。
在本申请一具体实施方式中,沿用上例,接收信息提交请求,将待提交信息上传至服务器,此时,服务器还未对提交请求进行响应,如图3中的c所示,将待提交草稿信息data1由存储空间Y合并至存储空间X,并对存储空间Y清空。
在实际应用中,提交所述待提交草稿信息至所述服务器的方法包括:
基于所述服务器与客户端之间的通信连接,将所述待提交草稿信息传输至所述服务器。
通过通信连接可将客户端生成的待提交草稿信息实时同步至服务器。
步骤208:接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息。
服务器响应待响应草稿信息后,会返回响应成功的信息;在待响应草稿信息响应成功后,将响应成功的待响应草稿信息作为草稿修改信息。
在本申请一具体实施方式中,沿用上例,接收到服务器返回的对待响应草稿信息的响应信息,确定待响应草稿信息data1为草稿修改信息;如图3中的d所示,将草稿修改信息由存储空间X合并至存储空间A,并清空存储空间X。
步骤210:基于所述草稿修改信息和所述初始故事草稿生成客户端故事草稿。
其中,客户端草稿是指对初始故事草稿进行修改获得的草稿。
客户端确定草稿修改信息后,基于确定草稿修改信息对初始故事草稿进行修改,对初始故事草稿修改完成后获得客户端草稿。
实际应用中,客户端在对初始数据进行处理的过程中,服务器可接收其他客户端发送的草稿编辑指令,从而对服务器包含的初始故事草稿进行修改,此时为了实现客户端对最新版本的草稿进行修改,需要基于草稿编辑指令,具体方法包括:
接收所述服务器发送的待响应草稿信息;
基于所述待响应草稿信息更新所述初始故事草稿。
具体的,接收服务器发送的待响应草稿信息;基于所述待响应草稿信息对客户端接收的初始故事草稿进行更新,保证客户端与服务器中草稿版本的一致。
在本申请一具体实施方式中,沿用上例,在客户端接收初始故事草稿后,接收到服务器发送的其他客户端的草稿修改信息server data,如图3中的e所示,将草稿修改信息server data合并至存储空间A。
本申请的数据处理方法,获取对草稿编辑过程中产生的待提交草稿信息,将待提交草稿信息上传至服务器,实现将客户端的草稿编辑信息同步至服务器,使服务器可以对提交的草稿编辑信息进行处理并同步至其他客户端,实现多人实时协作对草稿进行编辑。
下述结合附图4a和图4b,以本申请提供的数据处理方法在客户端5的应用为例,对所述数据处理方法进行进一步说明。其中,图4a示出了本申请一实施例提供的一种应用于客户端5的数据处理方法的处理流程图,图4b示出了本申请一实施例提供的一种应用于客户端5的数据处理方法的处理流程示意图,具体包括以下步骤:
步骤402:编辑初始故事草稿,获得待提交草稿。
在本申请一具体实施方式中,以客户端5为例,客户端5接收到服务器发送的初始故事草稿,上传至故事板草稿编辑器。草稿编辑房间G中包含{客户端3、客户端4、客户端5}三个对初始故事草稿存在编辑请求的客户端。用户使用客户端5在故事板编辑器中对初始故事草稿进行编辑,包括对草稿结构进行修改,获得编辑完成的初始故事草稿为待提交草稿,主编辑器模块将对初始故事草稿的修改草稿结构操作同步至待提交草稿同步至草稿管理模块。
步骤404:计算初始故事草稿与待提交草稿信息的差异信息。
在本申请一具体实施方式中,沿用上例,草稿管理模块中包含初始故事草稿以及待提交草稿;草稿管理模块待提交草稿同步至Diff模块,使用diff算法计算初始故事草稿与待提交草稿的差异信息patch,即对初始故事草稿进行哪些编辑操作可以得到待提交草稿。
步骤406:将差异信息发送至同步管理模块。
在本申请一具体实施方式中,沿用上例,将使用diff算法计算获得的差异信息patch发送至同步管理模块,用于对客户端5当前的草稿进行同步,并作为待响应的草稿信息存储至客户端,在未接收到提交请求之前w为待提交的状态。
步骤408:基于通信连接将差异信息发送至服务器。
在本申请一具体实施方式中,沿用上例,基于服务器与客户端5之间建立的通信连接,将差异信息发送至服务器,具体为对差异信息进行封装并按http协议发送至服务器。
步骤410:服务器接收差异信息并分发至对应的草稿编辑房间。
在本申请一具体实施方式中,沿用上例,服务器中的处理模块接收差异信息,并将接收到的差异信息分发至与差异信息对应的草稿编辑房间G。
步骤412:将接收到的差异信息进行合并,获得合并编辑信息。
在本申请一具体实施方式中,沿用上例,服务器会接收到的由客户端3、客户端4以及客户端5发送的差异信息,若差异信息之间存在冲突,Room管理协作模块会对冲突进行处理,即对单线程的差异信息进行合并,如,客户端4和客户端5对初始故事草稿中相同的属性做了不同的修改,则确定判定为冲突情况,此时服务器处理第一个提交的差异信息即客户端5提交的差异信息,而拒绝客户端4的差异信息中对同一属性进行的修改,从而获得合并编辑信息。
步骤414:基于合并编辑信息对初始修改故事草稿进行编辑。
在本申请一具体实施方式中,沿用上例,服务器响应客户端5提交的差异信息后,对初始故事草稿进行了处理,获得初始修改故事草稿;子协程根据获得合并编辑信息对初始修改故事草稿做进一步的修改,从而完成对客户端5以及客户端4提交的差异信息的响应。
步骤416:基于通信连接向客户端返回合并信息。
在本申请一具体实施方式中,沿用上例,返回客户端5提交的草稿编辑信息均编辑成功。
步骤418:将合并编辑信息同步至其他客户端。
在本申请一具体实施方式中,沿用上例,将合并编辑信息同步至与客户端5位于同一草稿编辑房间的客户端3和客户端4。
本实施例应用于客户端5的数据处理方法,通过按场、镜头的草稿存储结构存储草稿的故事板草稿编辑器中对草稿进行编辑,便于用户有逻辑的对草稿进行编辑,通过将草稿存储结构转换为json格式,以及对草稿编辑信息冲突情况的处理,实现了对草稿编辑信息的实时同步;通过计算编辑前与编辑后草稿中的差异编辑信息,实现对草稿编辑信息的同步传输以及对应媒体资源的异步同步传输。
与上述方法实施例相对应,本申请还提供了数据处理装置实施例,图5示出了本申请一实施例提供的一种应用于服务器的数据处理装置的结构示意图。如图5所示,该装置包括:
添加模块502,被配置为接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;
提取模块504,被配置为从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;
第一生成模块506,被配置为从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;
第一编辑模块508,被配置为基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
在本申请一具体实施方式中,所述添加模块502,进一步被配置为:
确定接收客户端发送的针对初始故事草稿的草稿编辑请求的请求时间点;
依据所述请求时间点将每个客户端针对初始故事草稿的草稿编辑请求添加至草稿编辑队列。
所述第一生成模块506,进一步被配置为:
基于预设冲突策略和所述第一待响应草稿信息筛选所述第二待响应草稿信息,获得待响应草稿信息。
所述第一生成模块506,进一步被配置为:
基于所述预设冲突策略以及所述第一待响应草稿信息确定所述第二待响应草稿信息中的目标属性参数;
删除所述第二待响应草稿信息中所述目标属性参数对应的草稿信息,生成待响应草稿信息。
所述装置还包括建立模块,被配置为:
建立与至少两个客户端的通信连接;
基于所述通信连接将初始故事草稿发送至所述至少两个客户端。
所述装置还包括传输模块,被配置为:
基于所述通信连接将所述待响应草稿信息传输至所述至少两个客户端。
本申请应用于服务器的数据处理装置,包括添加模块,接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;提取模块,从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;第一生成模块,从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;第一编辑模块,基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
本申请应用于服务器的数据处理装置实现了依据接收草稿编辑请求的顺序对草稿编辑请求进行处理;通过对获取草稿编辑请求中的待响应草稿信息,实现对初始故事草稿进行进一步的编辑;通过将不同客户端对初始故事草稿的草稿编辑请求按草稿编辑队列中的顺序进行响应,并筛选不同客户端的待响应草稿信息中针对相同属性的草稿信息,避免了实时对草稿进行修改时发生的冲突,实现了对多人实时发送的草稿编辑信息进行高效的处理。
与上述方法实施例相对应,本申请还提供了数据处理装置实施例,图6示出了本申请一实施例提供的一种应用于客户端的数据处理装置的结构示意图。如图6所示,该装置包括:
接收模块602,被配置为接收服务器发送的初始故事草稿;
第二编辑模块604,被配置为响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;
提交模块606,被配置为响应于信息提交请求,提交所述待提交草稿信息至所述服务 器,获得待响应草稿信息;
确定模块608,被配置为接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;
第二生成模块610,被配置为基于所述草稿修改信息和所述初始故事草稿生成客户端草稿。
在本申请一具体实施方式中,所述第二编辑模块604,进一步被配置为:
编辑所述初始故事草稿,获得待提交草稿;
计算所述待提交草稿以及所述初始故事草稿之间的差异信息,确定所述差异信息为待提交草稿信息。
所述提交模块606,进一步被配置为:
基于所述服务器与客户端之间的通信连接,将所述待提交草稿信息传输至所述服务器。
所述装置还包括更新模块,被配置为:
接收所述服务器发送的待响应草稿信息;
基于所述待响应草稿信息更新所述初始故事草稿。
所述装置还包括加载模块,被配置为:
将所述初始故事草稿加载至故事板草稿编辑器。
本申请应用于客户端的数据处理装置,包括接收模块,接收服务器发送的初始故事草稿;第二编辑模块,响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;提交模块,响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息;确定模块,接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;第二生成模块,基于所述草稿修改信息和所述初始故事草稿生成客户端草稿。本申请应用于客户端的数据处理装置,获取对草稿编辑过程中产生的待提交草稿信息,将待提交草稿信息上传至服务器,实现将客户端的草稿编辑信息同步至服务器,使服务器可以对提交的草稿编辑信息进行处理并同步至其他客户端,实现多人实时协作对草稿进行编辑。
上述为本实施例的一种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的数据处理方法的技术方案属于同一构思,数据处理装置的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
图7示出了根据本申请一实施例提供的一种计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和处理器720。处理器720与存储器710通过总线730相连接,数据库450用于保存数据。
计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络460通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。
在本申请的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。
计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设 备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备700还可以是移动式或静止式的服务器。
其中,处理器720执行所述计算机指令时实现所述的数据处理方法的步骤。
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现如前所述数据处理方法的步骤。
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
本申请一实施例还提供一种计算机程序,其中,当所述计算机程序在计算机中执行时,令计算机执行上述数据处理方法的步骤。
上述为本实施例的一种计算机程序的示意性方案。需要说明的是,该计算机程序的技术方案与上述的数据处理方法的技术方案属于同一构思,计算机程序的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。

Claims (16)

  1. 一种数据处理方法,应用于服务器,包括:
    接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;
    从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;
    从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;
    基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
  2. 如权利要求1所述的数据处理方法,接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列,包括:
    确定接收客户端发送的针对初始故事草稿的草稿编辑请求的请求时间点;
    依据所述请求时间点将每个客户端针对初始故事草稿的草稿编辑请求添加至草稿编辑队列。
  3. 如权利要求1或2任意一项所述的数据处理方法,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息,包括:
    基于预设冲突策略和所述第一待响应草稿信息筛选所述第二待响应草稿信息,获得待响应草稿信息。
  4. 如权利要求3所述的数据处理方法,基于预设冲突策略和所述第一待响应草稿信息筛选所述第二待响应草稿信息,获得待响应草稿信息,包括:
    基于所述预设冲突策略以及所述第一待响应草稿信息确定所述第二待响应草稿信息中的目标属性参数;
    删除所述第二待响应草稿信息中所述目标属性参数对应的草稿信息,生成待响应草稿信息。
  5. 如权利要求1-4任意一项所述的数据处理方法,在接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求之前,所述方法还包括:
    建立与至少两个客户端的通信连接;
    基于所述通信连接将初始故事草稿发送至所述至少两个客户端。
  6. 如权利要求5所述的数据处理方法,在获得目标故事草稿之后,所述方法还包括:
    基于所述通信连接将所述待响应草稿信息传输至所述至少两个客户端。
  7. 一种数据处理方法,应用于至少两个客户端,对于每个客户端,所述方法包括:
    接收服务器发送的初始故事草稿;
    响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;
    响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息;
    接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;
    基于所述草稿修改信息和所述初始故事草稿生成客户端故事草稿。
  8. 如权利要求7所述的数据处理方法,编辑所述初始故事草稿,获得待提交草稿信息,包括:
    编辑所述初始故事草稿,获得待提交故事草稿;
    计算所述待提交故事草稿以及所述初始故事草稿之间的差异信息,确定所述差异信息为待提交草稿信息。
  9. 如权利要求7或8任意一项所述的数据处理方法,提交所述待提交草稿信息至所述服务器,包括:
    基于所述服务器与客户端之间的通信连接,将所述待提交草稿信息传输至所述服务器。
  10. 如权利要求7-9任意一项所述的数据处理方法,所述方法还包括:
    接收所述服务器发送的待响应草稿信息;
    基于所述待响应草稿信息更新所述初始故事草稿。
  11. 如权利要求7-10任意一项所述的数据处理方法,在接收服务器发送的初始故事草稿之后,所述方法还包括:
    将所述初始故事草稿加载至故事板草稿编辑器。
  12. 一种数据处理装置,应用于服务器,包括:
    添加模块,被配置为接收至少两个客户端发送的针对初始故事草稿的草稿编辑请求,并将每个客户端发送的草稿编辑请求添加至草稿编辑队列;
    提取模块,被配置为从所述草稿编辑队列中提取第一客户端针对所述初始故事草稿的第一草稿编辑请求,并获取所述第一草稿编辑请求中的第一待响应草稿信息,基于所述第一待响应草稿信息编辑所述初始故事草稿,获得初始修改故事草稿;
    第一生成模块,被配置为从所述草稿编辑队列中提取第二客户端针对所述初始故事草稿的第二草稿编辑请求,并获取所述第二草稿编辑请求中的第二待响应草稿信息,根据所述第一待响应草稿信息和所述第二待响应草稿信息,生成待响应草稿信息;
    第一编辑模块,被配置为基于所述待响应草稿信息编辑所述初始修改故事草稿,获得目标故事草稿。
  13. 一种数据处理装置,应用于客户端,包括:
    接收模块,被配置为接收服务器发送的初始故事草稿;
    第二编辑模块,被配置为响应于草稿编辑请求,编辑所述初始故事草稿,获得待提交草稿信息;
    提交模块,被配置为响应于信息提交请求,提交所述待提交草稿信息至所述服务器,获得待响应草稿信息;
    确定模块,被配置为接收到所述服务器返回响应信息的情况下,确定所述待响应草稿信息为草稿修改信息;
    第二生成模块,被配置为基于所述草稿修改信息和所述初始故事草稿生成客户端故事草稿。
  14. 一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现权利要求1-6或者7-11任意一项所述方法的步骤。
  15. 一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现权利要求1-6或者7-11任意一项所述方法的步骤。
  16. 一种计算机程序,当所述计算机程序在计算机中执行时,令计算机执行权利要求1-6或者7-11任意一项所述方法的步骤。
PCT/CN2022/099263 2021-08-17 2022-06-16 数据处理方法及装置 WO2023020091A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110944010.0A CN115706811A (zh) 2021-08-17 2021-08-17 数据处理方法及装置
CN202110944010.0 2021-08-17

Publications (1)

Publication Number Publication Date
WO2023020091A1 true WO2023020091A1 (zh) 2023-02-23

Family

ID=85181335

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099263 WO2023020091A1 (zh) 2021-08-17 2022-06-16 数据处理方法及装置

Country Status (2)

Country Link
CN (1) CN115706811A (zh)
WO (1) WO2023020091A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004015897A2 (en) * 2002-08-07 2004-02-19 Global Apparel Network, Inc Multi-user collaboration system and method
CN102332174A (zh) * 2011-09-06 2012-01-25 中国科学院软件研究所 一种协同草图动画生成方法和系统
CN102916998A (zh) * 2012-03-26 2013-02-06 上海方正数字出版技术有限公司 一种基于云计算的网络公共白板系统及方法
US20170289210A1 (en) * 2016-04-04 2017-10-05 Dropbox, Inc. Change comments for synchronized content items
CN112367403A (zh) * 2020-11-13 2021-02-12 深圳市前海手绘科技文化有限公司 一种动画草稿在线保存优化方法与装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914439B (zh) * 2013-01-04 2018-06-12 中国移动通信集团公司 一种文档在线编辑方法、设备以及系统
CN111914520A (zh) * 2019-05-09 2020-11-10 富泰华工业(深圳)有限公司 文档协同编辑方法、装置、计算机装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004015897A2 (en) * 2002-08-07 2004-02-19 Global Apparel Network, Inc Multi-user collaboration system and method
CN102332174A (zh) * 2011-09-06 2012-01-25 中国科学院软件研究所 一种协同草图动画生成方法和系统
CN102916998A (zh) * 2012-03-26 2013-02-06 上海方正数字出版技术有限公司 一种基于云计算的网络公共白板系统及方法
US20170289210A1 (en) * 2016-04-04 2017-10-05 Dropbox, Inc. Change comments for synchronized content items
CN112367403A (zh) * 2020-11-13 2021-02-12 深圳市前海手绘科技文化有限公司 一种动画草稿在线保存优化方法与装置

Also Published As

Publication number Publication date
CN115706811A (zh) 2023-02-17

Similar Documents

Publication Publication Date Title
US10872064B2 (en) Utilizing version vectors across server and client changes to determine device usage by type, app, and time of day
EP2248302B1 (en) Representation of qualitative object changes in a knowledge based framework for a multi-master synchronization environment
EP3068070B1 (en) Method and device for initiating network conference
EP1881424A2 (en) A system and method for image editing
CN105493501A (zh) 虚拟视觉相机
JP6086124B2 (ja) 情報処理端末、同期制御方法および同期制御プログラム
WO2009099502A1 (en) Initiation and expiration of objects in a knowledge based framework for a multi-master synchronization environment
WO2023020092A1 (zh) 基于多人协作的资源处理方法、装置及系统
WO2023020091A1 (zh) 数据处理方法及装置
KR102031589B1 (ko) 관계 체인 처리 방법 및 시스템, 그리고 저장 매체
WO2022228125A1 (zh) 数据同步的方法以及装置
RU105102U1 (ru) Автоматизированная система для создания, обработки и монтажа видеороликов
CN116684405A (zh) 一种文件传输方法、装置、电子设备及存储介质
CN116048285A (zh) 基于输入法的多人协作输入方法、装置及系统
EP2306346B1 (en) Device and method for processing information
US20210234908A1 (en) Systems and methods for collaborative editing an electronic resource using client device designations
KR20230140150A (ko) 파일 공유 방법 및 시스템
CN115297093B (zh) 边缘设备数据访问方法、相关装置及计算机程序产品
US20240305722A1 (en) Dynamic Upload and Automated Workflows for Hosted Images and Videos
US11836411B2 (en) Method and system for view sharing of digital files
US20230096129A1 (en) Hologram communication continuity
US20240121293A1 (en) Methods and systems for implementing a digital photograph sharing mobile application
CN105700775A (zh) 一种图片编辑的方法和系统
CN116527687A (zh) 一种沉浸式远程协作系统的数据同步方法及相关装置
CN114443124A (zh) 分布式数据处理方法、装置、系统、设备和介质

Legal Events

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

Ref document number: 22857404

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18682712

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22857404

Country of ref document: EP

Kind code of ref document: A1