CN115883709A - Method and device for synchronizing address book, electronic equipment and storage medium - Google Patents

Method and device for synchronizing address book, electronic equipment and storage medium Download PDF

Info

Publication number
CN115883709A
CN115883709A CN202211521030.8A CN202211521030A CN115883709A CN 115883709 A CN115883709 A CN 115883709A CN 202211521030 A CN202211521030 A CN 202211521030A CN 115883709 A CN115883709 A CN 115883709A
Authority
CN
China
Prior art keywords
address book
data
video network
video
streaming media
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
CN202211521030.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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202211521030.8A priority Critical patent/CN115883709A/en
Publication of CN115883709A publication Critical patent/CN115883709A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for synchronizing an address book, wherein the method comprises the following steps: responding to a preset event for triggering address book synchronization, and generating an address book synchronization request; the preset events comprise preset periodic synchronous address list events; sending the address book synchronization request to a video network core server in a video network so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server; receiving the video networking address book data returned by the video networking core server; and responding to an address book synchronization instruction sent by the mobile terminal, and synchronizing the current address book of the mobile terminal according to the video networking address book data. By the embodiment of the invention, the address book synchronization based on the video networking protocol is realized, so that the data transmission in the address book synchronization process is safer and more reliable.

Description

Method and device for synchronizing address book, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data synchronization, and in particular, to a method and an apparatus for synchronizing an address book, an electronic device, and a storage medium.
Background
The address book is generally used to record information of a terminal capable of communicating, and the terminal may initiate communication according to the terminal in the address book stored in the address book, and when the terminal is changed (for example, a terminal capable of communicating is removed or a terminal capable of communicating is added), the address book of the terminal needs to be synchronized.
In practical application, the mobile terminal can send a request to the streaming media service system through the HTTP, the mobile phone streaming media service system calls the managed API through the HTTP request to acquire address book data and finally returns the address book data to the mobile terminal, and the IP protocol is carried out in the whole process, so that safe and reliable data transmission is difficult to realize.
Disclosure of Invention
In view of the above problems, it is proposed to provide a method, an apparatus, an electronic device and a storage medium for synchronizing an address book, which overcome the above problems or at least partially solve the above problems, including:
a method for synchronizing an address book is applied to a streaming media system, and comprises the following steps:
the method comprises the steps that a streaming media system responds to a preset event for triggering address book synchronization, and an address book synchronization request is generated; the preset events comprise preset periodic synchronous address list events;
the streaming media system sends the address book synchronization request to a video network core server in a video network, so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server;
the streaming media system receives the address book data of the video network returned by the core server of the video network;
and the streaming media system responds to an address book synchronization instruction sent by the mobile terminal and synchronizes the current address book of the mobile terminal according to the address book data of the video network.
Optionally, the generating an address book synchronization request in response to a preset event for triggering address book synchronization includes:
responding to a preset event for triggering address list synchronization, and acquiring machine code information of the streaming media system; the machine code information is generated by the network management server of the video network and is stored in the streaming media system;
and generating an address book synchronization request according to the machine code information, wherein the machine code information is used for verifying the received address book synchronization request by the video network management server, and returning video network address book data of the corresponding authority of the streaming media system when the verification is successful.
Optionally, the generating an address book synchronization request according to the machine code information includes:
encrypting the machine code information by adopting a preset encryption algorithm;
and generating an address book synchronization request based on the encrypted machine code information.
Optionally, the video networking network management server is configured to, in response to a received address book synchronization request, perform compression and subpackaging on video networking address book data to be transmitted, generate a plurality of address book data packets with sequential identifiers, transmit the address book data packets to the video networking core server, synchronize, according to an address book synchronization instruction sent by a mobile terminal, a current address book of the mobile terminal according to the video networking address book data, and includes:
in response to an address book synchronization instruction sent by the mobile terminal, decompressing a plurality of received address book data packets with sequence identifications to generate a plurality of address book data with sequence identifications;
combining the address book data with the sequential identifications according to the sequential identifications to obtain target address book data;
and synchronizing the current address book of the mobile terminal according to the target address book data.
Optionally, the synchronizing the current address book of the mobile terminal according to the address book data of the video networking includes:
determining the data type of the address book data of the video network according to the terminal identification of the video network of the address book data of the video network;
and synchronizing the current address book of the mobile terminal according to the data type.
Optionally, the synchronizing the current address book of the mobile terminal according to the data type includes:
when the data type of the video networking address book data is homologous data, synchronizing the address book in a mode that the video networking address book data covers homologous address book information in the current address book;
and when the data type of the video networking address book data is incremental data, synchronizing the address book in a mode of adding corresponding fields of the video networking address book data in the current address book.
Optionally, the streaming media system includes a cache server, a streaming media server, and an SDK for video networking, where the streaming media server is configured to send the address book synchronization request to a core server of the video networking through the SDK for video networking; the cache server is used for storing the video networking address book data, responding to an address book synchronization instruction sent by the mobile terminal when the mobile terminal accesses the cache server, and synchronizing the current address book of the mobile terminal according to the video networking address book data.
An apparatus for synchronizing an address book, the apparatus comprising:
the synchronous request generation module is used for responding to a preset event for triggering address book synchronization and generating an address book synchronous request; the preset events comprise preset periodic synchronous address list events;
the synchronous request transmission module is used for sending the address book synchronous request to a video network core server in a video network so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server;
the address book information receiving module is used for receiving the video network address book data returned by the video network core server;
and the address book synchronization module is used for responding to an address book synchronization instruction sent by the mobile terminal and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the method of synchronizing an address book as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of synchronizing an address book as described above.
The embodiment of the invention has the following advantages:
according to the embodiment of the invention, the streaming media system generates the address book synchronization request by responding to the preset event for triggering address book synchronization, the preset event comprises the event of a preset periodic synchronization address book, the address book synchronization request is sent to the video network core server in the video network, so that the video network core server obtains the video network address book data of the streaming media system corresponding to the authority from the video network management server, receives the video network address book data returned by the video network core server, and further responds to the address book synchronization instruction sent by the mobile terminal, and synchronizes the current address book of the mobile terminal according to the video network address book data, thereby realizing the address book synchronization based on the video network protocol and enabling the data transmission in the address book synchronization process to be safer and more reliable.
Moreover, in the embodiment of the invention, the video network management server can check the identity of the streaming media through the machine code, thereby further avoiding data leakage and ensuring the data security of the address list.
Furthermore, in the embodiment of the invention, the network management server of the video network performs compression and packet transmission on the data of the address book of the video network to be transmitted, so that the data transmission pressure is reduced on one hand, and the data transmission efficiency can be improved on the other hand.
Furthermore, in the embodiment of the invention, the data type of the address book data to be synchronized is quickly ensured through the internet of view identifier, so that the address book is quickly synchronized.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of a method for synchronizing address books according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for synchronizing address books according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of another method for synchronizing address books according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of another method for synchronizing address books according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a network architecture for synchronizing address books according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for synchronizing an address book according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a method for synchronizing an address book according to an embodiment of the present invention is shown, and applied to a streaming media system, the method may specifically include the following steps:
step 101, a streaming media system responds to a preset event for triggering address book synchronization, and generates an address book synchronization request; the preset events comprise preset events of a periodic synchronous address list;
in practical application, the streaming media system, the mobile terminal, the video network core server and the video network management server can realize synchronous update of the video network address book in the mobile terminal.
The video network management server is used for managing a plurality of video network terminals in the video network and generating a video network address book based on the video network terminals.
The video network core server can be used for data transmission between the video network management server and the streaming media system in the address book synchronization process.
The mobile terminal is used for sending the address book synchronization instruction so as to update and display the address book of the terminal.
The streaming media system initiates an address book synchronization request to the video network management system, stores the video network address book data returned by the video network management system, and realizes the address book synchronization of the mobile terminal.
The preset event for triggering address book synchronization may be a preset event for periodically synchronizing an address book, for example, address book synchronization between a streaming media system and a webmaster server of a video network may be performed at a fixed time every day in the streaming media system, and address book synchronization may be triggered at a fixed time.
When a preset event is detected in the streaming media, the preset event is responded, the address book synchronization between the streaming media system and the video network management server is triggered, and an address book synchronization request is generated for updating a video network address book list stored in the streaming media system.
102, the streaming media system sends an address book synchronization request to a video network core server in the video network, so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server;
after the streaming media system generates the address book synchronization request, the address book synchronization request can be sent to a video network core server in the video network, and the video network core server forwards the address book synchronization request to a video network management server.
In an example, a streaming media server in a streaming media system generates an address book synchronization request, and further sends the address book synchronization request to a video networking core server through a transparent transmission instruction through a video networking sdk, a long connection is established between the video networking core server and the video networking network management server, so that when the video networking core server receives the transparent transmission instruction carrying the address book synchronization request, a TCP instruction of the address book synchronization request is generated, the TCP instruction is transmitted to the video networking network management server in real time through the long connection, the video networking network management server receives the TCP instruction and analyzes the TCP instruction to obtain the address book synchronization request, and then the video networking network management server can perform identity verification on the streaming media system which requests to synchronize an address book according to the address book synchronization request to judge whether the streaming media system is a streaming media system which can perform address book synchronization set by the video networking network management server, when the identity verification passes, authority information of the streaming media system which requests synchronization is determined, video networking communication data corresponding to the streaming media system is generated, the video networking address book data is transmitted to the video networking core server through a video networking protocol, and the video networking core server, and the video networking communication data is forwarded to the video networking core server.
103, the streaming media system receives the video network address book data returned by the video network core server;
it should be noted that the data transmission between the above steps 101 to 103 is based on the internet protocol, and has higher security compared to the data transmission of the IP protocol.
And step 104, the streaming media system responds to the address book synchronization instruction sent by the mobile terminal and synchronizes the current address book of the mobile terminal according to the address book data of the video network.
The mobile terminal can log in the streaming media system, and further can send an address book synchronization instruction to the streaming media system when the mobile terminal needs to update the address book, and then the streaming media system responds to the synchronization instruction after receiving the synchronization instruction, and synchronizes the current address book of the mobile terminal according to the address book data of the internet of view.
After the address book synchronization is finished, the synchronized address book can be displayed to a user of the mobile terminal, and the user can select a target video network terminal for communication according to the synchronized address book.
It should be noted that the data transmission process in step 104 is performed based on the IP protocol.
In an embodiment of the invention, the streaming media system comprises a cache server, a streaming media server and a video network SDK, wherein the streaming media server is used for sending an address book synchronization request to a video network core server in the video network through the video network SDK; the cache server is used for storing the address book data of the video network, responding to the address book synchronization instruction sent by the mobile terminal when the mobile terminal accesses the cache server, and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
Referring to fig. 2, a flowchart illustrating steps of another method for synchronizing an address book according to an embodiment of the present invention is shown, which specifically includes the following steps:
step 201, responding to a preset event for triggering address book synchronization, and acquiring machine code information of a streaming media system; the preset events comprise preset events of periodic synchronous address lists
The machine code information is generated by a network management server of the video network and is stored in a streaming media system;
the network management server of the video network can randomly generate a machine code information aiming at the streaming media server in the streaming media system which can be synchronized with the network management server in advance. The machine code is used for identity verification of the streaming media system. After the machine code is generated, the machine code information may be stored in the video network server and the streaming media system, respectively.
When a preset event for triggering address book synchronization is detected in the streaming media system, address book synchronization between the streaming media system and the video network management server can be triggered, so that the streaming media server can acquire a machine code pre-stored by the streaming media server to perform identity verification in the address book synchronization process.
Step 202, generating a contact list synchronization request according to the machine code information.
After the streaming media system acquires the machine code, the address book synchronization request can be generated based on the machine code, so that the machine code information can be obtained by analyzing the address book synchronization request.
The machine code information is used for the video network management server to check the received address book synchronization request, and when the check is successful, the video network management server returns the video network address book data with the corresponding authority of the streaming media system.
In an embodiment of the present invention, the address book synchronization request is generated according to the machine code information:
and encrypting the machine code information by adopting a preset encryption algorithm, and generating an address book synchronization request based on the encrypted machine code information.
In practical applications, in order to ensure the security of data transmission, the machine code information may be encrypted, and then the address book synchronization request may be generated based on the encrypted machine code information.
The encryption algorithm of the machine code information may be set according to actual data transmission needs, and in an example, the machine code information may be encrypted through an MD5 encryption algorithm.
Step 203, sending the address book synchronization request to a video network core server in the video network, so that the video network core server obtains the video network address book data of the corresponding authority of the streaming media system from a video network management server;
after the streaming media system generates the address book synchronization request, the address book synchronization request can be sent to a video network core server in the video network, and the video network core server forwards the address book synchronization request to a video network management server.
In the network management server of the video network, the address book synchronization request can be analyzed to obtain the machine code information, and then the machine code information is matched with the machine code information stored in advance to determine the identity of the streaming media server, and then video network address book data can be generated according to the authority of the streaming media system and is transmitted back to the core server of the video network.
When the machine code information is encrypted in advance, a corresponding decryption algorithm can be set in the network management server of the video network so as to decrypt the encrypted machine code information obtained by analysis.
For example, when the machine code adopts an MD5 encryption algorithm, MD5 operation may be performed on the machine code pre-stored in the network management server of the video network to generate an MD5 character string, and the MD5 character string sent when the streaming media system requests the synchronization address book is matched with the MD5 character string locally generated by the network management server of the video network to confirm the identity information of the streaming media system.
Step 204, receiving the video network address book data returned by the video network core server;
and step 205, responding to an address book synchronization instruction sent by the mobile terminal, and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
In the embodiment of the invention, the machine code in the streaming media system can be used for carrying out identity verification on the streaming media system which requests synchronization, so that the data security in the address book synchronization process is further ensured.
Referring to fig. 3, a flowchart illustrating steps of another method for synchronizing an address book according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 301, generating an address book synchronization request in response to a preset event for triggering address book synchronization; the preset events comprise preset periodic synchronous address list events;
step 302, sending an address book synchronization request to a video network core server in a video network, so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server; the address book data of the video network comprises a plurality of address book data packets with sequence marks.
The network management server of the video network is used for responding to the received address book synchronization request, performing compression and subpackage on the address book data of the video network to be transmitted, generating a plurality of address book data packages with sequence marks, transmitting the address book data packages to the core server of the video network, and responding to an address book synchronization instruction sent by the mobile terminal.
After the streaming media system generates the address book synchronization request, the address book synchronization request can be sent to a core server of the video network in the video network, and the core server of the video network forwards the address book synchronization request to a network management server of the video network.
The video network server generates video network address book data aiming at the streaming media server based on the address book synchronization request, and the video network server can perform sub-packet compression transmission aiming at the video network address book data.
Specifically, the data of the address book of the video network can be split according to the preset data transmission amount, each part of data is packed and compressed respectively, and then a sequence mark of the data packet can be arranged in a packet head of the data packet, and the sequence mark can be used for indicating the position of the data packet in the whole section of transmission data, so that the whole section of transmission data can be restored conveniently.
And generating a plurality of address book data packets with sequence identifications at the network management server of the video network, and transmitting the data packets to the core server of the video network one by one according to the sequence identifications.
In an example, a check code may also be set for the data packet to ensure data validity. If the MD5 check code of the data packet is generated, the check code is sent to the streaming media system, after all data packets are received by the streaming media, the MD5 code is generated after decompression, the generated MD5 code and the pre-received MD5 check code are matched, if the data are matched, the data are not tampered in the transmission process, and the data are effective.
Step 303, receiving the address book data of the video network returned by the core server of the video network;
step 304, in response to the address book synchronization instruction sent by the mobile terminal, decompressing a plurality of received address book data packets with sequence identification to generate a plurality of address book data with sequence identification;
the mobile terminal can log in the streaming media system, and then when the mobile terminal needs to update the address list, an address list synchronization instruction can be sent to the streaming media system, and after the streaming media system receives the synchronization instruction, the streaming media system responds to the synchronization instruction, and synchronizes the current address list of the mobile terminal according to the address list data of the video networking.
The video networking address book data is split into a plurality of address book data packets with sequence identifications, so that the stream media system receives the plurality of address book data packets with the sequence identifications through a synchronization request instruction, and then when the mobile terminal sends an address book synchronization instruction, the stream media system can restore the plurality of address book data packets with the sequence identifications to generate the video networking address book data.
The sequential identification may be used to perform a data integrity check on the data packet in one example.
Step 305, merging a plurality of address book data with sequence identification according to the sequence identification to obtain target address book data;
after the data packet is decompressed, the address book data can be spliced in sequence according to the sequence marks, so that the target address book data is obtained.
And step 306, synchronizing the current address book of the mobile terminal according to the target address book data.
In the embodiment of the invention, the data transmission can be carried out on the acquired video networking address book data in a compression and subpackaging mode, so that the data transmission pressure is reduced, and meanwhile, the transmission efficiency in the data transmission can be accelerated.
Referring to fig. 4, a flowchart illustrating steps of another method for synchronizing an address book according to an embodiment of the present invention is shown, which specifically includes the following steps:
step 401, responding to a preset event for triggering address book synchronization, and generating an address book synchronization request; the preset events comprise preset periodic synchronous address list events;
step 402, sending an address book synchronization request to a video network core server in a video network, so that the video network core server obtains video network address book data of a streaming media system corresponding authority from a video network management server;
step 403, receiving the address book data of the video network returned by the core server of the video network;
step 404, determining the data type of the video network address book data according to the video network terminal identification of the video network address book data;
the data types include homologous data, incremental data and the like.
The streaming media system can determine and determine the video networking terminal identifications contained in the video networking address book data, can search in the current address book of the mobile terminal aiming at each video networking terminal identification, and when local address book data matched with the identifications are searched, determines that the data types of the video networking address book data corresponding to the video networking terminal identifications are homologous data, namely the video networking address book data are homologous with the local address book data; and when the local address book data with the matched identifier cannot be inquired, determining that the data type of the address book data of the video network corresponding to the identifier of the video network terminal is incremental data, namely newly added data.
Step 405, synchronizing the current address book of the mobile terminal according to the data type.
In an embodiment of the present invention, step 405 may include the following steps:
when the data type of the video networking address book data is homologous data, synchronizing the address book in a mode that the video networking address book data covers homologous address book information in the current address book;
and when the data type of the address book data of the video network is incremental data, synchronizing the address book in a mode of adding corresponding fields of the address book data of the video network in the current address book.
In the embodiment of the invention, in the process of synchronizing the address list, the data type is quickly determined through the visual networking terminal identification in the visual networking address list data, and then the address list synchronization is respectively carried out aiming at different data types, so that the quick address list synchronization is realized.
An embodiment of the invention is illustrated below with reference to fig. 5:
as shown in fig. 5, the address book synchronization process in the mobile terminal can be implemented by the mobile terminal, the streaming media system (including streaming media, V2VSDK and cache server), the core server (i.e. autonomous service), and the network management server (network manager), and the specific synchronization process is as follows:
(1) The streaming media carries the machine code which is subjected to the dynamic random number hash and accesses the V2VSDK through the API interface, and the V2VSDK sends a request instruction to the autonomous service through the transparent transmission signaling.
(2) The autonomous service accesses the network management service through the TCP instruction and actively acquires terminal resources (namely an address book of the video network) from the network management.
(3) After receiving the signaling of data synchronization, the network management server checks the machine code, determines the resource data of the visible terminal according to the management area of the streaming media, and can perform compression and packet-packaging processing on the corresponding resource data, wherein the compressed packet data subjected to packet-packaging processing is provided with sequential identification, such as a start packet, a middle packet (1-n) and an end packet.
(4) And sending the compressed packet data to the streaming media through the autonomous service, and caching the compressed packet data to a specified data caching database, namely a caching server of the Internet.
(5) When the mobile terminal accesses the internet cache server through the internet protocol, the compressed packet is decompressed and merged according to the sequence identifier, the data packet is restored, and the address book of the mobile terminal starts to execute a data synchronization function; the synchronization means is the same amount of data coverage and the increment of data addition fields.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art should understand that the embodiments are not limited by the described order of acts, as some steps can be performed in other orders or simultaneously according to the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a schematic structural diagram of an apparatus for synchronizing an address book according to an embodiment of the present invention is shown, which may specifically include the following modules:
a synchronization request generation module 601, configured to generate an address book synchronization request in response to a preset event for triggering address book synchronization; the preset events comprise preset periodic synchronous address list events;
a synchronization request transmission module 602, configured to send an address book synchronization request to a video network core server in a video network, so that the video network core server obtains, from a video network management server, video network address book data of a corresponding right of a streaming media system;
the address book information receiving module 603 is configured to receive address book data of the video network returned by the video network core server;
and the address book synchronization module 604 is configured to respond to an address book synchronization instruction sent by the mobile terminal, and synchronize the current address book of the mobile terminal according to the address book data of the video network.
In an embodiment of the present invention, the synchronization request generating module 601 includes:
the device comprises a machine code information acquisition submodule and a streaming media system, wherein the machine code information acquisition submodule is used for responding to a preset event for triggering address list synchronization and acquiring machine code information of the streaming media system; the machine code information is generated by a network management server of the video network and is stored in the streaming media system;
and the synchronous request generation submodule is used for generating an address book synchronous request according to the machine code information, and the machine code information is used for verifying the received address book synchronous request by the video network management server and returning video network address book data with corresponding authority of the streaming media system when the verification is successful.
In an embodiment of the present invention, the synchronization request generation sub-module may include:
the machine code encryption unit is used for encrypting the machine code information by adopting a preset encryption algorithm;
and the synchronization request generating unit is used for generating the address book synchronization request based on the encrypted machine code information.
In an embodiment of the present invention, the video network management server is configured to perform compression and sub-packaging on video network address book data to be transmitted in response to a received address book synchronization request, generate a plurality of address book data packets with sequential identifiers, and transmit the address book data packets to the video network core server, where the address book synchronization module 604 may include:
the data packet decompression submodule is used for responding to an address book synchronization instruction sent by the mobile terminal, decompressing a plurality of received address book data packets with sequence identifications and generating a plurality of address book data with sequence identifications;
the data merging submodule is used for merging a plurality of address book data with sequence identification according to the sequence identification to obtain target address book data;
and the first address book synchronization sub-module is used for synchronizing the current address book of the mobile terminal according to the target address book data.
In an embodiment of the present invention, the address book synchronization module 604 may include:
the data type determining submodule is used for determining the data type of the video network address book data according to the video network terminal identification of the video network address book data;
and the second address book synchronization submodule is used for synchronizing the current address book of the mobile terminal according to the data type.
In an embodiment of the present invention, the second address book synchronization sub-module may include:
the first synchronization unit is used for synchronizing the address book in a mode that the video networking address book data covers the information of the homologous address book in the current address book when the data type of the video networking address book data is homologous data;
and the second synchronization unit is used for synchronizing the address book in a mode of adding corresponding fields of the address book data of the video networking in the current address book when the data type of the address book data of the video networking is incremental data.
In one embodiment of the invention, the streaming media system comprises a cache server, a streaming media server and a video network SDK, wherein the streaming media server is used for sending an address book synchronization request to a video network core server in the video network through the video network SDK; the cache server is used for storing the address book data of the video network, responding to the address book synchronization instruction sent by the mobile terminal when the mobile terminal accesses the cache server, and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the method for synchronizing the address book as described above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the above method for synchronizing the address book.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device, and the storage medium for synchronizing the address book provided by the present invention are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for synchronizing address books is applied to a streaming media system, and the method comprises the following steps:
the method comprises the steps that a streaming media system responds to a preset event for triggering address book synchronization, and an address book synchronization request is generated; the preset events comprise preset periodic address book synchronization events;
the streaming media system sends the address book synchronization request to a video network core server in a video network, so that the video network core server obtains video network address book data of corresponding authority of the streaming media system from a video network management server;
the streaming media system receives the video networking address book data returned by the video networking core server;
and the streaming media system responds to an address book synchronization instruction sent by the mobile terminal and synchronizes the current address book of the mobile terminal according to the video networking address book data.
2. The method of claim 1, wherein generating the address book synchronization request in response to a predetermined event for triggering address book synchronization comprises:
responding to a preset event for triggering address list synchronization, and acquiring machine code information of the streaming media system; the machine code information is generated by the network management server of the video network and is stored in the streaming media system;
and generating an address book synchronization request according to the machine code information, wherein the machine code information is used for verifying the received address book synchronization request by the video network management server, and returning video network address book data of the corresponding authority of the streaming media system when the verification is successful.
3. The method of claim 2, wherein generating the address book synchronization request based on the machine code information comprises:
encrypting the machine code information by adopting a preset encryption algorithm;
and generating an address book synchronization request based on the encrypted machine code information.
4. The method according to claim 1, wherein the video networking webmaster server is configured to perform compression and packetization on video networking address book data to be transmitted in response to a received address book synchronization request, generate a plurality of address book data packets with sequential identifiers, and transmit the address book data packets to the video networking core server, and synchronize the current address book of the mobile terminal according to the video networking address book data in response to an address book synchronization instruction sent by the mobile terminal, including:
in response to an address book synchronization instruction sent by the mobile terminal, decompressing a plurality of received address book data packets with sequence identifications to generate a plurality of address book data with sequence identifications;
combining the address book data with the sequential identifications according to the sequential identifications to obtain target address book data;
and synchronizing the current address book of the mobile terminal according to the target address book data.
5. The method of claim 1, wherein the synchronizing the current address book of the mobile terminal according to the video networking address book data comprises:
determining the data type of the video networking address book data according to the video networking terminal identification of the video networking address book data;
and synchronizing the current address book of the mobile terminal according to the data type.
6. The method according to claim 6, wherein the synchronizing the current address book of the mobile terminal according to the data type comprises:
when the data type of the video networking address book data is homologous data, synchronizing the address book in a mode that the video networking address book data covers homologous address book information in the current address book;
and when the data type of the video networking address book data is incremental data, synchronizing the address book in a mode of adding corresponding fields of the video networking address book data in the current address book.
7. The method according to claim 1, wherein the streaming media system comprises a cache server, a streaming media server and a video networking SDK, wherein the streaming media server is configured to send the address book synchronization request to a video networking core server in the video networking through the video networking SDK; the cache server is used for storing the address book data of the video network, responding to an address book synchronization instruction sent by the mobile terminal when the mobile terminal accesses the cache server, and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
8. An apparatus for synchronizing an address book, the apparatus comprising:
the synchronous request generation module is used for responding to a preset event for triggering address book synchronization and generating an address book synchronous request; the preset events comprise preset periodic address book synchronization events;
the synchronous request transmission module is used for sending the address book synchronous request to a video network core server in a video network so that the video network core server obtains video network address book data of the corresponding authority of the streaming media system from a video network management server;
the address book information receiving module is used for receiving the video network address book data returned by the video network core server;
and the address book synchronization module is used for responding to an address book synchronization instruction sent by the mobile terminal and synchronizing the current address book of the mobile terminal according to the address book data of the video network.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method of synchronizing an address book according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the method of synchronizing an address book according to any one of claims 1 to 7.
CN202211521030.8A 2022-11-30 2022-11-30 Method and device for synchronizing address book, electronic equipment and storage medium Pending CN115883709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211521030.8A CN115883709A (en) 2022-11-30 2022-11-30 Method and device for synchronizing address book, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211521030.8A CN115883709A (en) 2022-11-30 2022-11-30 Method and device for synchronizing address book, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115883709A true CN115883709A (en) 2023-03-31

Family

ID=85764998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211521030.8A Pending CN115883709A (en) 2022-11-30 2022-11-30 Method and device for synchronizing address book, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115883709A (en)

Similar Documents

Publication Publication Date Title
CN106878265B (en) Data processing method and device
CN107508822B (en) Access control method and device
CN102143129B (en) Method and system for realizing service protection in hyper text transmission protocol (HTTP) streaming transmission
CN108574722B (en) Resource synchronization method, device and system
CN111258602B (en) Information updating method and device
CN109194651B (en) Identity authentication method, device, equipment and storage medium
CN106330465B (en) Distributed timestamp processing method, server and system
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN107360187A (en) A kind of processing method of network abduction, apparatus and system
CN113032357A (en) File storage method and device and server
CN110619022B (en) Node detection method, device, equipment and storage medium based on block chain network
CN106230860B (en) Method and device for transmitting streaming media
CN107026828B (en) Anti-stealing-link method based on Internet cache and Internet cache
CN111541772A (en) Intelligent reminding method and system and cloud server
CN104967527A (en) Recovering method of communication recording, recovering device of communication recording and server
CN115189913B (en) Data message transmission method and device
CN111818025B (en) User terminal detection method and device
CN106888200B (en) Identification association method, information sending method and device
CN111695098A (en) Multi-distributed cluster access method and device
CN110083786B (en) Link verification method and device
CN115883709A (en) Method and device for synchronizing address book, electronic equipment and storage medium
CN106790176B (en) Method and system for accessing network
CN115632815A (en) Data updating method and device, electronic equipment and storage medium
US20140047014A1 (en) Network access system
CN110545296A (en) Log data acquisition method, device and equipment

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