CN106162580B - Multimedia message synchronization method and device - Google Patents
Multimedia message synchronization method and device Download PDFInfo
- Publication number
- CN106162580B CN106162580B CN201510206494.3A CN201510206494A CN106162580B CN 106162580 B CN106162580 B CN 106162580B CN 201510206494 A CN201510206494 A CN 201510206494A CN 106162580 B CN106162580 B CN 106162580B
- Authority
- CN
- China
- Prior art keywords
- multimedia message
- local
- database
- synchronized
- characteristic parameters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present disclosure provides a synchronization method of multimedia messages, the method comprising: judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message; and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database. The method and the device can judge whether the multimedia message to be synchronized is synchronized to a local multimedia message database through the characteristic parameters of the multimedia message, and do not need to introduce additional identification fields into the multimedia message.
Description
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method and an apparatus for synchronizing multimedia messages.
Background
With the development of the mobile internet, users also have more and more intelligent terminals; for example, a user may have a smartphone, tablet, PC computer, and the like at the same time. Therefore, how to synchronize user data (e.g. multimedia messages of a user) between different devices of the same user becomes important when the user uses the intelligent terminal.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for synchronizing multimedia messages.
According to a first aspect of the embodiments of the present disclosure, a method for synchronizing multimedia messages is provided, the method comprising:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database.
Optionally, the determining, based on the feature parameter of the multimedia message, whether the multimedia message is synchronized to a local multimedia message database further includes:
reading the multimedia message from a storage device of a server or a third party;
and extracting the characteristic parameters of the read multimedia message based on a preset extraction strategy.
Optionally, the step of determining whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameter of the multimedia message includes:
inquiring in a local multimedia message database by taking the characteristic parameters of the multimedia message as index values;
when a multimedia message matched with the characteristic parameters is searched in a local multimedia message database, the multimedia message is determined to be synchronized to the local multimedia message database;
and when the multimedia message matched with the characteristic parameters is not inquired in the local multimedia message database, determining that the multimedia message is not synchronized to the local multimedia message database.
Optionally, the method further includes:
and when the multimedia message is synchronized to a local multimedia message database, stopping repeatedly synchronizing the multimedia message.
Optionally, the characteristic parameter includes one or more combinations of sending and receiving time of the multimedia message, type information of the multimedia message, and text description information of the multimedia message.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for synchronizing multimedia messages, the device including:
the judging module is used for judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and the synchronization module is used for synchronizing the multimedia message to a local multimedia message database when the multimedia message is not synchronized to the local multimedia message database.
Optionally, the apparatus further comprises:
the reading module is used for reading the multimedia message from the storage equipment of the server or a third party before judging whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message;
and the extraction module is used for extracting the characteristic parameters of the read multimedia message based on a preset extraction strategy.
Optionally, the synchronization module includes:
the query submodule is used for querying a local multimedia message database by taking the characteristic parameters of the multimedia message as index values;
the first determining sub-module is used for determining that the multimedia message is synchronized to the local multimedia message database when the multimedia message matched with the characteristic parameters is inquired in the local multimedia message database;
and the second determining sub-module is used for determining that the multimedia message is not synchronized to the local multimedia message database when the multimedia message matched with the characteristic parameters is not inquired in the local multimedia message database.
Optionally, the apparatus further comprises:
and the stopping module is used for stopping repeated synchronization aiming at the multimedia message when the multimedia message is synchronized to a local multimedia message database.
Optionally, the characteristic parameter includes one or more combinations of sending and receiving time of the multimedia message, type information of the multimedia message, and text description information of the multimedia message.
According to a third aspect of the embodiments of the present disclosure, there is provided a device for synchronizing multimedia messages, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the above embodiments of the present disclosure, whether the multimedia message has been synchronized to a local multimedia message database is determined by a characteristic parameter based on the multimedia message; when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database, so that whether the multimedia message to be synchronized is synchronized to the local multimedia message database can be judged through the characteristic parameters of the multimedia message, and an additional identification field does not need to be introduced into the multimedia message.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
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.
Fig. 1 is a flowchart illustrating a multimedia message synchronization method according to an exemplary embodiment;
fig. 2 is a flowchart illustrating another multimedia message synchronization method according to an exemplary embodiment;
fig. 3 is a schematic block diagram of a multimedia message synchronization apparatus according to an exemplary embodiment;
fig. 4 is a schematic block diagram of another multimedia message synchronization apparatus according to an exemplary embodiment;
fig. 5 is a schematic block diagram of another multimedia message synchronization apparatus according to an exemplary embodiment;
fig. 6 is a schematic block diagram of another multimedia message synchronization apparatus according to an exemplary embodiment;
fig. 7 is a schematic structural diagram illustrating a synchronization apparatus for the multimedia message according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
When a user uses a smart phone, if a multimedia message in a short message received by the user needs to be synchronized to another smart phone, the multimedia message may be uploaded to the cloud or stored in a storage device of a third party in advance, and then the multimedia message uploaded in advance is downloaded from the cloud or the storage device of the third party by using another smart phone, and then the multimedia message is synchronized to a local multimedia message database (for example, a multimedia message database in a local android system).
In an actual using process, when a user synchronizes a multimedia message downloaded from a cloud or a third-party storage device to a local multimedia message database, in order to avoid repeated synchronization of the multimedia message, it is usually necessary to determine in advance whether the multimedia message is synchronized to the local multimedia message database before synchronizing the multimedia message to the local multimedia message database.
Due to the limitation of the multimedia message protocol, when judging whether the multimedia message is synchronized to the local multimedia message database, usually an additional field is introduced into the multimedia message database as a unique identifier of the multimedia message to describe the multimedia message, whether the same multimedia message is stored in the local multimedia message database is judged in advance through the unique identifier, and if the same multimedia message is stored in the local multimedia message database, the multimedia message can not be repeatedly synchronized.
However, when the multimedia message is uniquely identified by introducing an additional field into the multimedia message database, since the multimedia message database does not contain the additional field under the default condition, and the user needs to separately define the multimedia message database on the basis of the existing multimedia message database, the synchronization application or the short message application of a third party cannot be supported, and when the user changes a system (ROM) of a smart phone or changes the mobile phone, the system may not recognize the additional field, so that the multimedia message cannot be synchronized.
In view of the above, the present disclosure provides a multimedia message synchronization method, which determines whether a multimedia message is synchronized to a local multimedia message database based on a characteristic parameter of the multimedia message; when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database, so that whether the multimedia message to be synchronized is synchronized to the local multimedia message database can be judged through the characteristic parameters of the multimedia message, and an additional identification field does not need to be introduced into the multimedia message.
As shown in fig. 1, fig. 1 is a multimedia message synchronization method according to an exemplary embodiment, where the multimedia message synchronization method is used in a terminal, and includes the following steps:
in step 101, judging whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message;
in step 102, when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database.
In this embodiment, when a user synchronizes a multimedia message received by a terminal to another terminal, the multimedia message may be uploaded to a server or stored in a storage device of a third party in advance, when the user uses another terminal, the multimedia message may be read from the server or the storage device of the third party, and corresponding feature parameters are extracted from the multimedia message based on a preset extraction policy, and then whether the multimedia message is synchronized to a local multimedia message database is determined according to the extracted feature parameters.
The terminal can be an intelligent terminal, such as a smart phone; the server can be a server of a cloud, a server cluster or a cloud platform; the third-party storage device can be a data persistence storage device; such as third party data persisted storage hard disks, storage arrays, and the like.
When the method is implemented, the characteristic parameters can comprise sending and receiving time of the multimedia message, type information of the multimedia message and text description information of the multimedia message; when the other terminal extracts the corresponding feature parameters from the multimedia message based on the preset extraction strategy, the preset extraction strategy can be set according to the content actually contained in the feature parameters.
For example, in an implementation manner shown in this embodiment, the characteristic parameter may be any one of the parameters of the sending and receiving time of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message, and assuming that the characteristic parameter is the sending and receiving time of the multimedia message, the extraction policy may be set as a policy for extracting the sending and receiving time of the multimedia message in advance, and after the sending and receiving time of the multimedia message is extracted based on the extraction policy, the sending and receiving time of the multimedia message can be used as an index value to be inquired in a local multimedia message database, when the multimedia message matched with the sending and receiving time is inquired in a local multimedia message database, the multimedia message can be considered to be stored in the local multimedia message database, and the multimedia message is synchronized to the local multimedia message database in advance.
In this embodiment, when determining whether the multimedia message is synchronized to the local multimedia message database based on the extracted feature parameters, the selected feature parameters are too single to cause erroneous determination; for example, taking an android multimedia message database as an example, the android multimedia message database stores multimedia message data accurately to a second, so if only the sending and receiving time of the multimedia message is selected as a characteristic parameter to judge whether the multimedia message is synchronized to the local multimedia message database, the multimedia message continuously sent and received in the same second cannot be judged.
Therefore, when the method is implemented, the characteristic parameter can also be a combination of a plurality of parameters in the parameters such as the sending and receiving time of the multimedia message, the type information of the multimedia message, the text description information of the multimedia message and the like.
For example, in an implementation manner shown in this embodiment, the characteristic parameter may be a combination of parameters such as sending and receiving time of the multimedia message, type information of the multimedia message, and text description information of the multimedia message. In this case, the extraction policy may be set in advance as a policy for extracting the sending and receiving times of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message, respectively.
After the sending and receiving time of the multimedia message, the type information of the multimedia message and the text description information of the multimedia message are extracted based on the extraction strategy, the sending and receiving time of the multimedia message, the type information of the multimedia message and the text description information of the multimedia message can be used as index values to be inquired in a local multimedia message database, and when the multimedia message matched with the sending and receiving time, the type information of the multimedia message and the text description information of the multimedia message is inquired in the local multimedia message database, the same multimedia message can be considered to be stored in the local multimedia message database at the moment, and the multimedia message is synchronized to the local multimedia message database in advance. By the method, the accuracy of judging whether the multimedia message is synchronized to the local multimedia message database or not based on the selected characteristic parameters can be improved to the greatest extent.
It should be noted that, on one hand, the types of the multimedia messages may include a theme type multimedia message, a video multimedia message, an audio multimedia message, a picture multimedia message, and the like when being implemented. In this case, when the type of the multimedia message is determined and extracted, the method can be realized by checking whether the multimedia message carries an accessory and identifying the type of the multimedia message accessory; for example, first, whether the multimedia message carries an accessory can be judged; if the accessory is not carried, the multimedia message can be determined to be a subject type multimedia message; when the multimedia message carries the accessory, the accessory type can be further identified; if the attachment type is a picture file, the multimedia message can be determined to be a picture multimedia message at the moment; if the attachment type is an audio file, the multimedia message can be determined to be an audio multimedia message at the moment; in the same way, if the attachment type is a video file, the multimedia message can be determined to be a video multimedia message.
On the other hand, the type of the multimedia message can also comprise a sent multimedia message, a received but not downloaded multimedia message, a downloaded multimedia message and the like when being realized. In this case, when the type of the multimedia message is determined, the method can be directly realized according to multimedia message type information carried in a multimedia message protocol header; for example, an identification code describing the type of the multimedia message may be predefined in the multimedia message protocol header, for example, the identification code 128 represents a sent multimedia message, the identification code 130 represents a received but not downloaded multimedia message, and the identification code 132 represents a downloaded short message, at this time, the type of the multimedia message may be determined by reading the identification code in the multimedia message protocol header, and when extracting the type information of the multimedia message, the identification code may also be directly extracted from the protocol header of the multimedia message. In addition, the text description information of the multimedia message can include text information in the subject of the multimedia message and text information in the body of the multimedia message when the text description information of the multimedia message is realized.
Of course, in practical applications, when determining whether the multimedia message has been synchronized to the local multimedia message database based on the extracted feature parameters, the feature parameters may be specified as feature parameters of other types of multimedia messages in addition to the sending and receiving times of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message described above; for example, the characteristic parameter may be further specified as the size of the multimedia message, or a hash value, a discrete value, or a characteristic value generated after the multimedia message is calculated based on a preset algorithm is specified as the characteristic parameter, and the like, which is not particularly limited in this embodiment.
In this embodiment, when it is determined that the multimedia message is not synchronized to the local multimedia message database based on the selected characteristic parameters, the other terminal may download the multimedia message from the server or the storage device of the third party, and insert the downloaded multimedia message into the local multimedia message database to synchronize the multimedia message to the local. And when the multimedia message is judged to be synchronized to the local multimedia message database based on the selected characteristic parameters, the multimedia message can not be repeatedly synchronized, the multimedia message is skipped to continuously read the next multimedia message, and the next multimedia message is synchronized.
In the above embodiment, whether the multimedia message is synchronized to a local multimedia message database is judged by the characteristic parameters based on the multimedia message; when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database, so that whether the multimedia message to be synchronized is synchronized to the local multimedia message database can be judged through the characteristic parameters of the multimedia message, and an additional identification field does not need to be introduced into the multimedia message.
As shown in fig. 2, fig. 2 is a multimedia message synchronization method according to an exemplary embodiment, where the multimedia message synchronization method is used in a terminal, and includes the following steps:
in step 201, the multimedia message is read from a storage device of a server or a third party;
in step 202, extracting feature parameters of the read multimedia message based on a preset extraction strategy;
in step 203, the characteristic parameters of the multimedia message are used as index values to query in a local multimedia message database;
in step 204, when the multimedia message matched with the characteristic parameter is not searched in the local multimedia message database, it is determined that the multimedia message is not synchronized to the local multimedia message database, and the multimedia message is synchronized to the local multimedia message database.
The terminal may be a smart terminal, such as a smart phone; the server can be a server of a cloud, a server cluster or a cloud platform; the third-party storage device can be a data persistence storage device; such as third party data persisted storage hard disks, storage arrays, and the like.
In this embodiment, when a user synchronizes a multimedia message received by a terminal to another terminal, the multimedia message may be uploaded to a server or stored in a storage device of a third party in advance, when the user uses another terminal, the multimedia message may be read from the server or the storage device of the third party, and corresponding feature parameters are extracted from the multimedia message based on a preset extraction policy, and then whether the multimedia message is synchronized to a local multimedia message database is determined according to the extracted feature parameters.
When the method is implemented, the characteristic parameters can comprise sending and receiving time of the multimedia message, type information of the multimedia message and text description information of the multimedia message; when the other terminal extracts the corresponding feature parameters from the multimedia message based on the preset extraction strategy, the preset extraction strategy can be set according to the content actually contained in the feature parameters.
For example, in an implementation manner shown in this embodiment, the characteristic parameter may be any one of the parameters of the sending and receiving time of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message, and assuming that the characteristic parameter is the sending and receiving time of the multimedia message, the extraction policy may be set as a policy for extracting the sending and receiving time of the multimedia message in advance, and after the sending and receiving time of the multimedia message is extracted based on the extraction policy, the sending and receiving time of the multimedia message can be used as an index value to be inquired in a local multimedia message database, when the multimedia message matched with the sending and receiving time is inquired in a local multimedia message database, the multimedia message can be considered to be stored in the local multimedia message database, and the multimedia message is synchronized to the local multimedia message database in advance.
In this embodiment, when determining whether the multimedia message is synchronized to the local multimedia message database based on the extracted feature parameters, the selected feature parameters are too single to cause erroneous determination; for example, taking an android multimedia message database as an example, the android multimedia message database stores multimedia message data accurately to a second, so if only the sending and receiving time of the multimedia message is selected as a characteristic parameter to judge whether the multimedia message is synchronized to the local multimedia message database, the multimedia message continuously sent and received in the same second cannot be judged.
Therefore, when the method is implemented, the characteristic parameter can also be a combination of a plurality of parameters in the parameters such as the sending and receiving time of the multimedia message, the type information of the multimedia message, the text description information of the multimedia message and the like.
For example, in an implementation manner shown in this embodiment, the characteristic parameter may be a combination of parameters such as sending and receiving time of the multimedia message, type information of the multimedia message, and text description information of the multimedia message. In this case, the extraction policy may be set in advance as a policy for extracting the sending and receiving times of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message, respectively.
After the sending and receiving time of the multimedia message, the type information of the multimedia message and the text description information of the multimedia message are extracted based on the extraction strategy, the sending and receiving time of the multimedia message, the type information of the multimedia message and the text description information of the multimedia message can be used as index values to be inquired in a local multimedia message database, and when the multimedia message matched with the sending and receiving time, the type information of the multimedia message and the text description information of the multimedia message is inquired in the local multimedia message database, the same multimedia message can be considered to be stored in the local multimedia message database at the moment, and the multimedia message is synchronized to the local multimedia message database in advance. By the method, the accuracy of judging whether the multimedia message is synchronized to the local multimedia message database or not based on the selected characteristic parameters can be improved to the greatest extent.
It should be noted that, on one hand, the types of the multimedia messages may include a theme type multimedia message, a video multimedia message, an audio multimedia message, a picture multimedia message, and the like when being implemented. When the type of the multimedia message is determined, the method can be realized by checking whether the multimedia message carries an accessory and identifying the type of the multimedia message accessory; for example, first, whether the multimedia message carries an accessory can be judged; if the accessory is not carried, the multimedia message can be determined to be a subject type multimedia message; when the multimedia message carries the accessory, the accessory type can be further identified; if the attachment type is a picture file, the multimedia message can be determined to be a picture multimedia message at the moment; if the attachment type is an audio file, the multimedia message can be determined to be an audio multimedia message at the moment; in the same way, if the attachment type is a video file, the multimedia message can be determined to be a video multimedia message.
On the other hand, the type of the multimedia message can also comprise a sent multimedia message, a received but not downloaded multimedia message, a downloaded multimedia message and the like when being realized. In this case, when the type of the multimedia message is determined, the method can be directly realized according to multimedia message type information carried in a multimedia message protocol header; for example, an identification code describing the type of the multimedia message may be predefined in the multimedia message protocol header, for example, the identification code 128 represents a sent multimedia message, the identification code 130 represents a received but not downloaded multimedia message, and the identification code 132 represents a downloaded short message, at this time, the type of the multimedia message may be determined by reading the identification code in the multimedia message protocol header, and when extracting the type information of the multimedia message, the identification code may also be directly extracted from the protocol header of the multimedia message. In addition, the text description information of the multimedia message can include text information in the subject of the multimedia message and text information in the body of the multimedia message when the text description information of the multimedia message is realized.
Of course, in practical applications, when determining whether the multimedia message has been synchronized to the local multimedia message database based on the extracted feature parameters, the feature parameters may be specified as feature parameters of other types of multimedia messages in addition to the sending and receiving times of the multimedia message, the type information of the multimedia message, and the text description information of the multimedia message described above; for example, the characteristic parameter may be further specified as the size of the multimedia message, or a hash value, a discrete value, or a characteristic value generated after the multimedia message is calculated based on a preset algorithm is specified as the characteristic parameter, and the like, which is not particularly limited in this embodiment.
In this embodiment, when it is determined that the multimedia message is not synchronized to the local multimedia message database based on the selected characteristic parameters, the other terminal may download the multimedia message from the server or the storage device of the third party, and insert the downloaded multimedia message into the local multimedia message database to synchronize the multimedia message to the local. And when the multimedia message is judged to be synchronized to the local multimedia message database based on the selected characteristic parameters, the multimedia message can not be repeatedly synchronized, the multimedia message is skipped to continuously read the next multimedia message, and the next multimedia message is synchronized.
In the above embodiment, whether the multimedia message is synchronized to a local multimedia message database is judged by the characteristic parameters based on the multimedia message; when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database, so that whether the multimedia message to be synchronized is synchronized to the local multimedia message database can be judged through the characteristic parameters of the multimedia message, and an additional identification field does not need to be introduced into the multimedia message.
Corresponding to the embodiment of the multimedia message synchronization method, the invention also provides an embodiment of a device.
Fig. 3 is a schematic block diagram of a multimedia message synchronization apparatus according to an exemplary embodiment.
As shown in fig. 3, a multimedia message synchronization apparatus 300 according to an exemplary embodiment includes: a judging module 301 and a synchronizing module 302; wherein:
the judgment module 301 is configured to judge whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message;
the synchronization module 302 is configured to synchronize the multimedia message to a local multimedia message database when the multimedia message is not synchronized to the local multimedia message database.
In the above embodiment, whether the multimedia message is synchronized to a local multimedia message database is judged by the characteristic parameters based on the multimedia message; when the multimedia message is not synchronized to the local multimedia message database, the multimedia message is synchronized to the local multimedia message database, so that whether the multimedia message to be synchronized is synchronized to the local multimedia message database can be judged through the characteristic parameters of the multimedia message, and an additional identification field does not need to be introduced into the multimedia message.
Referring to fig. 4, fig. 4 is a block diagram of another apparatus shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 3, the apparatus 300 may further include a reading module 303 and an extracting module 304; wherein:
the reading module 303 is configured to read the multimedia message from a server or a storage device of a third party before determining whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message;
the extraction module 304 is configured to extract feature parameters of the read multimedia messages based on a preset extraction policy.
Referring to fig. 5, fig. 5 is a block diagram of another apparatus according to an exemplary embodiment of the present disclosure, based on the foregoing embodiment shown in fig. 3, the synchronization module 302 may include a query submodule 302A, a first determination submodule 302B, and a second determination submodule 302C; wherein:
the query submodule 302A is configured to query a local multimedia message database by using the characteristic parameter of the multimedia message as an index value;
the first determining sub-module 302B is configured to determine that the multimedia message is synchronized to the local multimedia message database when the multimedia message matched with the feature parameter is searched in the local multimedia message database;
the second determining sub-module 302C is configured to determine that the multimedia message is not synchronized to the local multimedia message database when the multimedia message matching the feature parameter is not queried in the local multimedia message database.
In the above embodiments, the characteristic parameter may include one or more combinations of sending and receiving times of the multimedia message, type information of the multimedia message, and text description information of the multimedia message.
It should be noted that, the structures of the query submodule 302A, the first determination submodule 302B and the second determination submodule 302C shown in the apparatus embodiment shown in fig. 5 may also be included in the apparatus embodiment of fig. 4, and the disclosure is not limited thereto.
Referring to fig. 6, fig. 6 is a block diagram of another apparatus according to an exemplary embodiment of the present disclosure, which is based on the foregoing embodiment shown in fig. 3, and the apparatus 300 may include a stopping module 305; wherein:
the stopping module 305 is configured to stop repeating the synchronization for the multimedia message when the multimedia message has been synchronized to a local multimedia message database.
It should be noted that the structure of the stopping module 305 shown in the device embodiment shown in fig. 6 may also be included in the device embodiments shown in fig. 4 to 5, and the disclosure is not limited thereto.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides a device for synchronizing multimedia messages, the device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database.
Accordingly, the present disclosure also provides a terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database.
Fig. 7 is a schematic structural diagram illustrating a multimedia message synchronization apparatus according to an exemplary embodiment.
As shown in fig. 7, according to an exemplary embodiment, an apparatus 700 for synchronizing multimedia messages is shown, where the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: processing components 701, memory 702, power components 703, multimedia components 704, audio components 705, input/output (I/O) interfaces 706, sensor components 707, and communication components 708.
The processing component 701 generally controls the overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 701 may include one or more processors 709 to execute instructions to perform all or part of the steps of the methods described above. Further, processing component 701 may include one or more modules that facilitate interaction between processing component 701 and other components. For example, the processing component 701 may include a multimedia module to facilitate interaction between the multimedia component 704 and the processing component 701.
The memory 702 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 702 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 703 provides power to the various components of the device 700. The power components 703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 704 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 704 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 705 is configured to output and/or input audio signals. For example, audio component 705 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 702 or transmitted via the communication component 708. In some embodiments, audio component 705 also includes a speaker for outputting audio signals.
The I/O interface 702 provides an interface between the processing component 701 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 707 includes one or more sensors for providing various aspects of state assessment for the apparatus 700. For example, sensor assembly 707 may detect an open/closed state of apparatus 700, the relative positioning of components, such as a display and keypad of apparatus 700, the change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, the orientation or acceleration/deceleration of apparatus 700, and the change in temperature of apparatus 700. The sensor assembly 707 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 707 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 708 is configured to facilitate communication between the apparatus 700 and other devices in a wired or wireless manner. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 708 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 708 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 702 comprising instructions, executable by the processor 709 of the apparatus 700 to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein, when the instructions in the storage medium are executed by a processor of the mobile terminal, the mobile terminal is enabled to execute a synchronization method of multimedia messages, comprising:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
and when the multimedia message is not synchronized to the local multimedia message database, synchronizing the multimedia message to the local multimedia message database.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (9)
1. A method for synchronizing multimedia messages is characterized by comprising the following steps:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
when the multimedia message is not synchronized to a local multimedia message database, synchronizing the multimedia message to the local multimedia message database;
the step of judging whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message comprises the following steps: inquiring in a local multimedia message database by taking the characteristic parameters of the multimedia message as index values; when the multimedia message matched with the characteristic parameters is not inquired in a local multimedia message database, determining that the multimedia message is not synchronized to the local multimedia message database;
the characteristic parameters comprise the sending and receiving time of the multimedia message, the type information of the multimedia message and the combination of a plurality of text description information of the multimedia message.
2. The method of claim 1, wherein the determining whether the multimedia message has been synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message further comprises:
reading the multimedia message from a storage device of a server or a third party;
and extracting the characteristic parameters of the read multimedia message based on a preset extraction strategy.
3. The method of claim 2, wherein the determining whether the multimedia message has been synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message further comprises:
inquiring in a local multimedia message database by taking the characteristic parameters of the multimedia message as index values;
and when the multimedia message matched with the characteristic parameters is searched in a local multimedia message database, determining that the multimedia message is synchronized to the local multimedia message database.
4. The method of claim 1, wherein the method further comprises:
and when the multimedia message is synchronized to a local multimedia message database, stopping repeatedly synchronizing the multimedia message.
5. A device for synchronizing multimedia messages is characterized in that the device comprises:
the judging module is used for judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
the synchronization module is used for synchronizing the multimedia message to a local multimedia message database when the multimedia message is not synchronized to the local multimedia message database;
the judging module comprises:
the query submodule is used for querying a local multimedia message database by taking the characteristic parameters of the multimedia message as index values;
the second determining sub-module is used for determining that the multimedia message is not synchronized to the local multimedia message database when the multimedia message matched with the characteristic parameters is not inquired in the local multimedia message database;
the characteristic parameters comprise the sending and receiving time of the multimedia message, the type information of the multimedia message and the combination of a plurality of text description information of the multimedia message.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the reading module is used for reading the multimedia message from the storage equipment of the server or a third party before judging whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message;
and the extraction module is used for extracting the characteristic parameters of the read multimedia message based on a preset extraction strategy.
7. The apparatus of claim 6, wherein the determining module further comprises:
and the first determining sub-module is used for determining that the multimedia message is synchronized to the local multimedia message database when the multimedia message matched with the characteristic parameters is inquired in the local multimedia message database.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the stopping module is used for stopping repeated synchronization aiming at the multimedia message when the multimedia message is synchronized to a local multimedia message database.
9. A synchronization device of multimedia messages is characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether the multimedia message is synchronized to a local multimedia message database or not based on the characteristic parameters of the multimedia message;
when the multimedia message is not synchronized to a local multimedia message database, synchronizing the multimedia message to the local multimedia message database;
the step of judging whether the multimedia message is synchronized to a local multimedia message database based on the characteristic parameters of the multimedia message comprises the following steps: inquiring in a local multimedia message database by taking the characteristic parameters of the multimedia message as index values;
when the multimedia message matched with the characteristic parameters is not inquired in a local multimedia message database, determining that the multimedia message is not synchronized to the local multimedia message database;
the characteristic parameters comprise the sending and receiving time of the multimedia message, the type information of the multimedia message and the combination of a plurality of text description information of the multimedia message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510206494.3A CN106162580B (en) | 2015-04-27 | 2015-04-27 | Multimedia message synchronization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510206494.3A CN106162580B (en) | 2015-04-27 | 2015-04-27 | Multimedia message synchronization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106162580A CN106162580A (en) | 2016-11-23 |
CN106162580B true CN106162580B (en) | 2020-01-14 |
Family
ID=57347363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510206494.3A Active CN106162580B (en) | 2015-04-27 | 2015-04-27 | Multimedia message synchronization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162580B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744606A (en) * | 2005-09-30 | 2006-03-08 | 北京邮电大学 | Synchronous processing method of mobile user personal data between terminal and server |
KR20060098778A (en) * | 2005-03-07 | 2006-09-19 | 삼성전자주식회사 | Method for searching service by using mobile communication terminal and the mobile communication terminal and server therefor |
CN101730297A (en) * | 2008-10-13 | 2010-06-09 | 北京摩软科技有限公司 | Mobile terminal, method and server for realizing data management |
CN102638565A (en) * | 2012-02-27 | 2012-08-15 | 无锡华赛信息技术有限公司 | Mobile phone cloud encryption backup and recovery method based on cloud architecture |
CN103200233A (en) * | 2013-03-05 | 2013-07-10 | 广东欧珀移动通信有限公司 | Message back-up method based on increment and system thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729671A (en) * | 2009-12-31 | 2010-06-09 | 宇龙计算机通信科技(深圳)有限公司 | Method for managing backup file, terminal thereof and system thereof |
CN102368842B (en) * | 2011-10-12 | 2013-03-20 | 中国联合网络通信集团有限公司 | Detection method of abnormal behavior of mobile terminal and detection system thereof |
-
2015
- 2015-04-27 CN CN201510206494.3A patent/CN106162580B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060098778A (en) * | 2005-03-07 | 2006-09-19 | 삼성전자주식회사 | Method for searching service by using mobile communication terminal and the mobile communication terminal and server therefor |
CN1744606A (en) * | 2005-09-30 | 2006-03-08 | 北京邮电大学 | Synchronous processing method of mobile user personal data between terminal and server |
CN101730297A (en) * | 2008-10-13 | 2010-06-09 | 北京摩软科技有限公司 | Mobile terminal, method and server for realizing data management |
CN102638565A (en) * | 2012-02-27 | 2012-08-15 | 无锡华赛信息技术有限公司 | Mobile phone cloud encryption backup and recovery method based on cloud architecture |
CN103200233A (en) * | 2013-03-05 | 2013-07-10 | 广东欧珀移动通信有限公司 | Message back-up method based on increment and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106162580A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3174053A1 (en) | Method, apparatus and system for playing multimedia data, computer program and recording medium | |
CN104219092B (en) | The compatibility method of a kind of router administration application and router firmware and device | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
CN104166689B (en) | The rendering method and device of e-book | |
EP3041204A1 (en) | Method for prompting calling request and device for the same | |
CN107204883B (en) | Network fault processing method and device | |
EP3147802B1 (en) | Method and apparatus for processing information | |
RU2645282C2 (en) | Method and device for calling via cloud-cards | |
CN106354504B (en) | Message display method and device | |
CN106331328B (en) | Information prompting method and device | |
CN111343481B (en) | Data sharing method and device, electronic equipment and storage medium | |
CN108011990B (en) | Contact management method and device | |
CN108270661B (en) | Information reply method, device and equipment | |
CN105491518A (en) | Method and device for social reminding based on wearable devices | |
CN108629814B (en) | Camera adjusting method and device | |
CN105101121B (en) | A kind of method and device that information is sent | |
CN104536753B (en) | Backlog labeling method and device | |
CN106878654B (en) | Video communication method and device | |
CN106506808B (en) | Method and device for prompting communication message | |
CN110213062B (en) | Method and device for processing message | |
CN113079493A (en) | Information matching display method and device and electronic equipment | |
CN112363786A (en) | Advertisement picture processing method and device, electronic equipment and storage medium | |
CN108012258B (en) | Data traffic management method and device for virtual SIM card, terminal and server | |
CN106027735B (en) | Method and device for integrating communication numbers | |
CN107122356B (en) | Method and device for displaying face value and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |