CN114880299A - Multimedia draft file synchronization method, device, equipment and medium - Google Patents

Multimedia draft file synchronization method, device, equipment and medium Download PDF

Info

Publication number
CN114880299A
CN114880299A CN202110164421.8A CN202110164421A CN114880299A CN 114880299 A CN114880299 A CN 114880299A CN 202110164421 A CN202110164421 A CN 202110164421A CN 114880299 A CN114880299 A CN 114880299A
Authority
CN
China
Prior art keywords
file
draft
information
sending
multimedia
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110164421.8A
Other languages
Chinese (zh)
Inventor
吴远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110164421.8A priority Critical patent/CN114880299A/en
Publication of CN114880299A publication Critical patent/CN114880299A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the disclosure relates to a multimedia draft file synchronization method, a multimedia draft file synchronization device, multimedia draft file synchronization equipment and a multimedia draft file synchronization medium, wherein the method comprises the following steps: receiving a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification; determining information of at least one local draft file corresponding to the multimedia draft project identification; determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file; sending a file synchronization instruction to a sending end based on the information of at least one draft file to be synchronized; and receiving at least one draft file to be synchronized sent by the sending end. The embodiment of the disclosure can realize synchronization and backup of the multimedia draft file among different electronic devices, achieve the effect of fine-grained file synchronization among different electronic devices, and further contribute to realizing the use of the multimedia draft file among different electronic devices.

Description

Multimedia draft file synchronization method, device, equipment and medium
Technical Field
The present disclosure relates to the field of data synchronization technologies, and in particular, to a method, an apparatus, a device, and a medium for synchronizing a multimedia draft file.
Background
The data synchronization can realize the uniformity of data among different electronic devices and realize the backup of the data on different electronic devices. For example, data synchronization between the mobile phone and the computer can realize backup of videos or photos and the like on the mobile phone to the computer, or full backup of files on the mobile phone to the computer.
However, how to implement synchronization between different electronic devices for files generated in a specific application on a user terminal, for example, files invisible to a user, such as an edited draft file generated in a multimedia editing application, still lacks an effective solution.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a multimedia draft file synchronization method, apparatus, device and medium.
In a first aspect, an embodiment of the present disclosure provides a multimedia draft file synchronization method, applied to a receiving end, including:
receiving a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification;
determining information of at least one local draft file corresponding to the multimedia draft project identification;
determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized;
and receiving the at least one draft file to be synchronized sent by the sending end.
In a second aspect, an embodiment of the present disclosure further provides a multimedia draft file synchronization method, applied to a sending end, including:
sending a multimedia draft project identification to a receiving end, and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
receiving a file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized;
and sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
In a third aspect, an embodiment of the present disclosure further provides a multimedia draft file synchronization apparatus, configured at a receiving end, including:
the system comprises a draft project identification and information receiving module, a draft project identification and information receiving module and a transmitting terminal, wherein the draft project identification and information receiving module is used for receiving a multimedia draft project identification sent by the transmitting terminal and information of at least one candidate draft file corresponding to the multimedia draft project identification;
the information determining module of the local draft file is used for determining the information of at least one local draft file corresponding to the multimedia draft project identification;
the information determining module of the draft file to be synchronized is used for determining the information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
the file synchronization instruction sending module is used for sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized;
and the draft file receiving module is used for receiving the at least one draft file to be synchronized sent by the sending end.
In a fourth aspect, an embodiment of the present disclosure further provides a multimedia draft file synchronizing device, configured at a sending end, and including:
the system comprises a draft project identification and information sending module, a receiving end and a control module, wherein the draft project identification and information sending module is used for sending a multimedia draft project identification to the receiving end and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
the file synchronization instruction receiving module is used for receiving the file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized;
and the draft file sending module is used for sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
In a fifth aspect, embodiments of the present disclosure also provide an electronic device, including a memory and a processor, wherein: the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any multimedia draft file synchronization method provided by the embodiment of the disclosure.
In a sixth aspect, the present disclosure further provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes any one of the multimedia draft file synchronization methods provided in the embodiments of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages: the method comprises the steps that a sending end firstly sends a multimedia draft project identification and information of at least one candidate draft file corresponding to the multimedia draft project identification to a receiving end, then the receiving end determines the information of at least one local draft file corresponding to the multimedia draft project identification and combines the information of at least one candidate draft file to determine the information of at least one draft file to be synchronized, then the receiving end sends a file synchronization instruction to the sending end, the sending end sends the at least one draft file to be synchronized to the receiving end according to the file synchronization instruction, and finally synchronization of the multimedia draft file between the receiving end and the sending end is achieved. The embodiment of the disclosure solves the problem that an effective scheme aiming at the synchronization and backup of the multimedia draft file among different electronic devices is lacked in the existing scheme, realizes the synchronization and backup of the multimedia draft file among different electronic devices, achieves the effect of fine-grained file synchronization among different electronic devices, and is further beneficial to realizing the use of the multimedia draft file among different electronic devices.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a multimedia draft file synchronization method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another multimedia draft file synchronization method provided in the embodiment of the present disclosure;
fig. 3 is a flowchart of another multimedia draft file synchronization method provided in the embodiment of the present disclosure;
fig. 4 is a schematic diagram of establishing a transmission channel between a receiving end and a transmitting end according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of establishing a transmission channel between a receiving end and a transmitting end according to another embodiment of the present disclosure;
fig. 6 is a schematic diagram illustrating fragment transmission of a multimedia draft file according to an embodiment of the present disclosure;
fig. 7 is a flowchart of another multimedia draft file synchronization method provided by the embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a multimedia draft file synchronizing device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another multimedia draft file synchronizing device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a flowchart of a multimedia draft file synchronization method provided by an embodiment of the present disclosure, and the method is applied to a receiving end, and the method can be executed by a multimedia draft file synchronization apparatus configured at the receiving end, and the apparatus can be implemented by software and/or hardware.
In the embodiment of the present disclosure, the receiving end and the transmitting end are respectively used to refer to different electronic devices, such as a smart phone, a computer, a tablet computer, a notebook computer, and the like. And, at least one of the receiving end and the sending end installs a multimedia editing application, such as a video editing application (specifically, a video clip application, etc.) or an image editing application. The at least two receiving terminals may perform multimedia draft file synchronization with the same transmitting terminal, and the same receiving terminal may also perform multimedia draft file synchronization with the at least two transmitting terminals.
Aiming at the condition that a receiving end or a sending end installs a multimedia editing application program, after the synchronization of the multimedia draft file is realized by using the technical scheme provided by the embodiment of the disclosure, one end which installs the multimedia editing application program can directly use the multimedia draft file in the multimedia editing process, and the other end which does not install the multimedia editing application program can backup and store the held multimedia draft file and can be used in the multimedia editing process after the multimedia editing application program is installed.
Aiming at the condition that the receiving end and the sending end simultaneously install the multimedia editing application programs, after the synchronization of the multimedia draft files is realized by using the technical scheme provided by the embodiment of the disclosure, the receiving end and the sending end can directly use the same multimedia draft files in the multimedia editing process.
The multimedia draft file is an edited file generated in the process of performing multimedia editing by using a multimedia editing application program, and is different from an edited file corresponding to a multimedia editing effect finally determined by a user. The multimedia draft files may include, but are not limited to, multimedia material files, project configuration files, special effects files, and the like. The electronic equipment can automatically store the corresponding multimedia draft file according to the multimedia editing operation of the user. That is, a multimedia draft project may correspond to a complete multimedia editing process of a user, and may be used to record information such as multimedia materials, special effects, etc. used by the user in the multimedia editing process.
As shown in fig. 1, a multimedia draft file synchronization method provided by the embodiment of the present disclosure may include:
s101, receiving the multimedia draft project identification sent by the sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification.
Illustratively, a user triggers a draft file synchronization request through a touch synchronization control or a backup control on a multimedia draft file synchronization interface displayed by a receiving end (e.g., a computer device, etc.), and the receiving end automatically scans and discovers a transmitting end (e.g., an intelligent terminal device, etc.) capable of synchronizing and establishes a synchronization channel in response to the draft file synchronization request. Certainly, the user may also trigger a draft file synchronization request through a touch synchronization control or a backup control on a multimedia draft file synchronization interface displayed by the sending end, and the sending end automatically scans and finds a receiving end capable of synchronizing and establishes a synchronization channel in response to the draft file synchronization request. In the embodiment of the present disclosure, roles of the receiving end and the sending end may be inter-modulated according to a transmission direction of the multimedia draft file, and the embodiment of the present disclosure is not particularly limited.
After the receiving end and the sending end establish a synchronization channel (or called a transmission channel), the receiving end can receive the multimedia draft project identification sent by the sending end and the information of at least one candidate draft file corresponding to the multimedia draft project identification through the synchronization channel. The multimedia draft project identifier is used for uniquely identifying the draft project, and for example, a combination of a project name and a multimedia editing time may be used as the multimedia draft project identifier. One complete multimedia editing process of a multimedia draft project corresponding to a user can be used for recording information such as multimedia materials, special effects and the like used by the user in the multimedia editing process.
For the receiving end, the multimedia draft project mark can be used for marking the multimedia draft project existing in the receiving end; for the sending end, the multimedia draft project identifier may be used to identify a multimedia draft project existing in the sending end, and information of at least one candidate draft file corresponding to the multimedia draft project identifier is information of a multimedia draft file under the multimedia draft project existing in the sending end. The sender may determine information for at least one candidate draft file by traversing the local multimedia draft project folder directory. The information or referred to as file attributes of each candidate draft file may include, but is not limited to: the file name, the file relative path (which may include the file name) of the draft file relative to the top-level directory under the multimedia draft project, the file hash value (hash), the file size, the file creation time, the file modification time, and the like. The file hash value may be obtained by any available hash algorithm, for example, the file hash value of each multimedia draft file is calculated by using the MD5 message digest algorithm. Empty folders may be represented using empty strings.
S102, determining information of at least one local draft file corresponding to the multimedia draft project identification.
The receiver may determine information of at least one local draft file corresponding to the multimedia draft project identification by querying locally stored multimedia draft project data (e.g., local cache data). The information for each local draft file may include, but is not limited to: the file name, the file relative path (which may include the file name) of the draft file relative to the top-level directory under the multimedia draft project, the file hash value, the file size, the file creation time, the file modification time, and the like.
Optionally, determining information of at least one local draft file corresponding to the multimedia draft project identifier includes:
determining whether at least one historical draft file corresponding to the multimedia draft project identification exists locally;
if so, generating information of at least one local draft file based on at least one historical draft file in the same generation mode as the information of at least one candidate draft file; in order to ensure the validity of the information comparison between the receiving end and the sending end, the modes of generating the draft file information at the two ends need to be kept consistent, for example, the same hash algorithm is adopted to calculate the hash value of the file;
and if the information does not exist, generating empty file information with the same format as the information of the at least one candidate draft file as the information of the at least one local draft file.
Furthermore, the receiving end can also receive a file relative path of the draft project relative to the top-layer directory corresponding to the multimedia draft project identification and sent by the sending end; correspondingly, determining information of at least one local draft file corresponding to the multimedia draft project identifier includes: and determining information of at least one local draft file corresponding to the multimedia draft project identification based on the received file relative path. The file relative path can be used for accurately positioning the multimedia draft file under the multimedia draft project, so that the determination accuracy of the information of the local draft file is ensured.
S103, determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file.
Based on the information of the at least one candidate draft file and the information of the at least one local draft file, the information of the draft file having a difference between the receiving end and the transmitting end, for example, the information of the draft file not existing in the receiving end or the draft file having a change, that is, the information of the at least one draft file to be synchronized, may be determined.
Optionally, the information of the candidate draft file includes a file hash value of the candidate draft file, and the information of the local draft file includes a file hash value of the local draft file. Correspondingly, determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file includes:
and determining the information of at least one draft file to be synchronized by comparing the file hash value of at least one candidate draft file with the file hash value of at least one local draft file.
For example, by comparing the file hash value of the at least one candidate draft file with the file hash value of the at least one local draft file, the file hash value of the draft file that does not exist in the receiving end and the draft file with a difference in the file hash values can be obtained, and then the information of the at least one draft file to be synchronized is determined.
In addition, the sending end may also represent information of at least one candidate draft file in a file list (Slist) form, for example, represent information of at least one candidate draft file in a list form according to a corresponding relationship between a file name and other file information; similarly, the receiving end may also represent information of at least one local draft file in a form of a list (HList); furthermore, through comparison between the list SList and the list HList, an information list (DList) of at least one draft file to be synchronized is determined.
S104, sending a file synchronization instruction to a sending end based on the information of at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized.
For example, if a plurality of (i.e., at least two) draft files to be synchronized are determined, in order to ensure that each draft file can be successfully synchronized, the receiving end may send a file synchronization instruction to the sending end one by one based on each draft file to be synchronized, so as to instruct the sending end to send each draft file to be synchronized.
And S105, receiving at least one draft file to be synchronized sent by the sending end.
In order to ensure the file synchronization efficiency, the receiving end can receive all the draft files to be synchronized in parallel.
In the embodiment of the disclosure, through interaction between the receiving end and the sending end, the problem that an effective scheme for synchronizing and backing up the multimedia draft file between different electronic devices is lacked in the existing scheme is solved, synchronization and backing up of the multimedia draft file between different electronic devices are realized, a fine-grained file synchronization effect between different electronic devices is achieved, and further the use of the multimedia draft file between different electronic devices is facilitated.
On the basis of the above technical solution, optionally, if a file synchronization connection is interrupted in a process of receiving at least one draft file to be synchronized sent by a sending end, for example, the file synchronization connection is interrupted due to a fault occurring at a receiving end or the sending end, a poor communication signal, and the like, the method provided in the embodiment of the present disclosure further includes:
after the file synchronous connection is recovered, re-receiving the information of at least one candidate draft file sent by the sending end;
re-determining the information of at least one draft file to be synchronized by comparing the re-received information of at least one candidate draft file with the locally stored file transmission record information; the file transmission record information is used for recording the historical draft files which are successfully synchronized;
and sending a new file synchronization instruction to the sending end based on the re-determined information of the at least one draft file to be synchronized.
Illustratively, heartbeat information can be sent between the receiving end and the sending end in real time or periodically to verify whether the file synchronization connection between the receiving end and the sending end is interrupted, and if the receiving end or the sending end does not receive the heartbeat information within the time exceeding the preset time (specifically, the value is adaptively set), the file synchronization connection can be determined to be interrupted; or, if the sending end does not receive the notification message that the file reception is successful, which is fed back by the receiving end, within the time that exceeds the preset time length (specifically, the value is set adaptively), it may determine that the file synchronization connection is interrupted. If the sending end receives heartbeat information again or receives a notification message of successful file reception sent by the receiving end, the file synchronous connection can be determined to be recovered, then information of at least one candidate draft file is sent to the receiving end again in time, so that the receiving end determines the information of at least one draft file to be synchronized again, and further receives the draft file which is not successfully received before the file synchronous connection is interrupted again, namely, synchronization is carried out from the deviation point of the history file which is successfully synchronized, and therefore breakpoint continuous transmission of the draft file is achieved. It should be appreciated that other methods that can be used to determine that a file synchronization connection between a receiving end and a sending end is broken or that a file synchronization connection is restored may be used.
Further, if the history draft file which is successfully synchronized is determined to be unchanged (for example, the hash value of the file is not changed) by comparing the information of the at least one candidate draft file which is re-received with the file transmission record information which is locally stored, the history draft file which is successfully synchronized is copied and is used as an available draft file under the draft project corresponding to the multimedia draft project identification.
Fig. 2 is a flowchart of another multimedia draft file synchronization method provided in the embodiment of the present disclosure, which is used for exemplarily describing the embodiment of the present disclosure and should not be construed as a specific limitation to the embodiment of the present disclosure.
As shown in fig. 2, the sending end traverses the single draft root directory to generate a file list and generate a file attribute table, where the file attribute information may include, but is not limited to: information such as a file relative path (containing a file name), a file hash value, a file size, file creation time, file modification time and the like relative to the top-level directory; synchronizing a file attribute table between a receiving end and a sending end, and confirming a final transmission file table (namely a draft file table to be synchronized); then the sending end can sequentially transmit single files to the receiving end according to the file sequence on the draft file list to be synchronized; in each draft file synchronization process, the sending end records the information of the draft files which are successfully transmitted to form transmission record information, so that in the current draft file transmission process, the sending end can detect whether the information of the currently transmitted draft file is recorded in the last transmission record information; if not, copying the current draft file to a sandbox (a security mechanism capable of providing an isolation environment for the current draft file), starting a fragment transmission strategy, and transmitting the current draft file to a receiving end to complete file transmission.
If the currently transmitted draft file exists in the last transmission record information and the content of the currently transmitted draft file is not changed, directly starting a fragment transmission strategy, transmitting the currently transmitted draft file to a receiving end, and completing file transmission; if the currently transmitted draft file exists in the last transmission record information and the content of the currently transmitted draft file is changed, clearing the last transmission record information, recording new file information corresponding to the currently transmitted draft file in the file transmission record information, copying the currently transmitted draft file to a sandbox, starting a fragment transmission strategy, transmitting the currently transmitted draft file to a receiving end, and completing file transmission; if all the draft files are transmitted, the single draft synchronization is successful; and if the draft files which are not synchronized exist, repeating the operation until all the draft files are synchronized.
Fig. 3 is a flowchart of another multimedia draft file synchronization method provided in the embodiment of the present disclosure, which is further optimized and expanded based on the foregoing technical solution, and can be combined with the foregoing optional embodiments. The same operation as in fig. 1 in fig. 3 can be referred to the explanation in the above embodiment.
As shown in fig. 3, a multimedia draft file synchronization method provided by the embodiment of the present disclosure may include:
s301, detecting a connectable sending end and establishing a transmission channel with the sending end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
In the embodiment of the present disclosure, a single channel may be established between the receiving end and the sending end to transmit the draft file, for example, a wireless local area network (WiFi) connection channel or a bluetooth connection channel is used to transmit the draft file; a plurality of channels can be established between the receiving end and the sending end for transmitting draft documents, for example, a wireless local area network connection channel and a Bluetooth connection channel are adopted for transmitting draft documents at the same time. And moreover, the multi-channel transmission of the draft file is adopted, so that the upper limit of the transmission bandwidth of the draft file can be improved, and the transmission efficiency (namely the synchronization efficiency) of the draft file is improved.
Aiming at the same moment, the wireless local area network connection channel and the Bluetooth connection channel can be used for transmitting different file blocks in the draft files to be synchronized, so that repeated transmission of the same draft file to be synchronized in different transmission channels is avoided, and the successful realization of the synchronization of the draft files is ensured.
Optionally, before detecting a connectable transmitting end and establishing a transmission channel with the transmitting end, the method further includes: displaying a device connection interface according to a synchronization request triggered by a user on a multimedia draft file synchronization interface; the device connection interface is used for displaying the detected connectable sender information, such as a device name, a device identifier and the like; the device connection interface may also present the device name of the current receiver and a confirmation code, which may be generated based on host information (e.g., IP information) of the receiver. The device connection interface can be realized in a popup interface displayed on the multimedia draft file synchronization interface in a superposed manner, or in an independent interface switched by the multimedia draft file synchronization interface.
An exemplary one: detecting a connectable transmitting end and establishing a transmission channel with the transmitting end, comprising:
monitoring a handshake protocol packet sent by a sending end through a preset network port, and performing protocol handshake;
if the protocol handshake is successful, sending a confirmation code to the sending end; the confirmation code is used as verification information for establishing a transmission channel;
if receiving the confirmation information carrying the confirmation code sent by the sending end, establishing a wireless local area network connection channel with the sending end; and the confirmation information is generated by the sending end based on the confirmation operation of the user on the confirmation code.
Fig. 4 is a schematic diagram of establishing a transmission channel between a receiving end and a transmitting end according to an embodiment of the present disclosure, which is used to exemplarily describe the embodiment of the present disclosure and should not be construed as a specific limitation to the embodiment of the present disclosure. As shown in fig. 4, taking the receiving end as a host end and the transmitting end as a slave end as an example, the receiving end monitors a handshake protocol packet sent by the transmitting end through a preset network port a in a wireless local area network mode, and meanwhile, the receiving end generates a string of random character strings (MS) as an acknowledgment code according to current host information (e.g., IP information), and caches the string of random character strings in a memory and displays the string of random character strings; the receiving end may also display the device identification and the confirmation code of the detected other device for the user to select the connectable device. Meanwhile, the sending end can detect the self network configuration information, calculate the IP list of the local area network segment, and quickly and concurrently scan and connect according to the IP list and the designated port; if there is a port a on a certain IP address that is reachable, a handshake protocol packet is sent through the network port a. And if the receiving end monitors the handshake protocol packet sent by the sending end through the preset network port A, performing protocol handshake with the sending end. The handshake protocol packet may include information such as an application version number and a network port number, and if the information such as the application version number and the network port number in the receiving end and the transmitting end are consistent, the protocol handshake is successful.
After the protocol handshake between the receiving end and the sending end is successful, the receiving end sends a confirmation code to the sending end; after receiving the confirmation codes, the sending end can display the confirmation codes for the user to confirm (if a plurality of synchronizable receiving ends exist in the current network based on the same principle, the sending end can synchronously display the confirmation codes of the plurality of receiving ends); the sending end generates confirmation information based on the confirmation operation of the user on the confirmation code and sends the confirmation information to the receiving end; after receiving the confirmation information sent by the sending end, if the confirmation code carried in the confirmation information is the same as the confirmation code displayed locally, the receiving end indicates that the matching is successful, and the receiving end can establish a wireless local area network connection channel with the sending end so as to enter a data synchronization step; if the confirmation code carried in the information is different from the confirmation code displayed locally, the fact that the sending end is not the target synchronous equipment is indicated, and the receiving end cannot establish a wireless local area network connection channel with the sending end.
An exemplary two: detecting a connectable transmitting end and establishing a transmission channel with the transmitting end, comprising:
receiving a pairing request and a preset communication protocol sent by a sending end;
pairing with the sending terminal according to the pairing request, and verifying a preset communication protocol;
if the pairing is successful and the preset communication protocol passes verification, sending a confirmation code to the sending end; the confirmation code is used as verification information for establishing a transmission channel;
if receiving the confirmation information carrying the confirmation code sent by the sending end, establishing a Bluetooth connection channel with the sending end; and the confirmation information is generated by the sending end based on the confirmation operation of the user on the confirmation code.
Fig. 5 is a schematic diagram of another transmission channel established between a receiving end and a transmitting end according to the embodiment of the present disclosure, which is used to exemplarily describe the embodiment of the present disclosure and should not be construed as a specific limitation to the embodiment of the present disclosure. As shown in fig. 5, taking the receiving end as the host end and the sending end as the slave end as an example, the receiving end starts the "central device mode", waits for the peripheral device to broadcast, generates a string of random character strings (MS) as the confirmation codes according to the current host information (e.g., IP information), caches in the memory, and displays the confirmation codes, and the receiving end may also display the detected device identifiers and confirmation codes of other devices for the user to select connectable devices.
The sending end starts a peripheral equipment mode and sends a broadcast (namely sending a pairing request) to inform the receiving end of preparing communication; meanwhile, the sending end sends a preset communication protocol to the receiving end. The receiving end pairs with the sending end according to the pairing request, and verifies the preset communication protocol, for example, whether the preset communication protocol is a designated protocol is verified; and if the pairing is successful and the preset communication protocol passes the verification (namely the preset communication protocol belongs to the designated protocol), sending a confirmation code to the sending end, otherwise, not sending.
After receiving the confirmation codes, the sending end can display the confirmation codes for the user to confirm (if a plurality of synchronizable receiving ends exist currently based on the same principle, the sending end can synchronously display the confirmation codes of the plurality of receiving ends); the sending end generates confirmation information based on the confirmation operation of the user on the confirmation code and sends the confirmation information to the receiving end; after receiving the confirmation information sent by the sending end, the receiving end indicates that the matching is successful if the confirmation code carried in the confirmation information is the same as the confirmation code displayed locally, and can establish a Bluetooth connection channel with the sending end so as to enter a data synchronization step; if the confirmation code carried in the information is different from the confirmation code displayed locally, the sending end is not the target synchronous equipment, the receiving end cannot establish a Bluetooth connection channel with the sending end, and the two ends are disconnected.
If the receiving end fails to pair with the sending end according to the pairing request or fails to verify the preset communication protocol (namely the preset communication protocol does not belong to the designated protocol), the receiving end cannot establish a Bluetooth connection channel with the sending end. In addition, if the receiving end does not receive the preset communication protocol within the preset time, the verification of the preset communication protocol can be considered to be failed, and the receiving end cannot establish a bluetooth connection channel with the sending end.
Optionally, in the process of establishing the transmission channel between the receiving end and the sending end, the receiving end may further display the two-dimensional code information of the confirmation code to the sending end, so that the sending end obtains the confirmation code by scanning the two-dimensional code information, thereby enriching the sending mode of the confirmation code.
It should be noted that, in the embodiment of the present disclosure, roles of the receiving end and the sending end may be inter-modulated according to the transmission direction of the draft file, that is, in the transmission channel establishing method shown in fig. 4 or fig. 5, if the receiving end is used as the slave end and the sending end is used as the host end, the method is also applicable.
S302, receiving the multimedia draft project identification sent by the sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification.
S303, determining the information of at least one local draft file corresponding to the multimedia draft project identification.
S304, determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file.
S305, sending a file synchronization instruction to a sending end based on the information of at least one draft file to be synchronized; the file synchronization instruction is used for instructing the sending end to send at least one draft file to be synchronized.
S306, receiving the file block and the file block information sent by the sending end; and the file block is obtained by segmenting each file in at least one draft file to be synchronized by the sending end.
S307, whether the received file block exists locally is determined based on the file block information.
If so, operation S308 is performed, and if not, operation S309 is performed.
The sending end and the receiving end adopt the same file segmentation method to segment the draft file under each multimedia draft project, the specific size of the file block can be set adaptively, and the embodiment of the disclosure is not particularly limited.
Optionally, the file block information is used to describe a file block, and may include, but is not limited to, a start offset address of the current file block with respect to a file header, a block hash value of the file block, a file block name, a file block creation time, a file block modification time, and other information. Illustratively, determining whether a received file block exists locally based on the file block information includes: and comparing the block hash value of the received file block with the block hash value of the locally stored file block to determine whether the received file block exists locally. If the received block hash value exists in the file block hash value stored locally, the file block corresponding to the hash value exists locally; and if the received block hash value does not exist in the locally stored file block hash value, the file block corresponding to the hash value does not exist locally.
S308, discarding the received file block and sending a notification message about the received file block to the sending end.
The currently received file block is already stored locally, so that repeated reception is not needed, and thus the currently received file block can be discarded.
S309, storing the received file block and sending a notification message about the received file block to the sending end.
In the draft file synchronization process, the receiving end can further record the information of each received file block besides locally storing file transmission record information (used for recording the history draft file which is successfully synchronized), so as to form a file block information table (Hmap), and synchronously update the received file block information table according to the currently received file block. The information of the file block may include, but is not limited to, a starting offset address of the file block with respect to a file header, a block hash value of the file block, a file block name, a file block creation time, a file block modification time, and the like.
The notification message sent by the receiving end to the sending end can be used as a synchronization instruction for indicating the sending end to send the next file block on one hand, and can be used as a basis for changing the state information of the local file block by the sending end on the other hand. The method comprises the steps that a sending end can record the state information of file blocks of each draft file one by one in the process of sending the file blocks to a receiving end; the status information includes at least one of: unsent, sending, sent pending acknowledgement, and sent acknowledged. The receiving end receives a file block sent by the sending end, and sends a receiving notification message to the receiving end, wherein the receiving notification message is sent by the receiving end, and the receiving notification message is sent by the receiving end.
For example, after the sending end splits each draft file to be synchronized, the information of the obtained file blocks may be maintained in a file block information table (SMap) form. For example, after the sending end receives a file synchronization instruction (or a file block synchronization instruction) sent by the receiving end, it can determine which file block should be sent currently or next time by querying the file block information table, and then send the file block to the file block queue to wait for sending to the receiving end, thereby realizing synchronization of the file blocks in the receiving end and the sending end. Moreover, after the sending end sends the file block to the file block queue, the state information about the file block in the file block information table can be recorded as "sending"; after the successful sending, the sending end can record the state information about the file block in the file block information table as 'sent to be confirmed'; if the sending end receives the notification message that the file block sent by the receiving end has been received, the state information about the file block in the file block information table is recorded as 'confirmed sent', and the next file block to be sent is loaded and ready to be sent.
In addition, in the process of sending the file block to the receiving end, if the sending time of the file block is taken as a time starting point and the notification message that the file block sent by the receiving end is received is not received within the time exceeding the preset time (value adaptability setting), the file block is automatically sent again, so that the successful synchronization of the file block between the receiving end and the sending end is ensured, and the omission of the file block to be synchronized is avoided. That is, in the embodiment of the present disclosure, the file block synchronization has an acknowledgment timeout mechanism, and if the timeout is not acknowledged, the file block is automatically retransmitted.
Optionally, in the process of receiving the file block and the file block information sent by the sending end, the receiving end further includes:
determining a target file block; the target file block comprises a file block which fails to be received or a file block with abnormal data;
sending a retransmission instruction to the sending end based on the target file block; wherein, the retransmission instruction is used for instructing the sending end to retransmit the target file block.
For example, after receiving the file block retransmission instruction, the sending end retransmits the file block corresponding to the retransmission instruction, and modifies the state information of the file block corresponding to the retransmission instruction in the local file block information table, for example, modifies the state information of the file block to "sending".
In the embodiment of the disclosure, after the transmission channel is established between the receiving end and the sending end, the receiving end and the sending end may adopt a single channel or multiple channels to synchronize and backup the draft file, and may also adopt a fragment transmission strategy to achieve synchronization of the draft file, thereby achieving efficient transmission of the multimedia draft file between different electronic devices.
On the basis of the above technical solution, optionally, the information of the at least one candidate draft file includes a block hash value of a file block of the at least one candidate draft file and a file name of the at least one candidate draft file;
correspondingly, generating information of at least one local draft file based on at least one historical draft file in the same generation mode as the information of at least one candidate draft file includes:
segmenting each file in at least one historical draft file to obtain a file block of each file in at least one historical draft file;
calculating the block hash value of each file block in each file;
determining information of at least one local draft file based on the block hash value of each file block in each file and the file name of each file;
correspondingly, determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file includes:
determining at least one candidate draft file and a file with the same name in at least one historical draft file based on the file name;
and determining the information of the file with the same name, of which the received block hash value is different from the locally calculated block hash value, as one of the information of at least one draft file to be synchronized.
The method and the device have the advantages that the synchronized historical draft files are subjected to file splitting and file block hash value comparison, so that only the changed historical draft files can be transmitted again, and the unchanged historical draft files are transmitted in an incremental mode without retransmission.
Fig. 6 is a schematic diagram of fragment transmission of a multimedia draft file according to an embodiment of the present disclosure, which is used for exemplarily explaining a file fragment transmission policy in the embodiment of the present disclosure, and should not be construed as a specific limitation to the embodiment of the present disclosure. As shown in fig. 6, the receiving end and the sending end use two channels (a wireless local area network connection channel and a bluetooth connection channel) to synchronize the draft files, and the draft files to be synchronized are divided by the sending end and then sent to the receiving end one by one. In fig. 6, the current file block 3 and the file block 8 are being transmitted to the receiving end through the bluetooth connection channel, the file block 9, the file block 10, and the file block 11 are being transmitted to the receiving end through the wireless lan connection channel, and the current file block 3 is retransmitted after the transmitting end receives a file block retransmission instruction (a data error of the previously synchronized file block 3) transmitted from the receiving end, and at the same time, the file block 5 in which the data error occurs is in the waiting retransmission. File blocks 2 and 7 are file blocks that have been successfully received by the receiving end, and "instruction-2" and "instruction-7" represent notification messages that the receiving end has sent to the sending end about the file blocks that have been received, respectively, and can be used as synchronization instructions for instructing the sending end to send the next file block. After the sender receives the command-2 and the command-7, the status information of the file block 2 and the file block 7 in the local file block information table may be modified to "confirmed sent".
In addition, for any transmission channel in the wireless local area network connection channel or the bluetooth connection channel, the transmission of the file block (data transmission mode) and the transmission of the instruction (instruction transmission mode) are respectively implemented by using different transmission modes, and the specific implementation may refer to the existing principle, and the embodiment of the present disclosure is not limited specifically.
Fig. 7 is a flowchart of another multimedia draft file synchronization method provided by the embodiment of the present disclosure, which may be applied to a sending end, and the method may be executed by a multimedia draft file synchronization apparatus configured at the sending end, where the apparatus may be implemented by software and/or hardware.
The multimedia draft file synchronization method applied to the sending end provided by the embodiment of the disclosure is executed in cooperation with the multimedia draft file synchronization method applied to the receiving end provided by the embodiment of the disclosure, both of which belong to the same inventive concept, and the contents not explained in detail in the following embodiments may refer to the description in the above embodiments.
As shown in fig. 7, a multimedia draft file synchronization method provided by the embodiment of the present disclosure may include:
s501, sending a multimedia draft project identification to a receiving end, and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file.
S502, receiving a file synchronization instruction sent by a receiving end; the receiving end generates a file synchronization instruction based on information of at least one draft file to be synchronized.
S503, sending at least one draft file to be synchronized to a receiving end based on the file synchronization instruction.
Optionally, the sending, to the receiving end, information of at least one candidate draft file corresponding to the multimedia draft project identifier includes:
determining at least one candidate draft file corresponding to the multimedia draft project identification, and calculating a file hash value of each candidate draft file;
and determining information of at least one candidate draft file based on the file hash value of each candidate draft file, and sending the information to the receiving end.
Optionally, sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction, including:
segmenting each file in at least one draft file to be synchronized to obtain a file block of each file in at least one draft file to be synchronized;
determining file block information corresponding to each file block;
and sending the file block of each file and the corresponding file block information to a receiving end.
Optionally, determining file block information corresponding to each file block includes:
a block hash value for each file block is calculated.
Optionally, in the process of sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction, the method further includes:
recording the state information of the file blocks of each file; wherein the status information includes at least one of: unsent, sending, sent pending acknowledgement, and sent acknowledged.
Further, if the notification message sent by the receiving end is not received within the preset time, the file block corresponding to the notification message is sent to the receiving end again; wherein, the notification message is sent after the receiving end receives the file block.
Optionally, in the process of sending the file block of each file and the corresponding file block information to the receiving end, the method further includes:
receiving a retransmission instruction about the target file block transmitted by the receiving end, and retransmitting the target file block to the receiving end; the target file block comprises a file block which is received by the receiving end unsuccessfully or a file block with abnormal data.
Optionally, if a file synchronization connection is interrupted in a process of sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction, the method provided in the embodiment of the present disclosure further includes:
after the file synchronization connection is recovered, re-sending information of at least one candidate draft file to the receiving end, so that the receiving end re-determines the information of at least one draft file to be synchronized by comparing the re-received information of at least one candidate draft file with locally stored file transmission record information, wherein the file transmission record information is used for the receiving end to record the historical draft file which is successfully synchronized;
receiving a new file synchronization instruction sent by a receiving end; and the receiving end generates a new file synchronization instruction based on the information of the redetermined at least one draft file to be synchronized.
Optionally, the sending, to the receiving end, information of at least one candidate draft file corresponding to the multimedia draft project identifier includes:
determining at least one candidate draft file corresponding to the multimedia draft project identification, and segmenting each file in the at least one candidate draft file to obtain a file block of each file in the at least one candidate draft file;
calculating the block hash value of each file block in each file;
determining information of at least one candidate draft file based on the block hash value of each file block in each file and the file name of each file;
and sending the information of at least one candidate draft file to a receiving end.
Optionally, the multimedia draft file synchronization method provided by the embodiment of the present disclosure further includes:
detecting a connectable receiving end and establishing a transmission channel with the receiving end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
Optionally, for the same time, the wireless lan connection channel and the bluetooth connection channel are used to transmit different file blocks in the draft file to be synchronized.
Optionally, detecting a connectable receiving end, and establishing a transmission channel with the receiving end, includes:
sending a handshake protocol packet to a receiving end through a preset network port, and performing protocol handshake;
receiving a confirmation code sent by a receiving end; the receiving end sends a confirmation code after handshaking based on a handshaking protocol packet is successful, and the confirmation code is used as verification information for establishing a transmission channel;
generating confirmation information based on the confirmation operation of the user on the confirmation code, and sending the confirmation information to the receiving end; the confirmation information is used for the receiving end to establish a wireless local area network connection channel with the sending end, and the confirmation information carries a confirmation code.
Optionally, detecting a connectable receiving end, and establishing a transmission channel with the receiving end, includes:
sending a pairing request and a preset communication protocol to a receiving end;
receiving a confirmation code sent by a receiving end; the receiving end successfully pairs based on the pairing request and successfully verifies the preset communication protocol, and then sends the confirmation code which is used as verification information for establishing a transmission channel;
generating confirmation information based on the confirmation operation of the user on the confirmation code, and sending the confirmation information to the receiving end; the confirmation information is used for the receiving end to establish a Bluetooth connection channel with the sending end, and the confirmation information carries a confirmation code.
Optionally, detecting a connectable receiving end, and establishing a transmission channel with the receiving end, further comprising:
and scanning the two-dimensional code information of the confirmation code displayed by the receiving end to obtain the confirmation code.
Optionally, the multimedia draft file synchronization method provided by the embodiment of the present disclosure further includes:
and respectively determining file blocks to be transmitted in the wireless local area network connection channel and the Bluetooth connection channel according to the data transmission speed of the wireless local area network connection channel and the Bluetooth connection channel.
In the embodiment of the disclosure, a sending end firstly sends a multimedia draft project identifier and information of at least one candidate draft file corresponding to the multimedia draft project identifier to a receiving end, then the receiving end determines the information of at least one local draft file corresponding to the multimedia draft project identifier and combines the information of the at least one candidate draft file to determine the information of the at least one draft file to be synchronized, then the receiving end sends a file synchronization instruction to the sending end, and the sending end sends the at least one draft file to be synchronized to the receiving end according to the file synchronization instruction, so that the synchronization of the multimedia draft file between the receiving end and the sending end is finally realized. The embodiment of the disclosure solves the problem that an effective scheme aiming at the synchronization and backup of the multimedia draft file among different electronic devices is lacked in the existing scheme, realizes the synchronization and backup of the multimedia draft file among different electronic devices, achieves the effect of fine-grained file synchronization among different electronic devices, and is further beneficial to realizing the use of the multimedia draft file among different electronic devices.
Fig. 8 is a schematic structural diagram of a multimedia draft file synchronization apparatus according to an embodiment of the present disclosure, which may be configured at a receiving end, and the apparatus may be implemented by software and/or hardware.
As shown in fig. 8, the multimedia draft file synchronizing apparatus 700 provided in this disclosure may include a draft project identification and information receiving module 701, an information determining module 702 of a local draft file, an information determining module 703 of a draft file to be synchronized, a file synchronization instruction sending module 704, and a draft file receiving module 705, where:
a draft project identification and information receiving module 701, configured to receive a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification;
an information determining module 702 of the local draft file, configured to determine information of at least one local draft file corresponding to the multimedia draft project identifier;
an information determining module 703 of the draft file to be synchronized, configured to determine information of at least one draft file to be synchronized based on information of at least one candidate draft file and information of at least one local draft file;
a file synchronization instruction sending module 704, configured to send a file synchronization instruction to a sending end based on information of at least one draft file to be synchronized; the file synchronization instruction is used for indicating a sending end to send at least one draft file to be synchronized;
the draft file receiving module 705 is configured to receive at least one draft file to be synchronized sent by the sending end.
Optionally, the information of the candidate draft file includes a file hash value of the candidate draft file, and the information of the local draft file includes a file hash value of the local draft file;
correspondingly, the module 703 for determining information of the draft file to be synchronized includes:
and the file hash value comparison unit is used for determining the information of at least one draft file to be synchronized by comparing the file hash value of at least one candidate draft file with the file hash value of at least one local draft file.
Optionally, the draft file receiving module 705 includes:
the file block receiving unit is used for receiving the file blocks and the file block information sent by the sending end; the file block is obtained by segmenting each file in at least one draft file to be synchronized by a sending end;
a local file block determination unit configured to determine whether a received file block exists locally based on the file block information;
a file block discarding unit, configured to discard the received file block if the received file block exists, and send a notification message that the file block has been received to the sending end;
and the file block storage unit is used for storing the received file block if the file block does not exist, and sending a notification message about the fact that the file block is received to the sending end.
Optionally, the file block information includes a block hash value of the file block;
correspondingly, the local file block determination unit includes:
and the block hash value comparison subunit is used for comparing the block hash value of the received file block with the block hash value of the locally stored file block to determine whether the received file block exists locally.
Optionally, the draft file receiving module 705 further includes:
a target file block determination unit for determining a target file block; the target file block comprises a file block which fails to be received or a file block with abnormal data;
a file block instruction resending unit, which is used for sending resending instructions to the sending end based on the target file block; wherein, the retransmission instruction is used for instructing the sending end to retransmit the target file block.
Optionally, if a file synchronization connection is interrupted in a process of receiving at least one draft file to be synchronized sent by a sending end, the draft project identifier and information receiving module 701 is further configured to: after the file synchronous connection is recovered, re-receiving the information of at least one candidate draft file sent by the sending end;
the information determining module 703 of the draft file to be synchronized is further configured to determine information of the at least one draft file to be synchronized again by comparing the information of the at least one candidate draft file received again with the file transmission record information stored locally; the file transmission record information is used for recording the historical draft files which are successfully synchronized;
the file synchronization instruction sending module 704 is further configured to send a new file synchronization instruction to the sending end based on the information of the redetermined at least one draft file to be synchronized.
Optionally, the multimedia draft file synchronizing apparatus 700 provided in the embodiment of the present disclosure further includes:
and the history synchronous file determining module is used for copying the history draft file which is successfully synchronized and serving as an available draft file under the draft project corresponding to the multimedia draft project identification if the history draft file which is successfully synchronized is determined to be unchanged by comparing the information of the at least one candidate draft file which is received again with the file transmission record information stored locally.
Optionally, the information determining module 702 of the local draft file includes:
the historical draft file determining unit is used for determining whether at least one historical draft file corresponding to the multimedia draft project identification exists locally;
an information determining unit of the first local draft file, configured to generate, if there is at least one local draft file, information of the at least one local draft file based on the at least one historical draft file in a same generation manner as information of the at least one candidate draft file;
and an information determining unit of the second local draft file, configured to generate, if not, empty file information in the same format as the information of the at least one candidate draft file as the information of the at least one local draft file.
Optionally, the information of the at least one candidate draft file includes a block hash value of a file block of the at least one candidate draft file and a file name of the at least one candidate draft file;
correspondingly, the information determination unit of the first local draft file includes:
the historical draft file segmentation subunit is used for segmenting each file in the at least one historical draft file to obtain a file block of each file in the at least one historical draft file;
the block hash value calculation operator unit is used for calculating the block hash value of each file block in each file;
the information determining subunit of the local draft file is used for determining information of at least one local draft file based on the block hash value of each file block in each file and the file name of each file;
correspondingly, the module 703 for determining information of the draft file to be synchronized includes:
a same-name file determining unit configured to determine a same-name file of the at least one candidate draft file and the at least one history draft file based on the file name;
and the homonym file information determining unit is used for determining the information of the homonym file with the difference between the received block hash value and the locally calculated block hash value as one of the information of the at least one draft file to be synchronized.
Optionally, the multimedia draft file synchronizing apparatus 700 provided in the embodiment of the present disclosure further includes:
the transmission channel establishing module is used for detecting a connectable sending end and establishing a transmission channel with the sending end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
Optionally, for the same time, the wireless lan connection channel and the bluetooth connection channel are used to transmit different file blocks in the draft file to be synchronized.
Optionally, the transmission channel establishing module includes:
the handshake protocol packet receiving unit is used for monitoring a handshake protocol packet sent by the sending end through a preset network port and performing protocol handshake;
the first confirmation code sending unit is used for sending a confirmation code to the sending end if the protocol handshake is successful; the confirmation code is used as verification information for establishing a transmission channel;
the first confirmation information receiving unit is used for establishing a wireless local area network connection channel with the sending end if the confirmation information which is sent by the sending end and carries the confirmation code is received; and the confirmation information is generated by the sending end based on the confirmation operation of the user on the confirmation code.
Optionally, the transmission channel establishing module includes:
the pairing request and communication protocol receiving unit is used for receiving a pairing request and a preset communication protocol sent by a sending end;
the pairing and verification unit is used for pairing with the sending end according to the pairing request and verifying the preset communication protocol;
the second confirmation code sending unit is used for sending a confirmation code to the sending end if the pairing is successful and the preset communication protocol passes the verification; the confirmation code is used as verification information for establishing a transmission channel;
the second confirmation information receiving unit is used for establishing a Bluetooth connection channel with the sending end if the confirmation information which is sent by the sending end and carries the confirmation code is received; and the confirmation information is generated by the sending end based on the confirmation operation of the user on the confirmation code.
Optionally, the transmission channel establishing module further includes:
and the two-dimension code information sending unit is used for displaying the two-dimension code information of the confirmation code to the sending end so that the sending end can obtain the confirmation code by scanning the two-dimension code information.
Optionally, the multimedia draft file synchronizing apparatus 700 provided in the embodiment of the present disclosure further includes:
the equipment connection interface display module is used for displaying the equipment connection interface according to a synchronization request triggered by a user on the multimedia draft file synchronization interface; wherein the device connection interface is configured to present the detected connectable sender information.
Optionally, the multimedia draft file synchronizing apparatus 700 provided in the embodiment of the present disclosure further includes:
the file relative path receiving module is used for receiving a file relative path of a draft project relative to a top-layer directory corresponding to the multimedia draft project identification and sent by the sending end;
correspondingly, the information determining module 702 of the local draft file is specifically configured to:
and determining information of at least one local draft file corresponding to the multimedia draft project identification based on the received file relative path.
The multimedia draft file synchronization device configured at the receiving end provided by the embodiment of the disclosure can execute the multimedia draft file synchronization method applied to the receiving end provided by the embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure that may not be described in detail in the embodiments of the apparatus of the disclosure.
Fig. 9 is a schematic structural diagram of another multimedia draft file synchronization apparatus provided in this disclosure, which may be configured at a sending end, and the apparatus may be implemented by software and/or hardware.
As shown in fig. 9, the multimedia draft file synchronizing apparatus 800 provided by the embodiment of the present disclosure may include a draft project identification and information sending module 801, a file synchronization instruction receiving module 802, and a draft file sending module 803, where:
a draft project identification and information sending module 801, configured to send a multimedia draft project identification to a receiving end, and send information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of at least one candidate draft file and the information of at least one local draft file;
a file synchronization instruction receiving module 802, configured to receive a file synchronization instruction sent by a receiving end; the receiving end generates a file synchronization instruction based on information of at least one draft file to be synchronized;
and the draft file sending module 803 is configured to send at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
Optionally, the draft project identification and information sending module 801 includes:
the draft file and hash value determining unit is used for determining at least one candidate draft file corresponding to the multimedia draft project identification and calculating the file hash value of each candidate draft file;
and the draft project identification and information sending unit is used for determining the information of at least one candidate draft file based on the file hash value of each candidate draft file and sending the information to the receiving end.
Optionally, the draft file sending module 803 includes:
the file segmentation unit is used for segmenting each file in at least one draft file to be synchronized to obtain a file block of each file in at least one draft file to be synchronized;
the file block information determining unit is used for determining file block information corresponding to each file block;
and the file block sending unit is used for sending the file block of each file and the corresponding file block information to the receiving end.
Optionally, the file block information determining unit is specifically configured to: a block hash value for each file block is calculated.
Optionally, the draft file sending module 803 further includes:
a state information recording unit for recording state information of file blocks of each file; wherein the status information includes at least one of: unsent, sending, sent pending acknowledgement, and sent acknowledged.
Optionally, the draft file sending module 803 further includes:
the file block retransmission unit is used for retransmitting the file block corresponding to the notification message to the receiving end if the notification message sent by the receiving end is not received within the preset time; wherein, the notification message is sent after the receiving end receives the file block.
Optionally, the draft file sending module 803 further includes:
a file block retransmission instruction unit for receiving a retransmission instruction about a target file block transmitted by a receiving end and retransmitting the target file block to the receiving end; the target file block comprises a file block which is received by the receiving end unsuccessfully or a file block with abnormal data.
Optionally, if a file synchronization connection is interrupted in the process of sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction, the draft project identification and information sending module 801 is further configured to:
after the file synchronization connection is recovered, re-sending information of at least one candidate draft file to the receiving end, so that the receiving end re-determines the information of at least one draft file to be synchronized by comparing the re-received information of at least one candidate draft file with locally stored file transmission record information, wherein the file transmission record information is used for the receiving end to record the historical draft file which is successfully synchronized;
the file synchronization instruction receiving module 802 is further configured to: receiving a new file synchronization instruction sent by a receiving end; and the receiving end generates a new file synchronization instruction based on the information of the redetermined at least one draft file to be synchronized.
Optionally, the draft project identification and information sending module 801 includes:
the draft project identification sending unit is used for sending the multimedia draft project identification to the receiving end;
the information sending unit of the candidate draft file is used for sending the information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end;
the information sending unit of the candidate draft file comprises the following components:
the file segmentation subunit is used for determining at least one candidate draft file corresponding to the multimedia draft project identification, and segmenting each file in the at least one candidate draft file to obtain a file block of each file in the at least one candidate draft file;
the block hash value calculation operator unit is used for calculating the block hash value of each file block in each file;
the file information determining subunit is used for determining information of at least one candidate draft file based on the block hash value of each file block in each file and the file name of each file;
and the file information sending subunit is used for sending the information of at least one candidate draft file to the receiving end.
Optionally, the multimedia draft file synchronizing device 800 provided in the embodiment of the present disclosure further includes:
the transmission channel establishing module is used for detecting a connectable receiving end and establishing a transmission channel with the receiving end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
Optionally, for the same time, the wireless lan connection channel and the bluetooth connection channel are used to transmit different file blocks in the draft file to be synchronized.
Optionally, the transmission channel establishing module includes:
the handshake protocol packet sending unit is used for sending a handshake protocol packet to a receiving end through a preset network port and performing protocol handshake;
a first acknowledgement code receiving unit for receiving an acknowledgement code transmitted by a receiving end; the receiving end sends a confirmation code after handshaking based on a handshaking protocol packet is successful, and the confirmation code is used as verification information for establishing a transmission channel;
the first confirmation information sending unit is used for generating confirmation information based on the confirmation operation of the user on the confirmation code and sending the confirmation information to the receiving end; the confirmation information is used for the receiving end to establish a wireless local area network connection channel with the sending end, and the confirmation information carries a confirmation code.
Optionally, the transmission channel establishing module includes:
the pairing request and communication protocol sending unit is used for sending a pairing request and a preset communication protocol to the receiving end;
a second acknowledgement code receiving unit for receiving the acknowledgement code transmitted by the receiving end; the receiving end successfully pairs based on the pairing request and successfully verifies the preset communication protocol, and then sends the confirmation code which is used as verification information for establishing a transmission channel;
the second confirmation information sending unit is used for generating confirmation information based on the confirmation operation of the user on the confirmation code and sending the confirmation information to the receiving end; the confirmation information is used for the receiving end to establish a Bluetooth connection channel with the sending end, and the confirmation information carries a confirmation code.
Optionally, the transmission channel establishing module further includes:
and the two-dimension code information scanning unit is used for scanning the two-dimension code information of the confirmation code displayed by the receiving end to obtain the confirmation code.
Optionally, the multimedia draft file synchronizing device 800 provided in the embodiment of the present disclosure further includes:
and the file block distribution module is used for respectively determining file blocks to be transmitted in the wireless local area network connection channel and the Bluetooth connection channel according to the data transmission speeds of the wireless local area network connection channel and the Bluetooth connection channel.
The multimedia draft file synchronization device configured at the sending end provided by the embodiment of the disclosure can execute the multimedia draft file synchronization method applied to the sending end provided by the embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure that may not be described in detail in the embodiments of the apparatus of the disclosure.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, which is used to exemplarily illustrate an electronic device that implements any multimedia draft file synchronization method provided in an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, wearable electronic devices, servers, and the like. The electronic device shown in fig. 10 is merely an example, and should not bring any limitation to the functions and occupation ranges of the embodiments of the present disclosure.
As shown in fig. 10, the electronic device 900 includes one or more processors 901 and memory 902.
The processor 901 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 900 to perform desired functions.
Memory 902 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium, and the processor 901 may execute the program instructions to implement the multimedia draft file synchronization method provided by the embodiment of the present disclosure, and may also implement other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
On one hand, the multimedia draft file synchronization method applied to the receiving end provided by the embodiment of the present disclosure may include: receiving a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification; determining information of at least one local draft file corresponding to the multimedia draft project identification; determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file; sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized; and receiving the at least one draft file to be synchronized sent by the sending end.
On the other hand, the method for synchronizing the multimedia draft file applied to the sending end provided by the embodiment of the present disclosure may include: sending a multimedia draft project identification to a receiving end, and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file; receiving a file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized; and sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
It should be understood that electronic device 900 may also perform other alternative embodiments provided by the disclosed method embodiments.
In one example, the electronic device 900 may further include: an input device 903 and an output device 904, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 903 may include, for example, a keyboard, a mouse, and the like.
The output device 904 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 904 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device 900 relevant to the present disclosure are shown in fig. 10, omitting components such as buses, input/output interfaces, and the like. In addition, electronic device 900 may include any other suitable components depending on the particular application.
In addition to the above methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform any of the multimedia draft file synchronization methods provided by embodiments of the present disclosure.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device.
Furthermore, the disclosed embodiments may also provide a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to execute any of the multimedia draft file synchronization methods provided by the disclosed embodiments.
On one hand, the multimedia draft file synchronization method applied to the receiving end provided by the embodiment of the present disclosure may include: receiving a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification; determining information of at least one local draft file corresponding to the multimedia draft project identification; determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file; sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized; and receiving the at least one draft file to be synchronized sent by the sending end.
On the other hand, the method for synchronizing the multimedia draft file applied to the sending end provided by the embodiment of the present disclosure may include: sending a multimedia draft project identification to a receiving end, and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file; receiving a file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized; and sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
It should be understood that the computer program instructions, when executed by a processor, may also cause the processor to perform other alternative embodiments provided by the disclosed method embodiments.
A computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (25)

1. A multimedia draft file synchronization method is applied to a receiving end and comprises the following steps:
receiving a multimedia draft project identification sent by a sending end and information of at least one candidate draft file corresponding to the multimedia draft project identification;
determining information of at least one local draft file corresponding to the multimedia draft project identification;
determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized;
and receiving the at least one draft file to be synchronized sent by the sending end.
2. The method of claim 1, wherein the information for the candidate draft file comprises a file hash value for the candidate draft file, and the information for the local draft file comprises a file hash value for the local draft file;
correspondingly, the determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file includes:
and determining the information of the at least one draft file to be synchronized by comparing the file hash value of the at least one candidate draft file with the file hash value of the at least one local draft file.
3. The method according to claim 1, wherein the receiving the at least one draft file to be synchronized sent by the sender comprises:
receiving the file blocks and the file block information sent by the sending end; the file block is obtained by segmenting each file in the at least one draft file to be synchronized by the sending end;
determining whether the received file block exists locally based on the file block information;
if yes, discarding the received file block, and sending a notification message about the received file block to the sending end;
and if the received file block does not exist, storing the received file block, and sending a notification message about the received file block to the sending end.
4. The method of claim 3, wherein the file chunk information comprises a chunk hash value of a file chunk;
correspondingly, the determining whether the received file block exists locally based on the file block information includes:
and comparing the received block hash value of the file block with the block hash value of the locally stored file block to determine whether the received file block exists locally.
5. The method according to claim 3, wherein in the process of receiving the file block and the file block information sent by the sender, the method further comprises:
determining a target file block; the target file block comprises a file block which fails to be received or a file block with abnormal data;
sending a retransmission instruction to the sending end based on the target file block; wherein the retransmission instruction is used for instructing the sending end to retransmit the target file block.
6. The method according to claim 1, wherein if a file synchronization connection is interrupted during the process of receiving the at least one draft file to be synchronized sent by the sender, the method further comprises:
after the file synchronous connection is recovered, re-receiving the information of at least one candidate draft file sent by the sending end;
re-determining the information of at least one draft file to be synchronized by comparing the re-received information of at least one candidate draft file with locally stored file transmission record information; the file transmission record information is used for recording the historical draft files which are successfully synchronized;
and sending a new file synchronization instruction to the sending end based on the re-determined information of the at least one draft file to be synchronized.
7. The method of claim 6, further comprising:
and if the fact that the historical draft files which are successfully synchronized do not change is determined by comparing the information of the at least one candidate draft file which is received again with the file transmission record information stored locally, copying the historical draft files which are successfully synchronized, and using the historical draft files as available draft files under the draft project corresponding to the multimedia draft project identification.
8. The method of claim 1, wherein determining information for at least one local draft file corresponding to the multimedia draft project identification comprises:
determining whether at least one historical draft file corresponding to the multimedia draft project identification exists locally;
if so, generating information of the at least one local draft file based on the at least one historical draft file in the same generation mode as the information of the at least one candidate draft file;
and if the at least one candidate draft file does not exist, generating empty file information with the same format as the information of the at least one candidate draft file as the information of the at least one local draft file.
9. The method of claim 8, wherein the information for the at least one candidate draft file comprises a block hash value of a file block of the at least one candidate draft file and a file name of the at least one candidate draft file;
correspondingly, the generating information of the at least one local draft file based on the at least one historical draft file in the same generating manner as the information of the at least one candidate draft file includes:
segmenting each file in the at least one historical draft file to obtain a file block of each file in the at least one historical draft file;
calculating the block hash value of each file block in each file;
determining information of the at least one local draft file based on the block hash value of each file block in each file and the file name of each file;
correspondingly, the determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file includes:
determining a same-name file of the at least one candidate draft file and the at least one historical draft file based on the file name;
and determining the information of the file with the same name, of which the received block hash value is different from the locally calculated block hash value, as one of the information of the at least one draft file to be synchronized.
10. The method of claim 1, further comprising:
detecting a connectable transmitting end and establishing a transmission channel with the transmitting end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
11. The method of claim 10, wherein the wireless local area network connection channel and the bluetooth connection channel are used to transmit different file blocks in the draft file to be synchronized for the same time.
12. The method of claim 10, further comprising:
displaying a device connection interface according to a synchronization request triggered by a user on a multimedia draft file synchronization interface; wherein the device connection interface is used for displaying the detected connectable sender information.
13. A multimedia draft file synchronization method is applied to a sending end and comprises the following steps:
sending a multimedia draft project identification to a receiving end, and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
receiving a file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized;
and sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
14. The method of claim 13, wherein said sending information of at least one candidate draft file corresponding to the multimedia draft project identity to the recipient comprises:
determining at least one candidate draft file corresponding to the multimedia draft project identification, and calculating a file hash value of each candidate draft file;
and determining the information of the at least one candidate draft file based on the file hash value of each candidate draft file, and sending the information to the receiving end.
15. The method according to claim 13, wherein the sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction comprises:
segmenting each file in the at least one draft file to be synchronized to obtain a file block of each file in the at least one draft file to be synchronized;
determining file block information corresponding to each file block;
and sending the file block of each file and the corresponding file block information to the receiving end.
16. The method of claim 15, further comprising:
if the notification message sent by the receiving end is not received within the preset time, the file block corresponding to the notification message is sent to the receiving end again; and the notification message is sent by the receiving end after the receiving end receives the file block.
17. The method according to claim 15, wherein in the process of sending the file block of each file and the corresponding file block information to the receiving end, the method further comprises:
receiving a retransmission instruction about a target file block transmitted by the receiving end and retransmitting the target file block to the receiving end; the target file block comprises a file block which is received by the receiving end unsuccessfully or a file block with abnormal data.
18. The method according to claim 13, wherein if a file synchronization connection interruption occurs during the process of sending the at least one draft file to be synchronized to the receiving end based on the file synchronization instruction, the method further comprises:
after the file synchronization connection is recovered, re-sending information of at least one candidate draft file to the receiving end, so that the receiving end re-determines the information of at least one draft file to be synchronized by comparing the re-received information of at least one candidate draft file with locally stored file transmission record information, wherein the file transmission record information is used for the receiving end to record the history draft file which is successfully synchronized;
receiving a new file synchronization instruction sent by the receiving end; and the receiving end generates the new file synchronization instruction based on the information of the redetermined at least one draft file to be synchronized.
19. The method of claim 13, wherein said sending information of at least one candidate draft file corresponding to the multimedia draft project identity to the recipient comprises:
determining at least one candidate draft file corresponding to the multimedia draft project identification, and segmenting each file in the at least one candidate draft file to obtain a file block of each file in the at least one candidate draft file;
calculating the block hash value of each file block in each file;
determining information of the at least one candidate draft file based on the block hash value of each file block in each file and the file name of each file;
and sending the information of the at least one candidate draft file to the receiving end.
20. The method of claim 13, further comprising:
detecting a connectable receiving end and establishing a transmission channel with the receiving end; wherein, the transmission channel comprises a wireless local area network connection channel and/or a Bluetooth connection channel.
21. The method of claim 20, wherein the wlan connection channel and the bluetooth connection channel are used to transmit different file blocks in the draft file to be synchronized at the same time.
22. A multimedia draft file synchronization apparatus, configured at a receiving end, includes:
the system comprises a draft project identification and information receiving module, a draft project identification and information receiving module and a transmitting terminal, wherein the draft project identification and information receiving module is used for receiving a multimedia draft project identification sent by the transmitting terminal and information of at least one candidate draft file corresponding to the multimedia draft project identification;
the information determining module of the local draft file is used for determining the information of at least one local draft file corresponding to the multimedia draft project identification;
the information determining module of the draft file to be synchronized is used for determining the information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
the file synchronization instruction sending module is used for sending a file synchronization instruction to the sending end based on the information of the at least one draft file to be synchronized; the file synchronization instruction is used for indicating the sending end to send at least one draft file to be synchronized;
and the draft file receiving module is used for receiving the at least one draft file to be synchronized sent by the sending end.
23. A multimedia draft file synchronization device, configured at a sending end, includes:
the draft project identification and information sending module is used for sending a multimedia draft project identification to a receiving end and sending information of at least one candidate draft file corresponding to the multimedia draft project identification to the receiving end; the receiving end is used for determining information of at least one local draft file corresponding to the multimedia draft project identification, and determining information of at least one draft file to be synchronized based on the information of the at least one candidate draft file and the information of the at least one local draft file;
the file synchronization instruction receiving module is used for receiving the file synchronization instruction sent by the receiving end; the receiving end generates a file synchronization instruction based on the information of the at least one draft file to be synchronized;
and the draft file sending module is used for sending at least one draft file to be synchronized to the receiving end based on the file synchronization instruction.
24. An electronic device comprising a memory and a processor, wherein:
the memory has stored therein a computer program which, when executed by the processor, performs the multimedia draft file synchronization method of any one of claims 1 to 12 or performs the multimedia draft file synchronization method of any one of claims 13 to 21.
25. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, executes the multimedia draft file synchronization method of any one of claims 1 to 12 or the multimedia draft file synchronization method of any one of claims 13 to 21.
CN202110164421.8A 2021-02-05 2021-02-05 Multimedia draft file synchronization method, device, equipment and medium Pending CN114880299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110164421.8A CN114880299A (en) 2021-02-05 2021-02-05 Multimedia draft file synchronization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110164421.8A CN114880299A (en) 2021-02-05 2021-02-05 Multimedia draft file synchronization method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114880299A true CN114880299A (en) 2022-08-09

Family

ID=82667605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110164421.8A Pending CN114880299A (en) 2021-02-05 2021-02-05 Multimedia draft file synchronization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114880299A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051654A1 (en) * 2022-09-05 2024-03-14 华为技术有限公司 File processing method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915574A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 File synchronization method, receiver equipment and system
WO2018095175A1 (en) * 2016-11-25 2018-05-31 腾讯科技(深圳)有限公司 Communication message synchronization method, data backup method, device and storage medium
CN109739810A (en) * 2018-12-07 2019-05-10 中山市江波龙电子有限公司 File synchronisation method, server, client and the device with store function
CN111294391A (en) * 2020-01-17 2020-06-16 深信服科技股份有限公司 Configuration synchronization method, device, equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915574A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 File synchronization method, receiver equipment and system
WO2018095175A1 (en) * 2016-11-25 2018-05-31 腾讯科技(深圳)有限公司 Communication message synchronization method, data backup method, device and storage medium
CN109739810A (en) * 2018-12-07 2019-05-10 中山市江波龙电子有限公司 File synchronisation method, server, client and the device with store function
CN111294391A (en) * 2020-01-17 2020-06-16 深信服科技股份有限公司 Configuration synchronization method, device, equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024051654A1 (en) * 2022-09-05 2024-03-14 华为技术有限公司 File processing method and electronic device

Similar Documents

Publication Publication Date Title
TWI259674B (en) Method and apparatus for reducing transmission errors in a third generation cellular system
US8898311B2 (en) Data communication method and information processing device
WO2013159700A1 (en) File transmission method and terminal
USRE43151E1 (en) Acknowledging data transmissions in the presence of multiple shared-communications channels
CN107645368B (en) Method and apparatus for unsolicited block acknowledgement
CN111147196A (en) Data transmission method, data sending device and data receiving device
CN114880299A (en) Multimedia draft file synchronization method, device, equipment and medium
CN111064813B (en) Method and device for synchronizing processing messages during block chain consensus processing
US7779299B2 (en) Efficiently re-starting and recovering synchronization operations between a client and server
CN115242783B (en) Transmission method, transmission apparatus, electronic device, and medium
WO2012119547A1 (en) Data synchronization method, system and device
WO2008098523A1 (en) A method and device for returning the status report
CN112867063A (en) Data transmission method, data receiving method, base station and electronic price tag
WO1999060753A1 (en) Method of data transmission, system for data transmission, control device for data transmission, and program recording medium
JP4759418B2 (en) Message recovery system and recovery method
CN115314445B (en) Data message transmission method and device, storage medium and electronic equipment
JP6260361B2 (en) Data transfer system and method
JP2013026820A (en) Communication apparatus, communication method and communication system
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
US10412247B2 (en) Image reading device configured to transmit image data and image data transmitting method therefor
KR101460183B1 (en) System and Method for Message Service with Reliability
US10104251B2 (en) Image reading device and image data transmission method
CN118057791A (en) Sequence number synchronization method, system, device and equipment
JP3719253B2 (en) Data receiving node
JP2006109016A (en) Transmitter/receiver, transmission/reception control method, program and memory

Legal Events

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