CN103546549B - The shared method and system of terminal offline data - Google Patents
The shared method and system of terminal offline data Download PDFInfo
- Publication number
- CN103546549B CN103546549B CN201310476431.0A CN201310476431A CN103546549B CN 103546549 B CN103546549 B CN 103546549B CN 201310476431 A CN201310476431 A CN 201310476431A CN 103546549 B CN103546549 B CN 103546549B
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- sent
- browsed
- shared
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000013507 mapping Methods 0.000 claims abstract description 46
- 238000004458 analytical method Methods 0.000 claims description 33
- 238000004321 preservation Methods 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000000149 penetrating effect Effects 0.000 claims 1
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000008520 organization Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the method and system that a kind of terminal offline data is shared, first terminal of the present invention obtains the identification information for the data that second terminal browses, and when second terminal is offline, the part that the identification information of the data and the presently described data acquired have not been browsed is sent into third terminal mapping to preserve, realize that the second terminal reached the standard grade again can continue to browse the part that the data are not browsed when first terminal is offline, and the problem of effectively avoiding browsing shared data on first terminal and causing second terminal not continue to browse shared data during offline first terminal, avoid all shared data being sent to third terminal simultaneously, rationally effectively utilize bandwidth, improve bandwidth availability ratio.
Description
Technical field
The present invention relates to data sharing field, is related specifically to a kind of shared method and system of terminal offline data.
Background technology
At present, all devices all must be online in the common practice of shared file between home network device, for example, with more
Exemplified by the shared broadcasting of media file, if a method, apparatus is offline, then another method, apparatus can not share broadcasting counterpart device
On multimedia file, if needing the shared multimedia file played on counterpart device next time, then must be set when both sides
It is standby while online.
It is existing solve this technological deficiency mode be:By all more what is shared in home network in each equipment
Media file is uploaded onto the server, and shared equipment obtains the multimedia file for needing to play from server, so does lacking of bringing
Point is no matter to need entirely shared multimedia file will to be uploaded onto the server, so as to take the Netowrk tape of preciousness
It is wide, it is impossible to the rationally effective bandwidth utilized in home network.
The content of the invention
The main object of the present invention is a kind of shared method and system of terminal offline data of offer, it is intended to realizes second eventually
End can continue to browse the shared data of first terminal when first terminal is offline, and effectively avoid sending out all shared data
Third terminal is given, it is rationally effective to utilize bandwidth, improve bandwidth availability ratio.
The present invention proposes a kind of shared method of terminal offline data, and this method includes:
When first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains the data
Identification information, and the identification information of the data of acquisition is sent to second terminal;
When second terminal is offline, first terminal is by the identification information of the data and the presently described data acquired
The part not browsed is sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is offline in first terminal
When, the part that the data have not been browsed is browsed from third terminal according to the identification information of the data.
Preferably, this method includes:
When first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains the data
Identification information and second terminal identity information, and the identification information of the data of acquisition is sent to second terminal;
When second terminal is offline, first terminal is by the identification information of the data, the presently described data acquired
The part not browsed and the identity information of second terminal are sent to third terminal mapping and preserved, so that reach the standard grade again second
Terminal browses when first terminal is offline according to the identity information of the identification information of the data and second terminal from third terminal
The part that the data have not been browsed.
Preferably, when second terminal is reached the standard grade again, this method also includes:
When not preserving the part that the data have not been browsed on third terminal, first terminal is established with second terminal
Connection, so that second terminal browses the part that the data have not been browsed according to self-identity information from first terminal.
Preferably, it is described when second terminal is offline, first terminal by the identification information of the data and the data not
The part browsed be sent to third terminal mapping preserve the step of include:
When detect second terminal it is offline when, first terminal obtains the data message that has preserved from third terminal;
Whether there are the data not browsed in the data message that the third terminal that first terminal analysis obtains has preserved
Part;
When finding out the part that the part data have not been browsed, first terminal has not been browsed the data
In part, the identification information of the unsaved part of third terminal and the data is sent to third terminal mapping and preserved.
Preferably, when first terminal is reached the standard grade again, this method is further comprising the steps of:
First terminal analyses whether the shared data not sent be present;
When the shared data not sent be present, first terminal from third terminal obtain described in the shared number that has not sent
According to the part sent, and by the shared data not sent, the part for being not issued to third terminal is sent to the 3rd eventually
End.
The present invention also proposes a kind of shared system of terminal offline data, the system include first terminal, second terminal and
Third terminal, wherein, the first terminal includes data acquisition module and data sending and receiving module,
The data acquisition module, for when detecting second terminal and browsing the shared data of first terminal, obtaining institute
State the identification information of data;
The data sending and receiving module, for the identification information of the data of acquisition to be sent into second terminal;And
When second terminal is offline, the identification information of the data and the presently described data acquired are not browsed
Complete part is sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is when first terminal is offline, according to institute
State the identification informations of data and browse the part that the data have not been browsed from third terminal.
Preferably, the data acquisition module, for obtaining the identification information of the data and the identity letter of second terminal
Breath;
The data sending and receiving module, for the identification information of the data of acquisition to be sent into second terminal;And
When second terminal is offline, by the identification information of the data, obtain to presently described data do not browsed
Complete part and the identity information of second terminal are sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is the
When one terminal is offline, the data are browsed from third terminal according to the identification information of the data and the identity information of second terminal
The part not browsed.
Preferably, when second terminal is reached the standard grade again, the data sending and receiving module, it is additionally operable to not preserve on third terminal
When having the part that the data have not been browsed, establish and connect with second terminal, so that second terminal is according to self identification information
The part that the data have not been browsed is browsed from first terminal.
Preferably, the first terminal also includes analysis module,
The data acquisition module, be additionally operable to when detect second terminal it is offline when, obtain and preserved from third terminal
Data message;
The analysis module, for analyzing in the data message that has preserved of third terminal obtained whether have the data not
The part browsed;
The data sending and receiving module, third terminal ought be found out by, which being additionally operable to, preserves the portion that the part data have not been browsed
Timesharing, in the part that the data have not been browsed, the identification information hair of the unsaved part of third terminal and the data
Third terminal mapping is given to preserve.
Preferably, the analysis module, it is additionally operable to analyse whether the shared data not sent be present;
The data acquisition module, it is additionally operable to when the shared data not sent be present, from described in third terminal acquisition
The part that the shared data not sent has been sent;
The data sending and receiving module, it is additionally operable to, by the shared data not sent, be not issued to third terminal
Part is sent to third terminal.
Compared with the prior art, first terminal of the present invention obtains the identification information for the data that second terminal browses, and second
When terminal is offline, the part that the identification information of the data and the presently described data acquired have not been browsed is sent to
Third terminal mapping preserves, and realizes that the second terminal reached the standard grade again can continue to browse the data not when first terminal is offline
The part browsed, and effectively avoid browsing shared data on first terminal and cause second terminal can not during offline first terminal
The problem of continuing to browse shared data, while avoid all shared data being sent to third terminal, it is rationally effective to utilize
Bandwidth, improve bandwidth availability ratio.
Brief description of the drawings
Fig. 1 is the particular flow sheet of the first embodiment for the method that terminal offline data of the present invention is shared;
Fig. 2 is the particular flow sheet of the second embodiment for the method that terminal offline data of the present invention is shared;
Fig. 3 is the particular flow sheet of the 3rd embodiment for the method that terminal offline data of the present invention is shared;
Fig. 4 is the particular flow sheet of the fourth embodiment for the method that terminal offline data of the present invention is shared;
Fig. 5 is the specific Organization Chart of the first embodiment for the system that terminal offline data of the present invention is shared;
Fig. 6 is the specific Organization Chart of the second embodiment for the system that terminal offline data of the present invention is shared.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in figure 1, the particular flow sheet of the first embodiment for the method shared for terminal offline data of the present invention.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical scheme around the embodiment of inventive concept structure:
When first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains the data
Identification information, the identification information of the data of acquisition is sent to second terminal;When second terminal is offline, first terminal
The part that the identification information of the data and the presently described data acquired have not been browsed is sent into third terminal to reflect
Preservation is penetrated, so that the second terminal reached the standard grade again is when first terminal is offline, it is whole from the 3rd according to the identification information of the data
End browses the part that the data have not been browsed.
It is that the shared specific steps of terminal offline data are done step-by-step in the present embodiment below:
Step S11, when first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains
The identification information of the data, and the identification information of the data of acquisition is sent to second terminal.
Specifically, shared interactive interface is sent to the second terminal for being in same LAN by first terminal, so that second
Terminal is received by the shared interactive interface and browses the shared data of first terminal, and first terminal obtains the mark of the data
Know information, and the identification information of the data is sent to second terminal.The identification information of the data can be shared data
Title etc. other can arbitrarily represent the information of shared data, the shared data of the first terminal that the second terminal browses with
Exemplified by second terminal plays the shared multimedia file of first terminal, second terminal obtains the shared multimedia file of first terminal
Information, first terminal is shared multiple multimedia files, and the shared multimedia of the first terminal obtained is played with second terminal
Exemplified by X multimedia files in file, first terminal obtains identification information and the broadcasting for the X multimedia files that second terminal plays
X multimedia files size, the name for the multimedia file that the identification informations of the X multimedia files plays for second terminal
Claim, i.e. X is to media file, and when second terminal plays multimedia file X, obtain broadcasting X multimedia files it is current
Play position, the size for the X multimedia files that first terminal plays according to the second terminal of acquisition and the X multimedia files of acquisition
Current play position determine also X multimedia files not by second terminal play(Remaining part not broadcast X multimedias text
Part)Size, that is, determine the X multimedia files not by second terminal play part, for example, obtain second terminal play
The size of X multimedia files is 400M, during the currently playing position to 100M of the second terminal that first terminal obtains, it is determined that also X
The size that multimedia file is not played also by second terminal is 400M-100M=300M, i.e., described X media files are not whole by second
The size for holding the part played is 300M.
Step S12, when second terminal is offline, first terminal is by the identification information of the data and acquires current
The part that the data have not been browsed is sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is whole first
When holding offline, the part that the data have not been browsed is browsed from third terminal according to the identification information of the data.
Specifically, whether first terminal detecting second terminal offline, when detect second terminal it is offline when, that is, detect the
When two terminals and first terminal disconnect, first terminal is by the identification information of the data and the presently described number acquired
Third terminal mapping is sent to according to the part not browsed to preserve, so that the second terminal reached the standard grade again is offline in first terminal
When, the part that the data have not been browsed is browsed from third terminal according to the identification information of the data.Broadcast with second terminal
Exemplified by putting the X multimedia files in the shared multimedia file of first terminal, obtain the first terminal that second terminal plays and share
Data identification information, preferably obtain the title of the multimedia file of broadcasting(X media files), first terminal by second eventually
The identification information for the data that the first terminal that end plays is shared is sent to second terminal, the title for the multimedia file that will be played
(X multimedia files)Second terminal is sent to, whether first terminal detecting second terminal is offline, offline when detecting second terminal
When, that is, when detecting second terminal and first terminal and disconnecting, first terminal determines the big of the X multimedia files not played also
Small is 400M-100M=300M, i.e. the size for the part that X multimedia files are not played by second terminal is 300M, first terminal
The part that the X multimedia files of determination are not played also by second terminal and the identification information of the multimedia file of broadcasting(Broadcast
The title for the multimedia file put)It is sent to third terminal, third terminal is in the X multimedias for receiving first terminal and sending over
During the identification information for the multimedia file that the part and second terminal that file does not play also play, the first terminal of reception is sent out
The identification information mapping for the multimedia file that the part and second terminal that the X multimedia files brought do not play also play is protected
Deposit, when detecting the broadcasting multimedia file request that second terminal is sent, the request detected includes third terminal
The identification information of multimedia file(The title of multimedia file, X multimedia files), when the second terminal reached the standard grade again is first
When terminal is offline, second terminal establishes network connection with third terminal, and third terminal plays according to the second terminal detected
The identification information for the data that the request of multimedia file includes gets the X multimedia files of mapping preservation not by second
The complete part of terminal plays, so that the second terminal reached the standard grade again continues to play the X multimedia files not played.
The present embodiment first terminal obtains the identification information for the data that second terminal browses, and when second terminal is offline,
The part that the identification information of the data and the presently described data acquired have not been browsed is sent into third terminal to reflect
Preservation is penetrated, realizes that the second terminal reached the standard grade again can continue to browse the portion that the data are not browsed when first terminal is offline
Point, and effectively avoid browsing shared data on first terminal and cause second terminal can not continue to browse altogether during offline first terminal
The problem of enjoying data, while avoid all shared data being sent to third terminal, it is rationally effective to utilize bandwidth, improve band
Wide utilization rate.
As shown in Fig. 2 the particular flow sheet of the second embodiment for the method shared for terminal offline data of the present invention.
Based on above-mentioned first embodiment, this method step S11 also includes:
Step S13, when first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains
The identification information of the data and the identity information of second terminal, and the identification information of the data of acquisition is sent to second
Terminal;
Step S14, when second terminal is offline, first terminal by the identification information of the data, acquire it is current
The part and the identity information of second terminal that the data have not been browsed are sent to third terminal mapping and preserved, so that on again
The second terminal of line is when first terminal is offline, according to the identification information of the data and the identity information of second terminal from the 3rd
Terminal browses the part that the data have not been browsed.
Specifically, first terminal obtains the identification information of the data and the identity information of second terminal, and by the number
According to identification information be sent to second terminal.The identification information of the data can be title of shared data etc. other arbitrarily may be used
To represent the information of shared data, the identity information of the second terminal is the identification of the IP address or second terminal of second terminal
Any suitable energy unique identifications such as code go out the information of second terminal.When second terminal is offline, first terminal is by the data
Identification information, the identity information of the part that the presently described data that acquire have not been browsed and second terminal be sent to
The mapping of three terminals preserves, so that the second terminal reached the standard grade again is when first terminal is offline, according to the identification information of the data
And the identity information of second terminal browses the part that the data have not been browsed from third terminal.The played with second terminal
Exemplified by the multimedia file of one terminal, the title of the identification information preferably multimedia file of broadcasting of the data, the number
According to identification information by taking X multimedia files as an example, the identity information of second terminal is by taking 0X10000 as an example, by the mark of the data
Know information(X multimedia files), part that the presently described data that acquire have not been browsed and acquisition second terminal
Identity information 0X10000 is sent to third terminal, the data that third terminal sends over the first terminal of reception not by
The identity information mapping of the part, the identification information of the data and the second terminal that browse preserves, when the second end reached the standard grade again
When end disconnects with first terminal, second terminal establishes network connection with third terminal and third terminal is detecting second eventually
When holding the request of the broadcasting multimedia file sent, the request detected includes the identity information of second terminal
(0X10000)And the identification information of the data(The title of multimedia file, X multimedia files), third terminal is according to detecting
To the identification information of the data that includes of playing request and the identity information of second terminal to get the X that mapping preserves more
The part that media file is not played also by second terminal, so that second terminal continues to play the X multimedia files not played.
If third terminal does not preserve the part that the data are not browsed, first terminal is established with second terminal and connected, so that weight
The second terminal newly reached the standard grade browses the part that the data have not been browsed according to self-identity information from first terminal.
The identity information of second terminal and the identification information of the data are obtained by first terminal, and by the second of acquisition
The identification information of the identity information of terminal, the part that the data acquired are not browsed and the data is sent to the 3rd
Terminal mapping is preserved, and data are read from third terminal with the identity information according to second terminal and the identification information of the data,
Prevent same data identification information being present and the phenomenon misread occur, improve the accuracy for reading data.
As shown in figure 3, the particular flow sheet of the 3rd embodiment for the method shared for terminal offline data of the present invention.
Based on above-mentioned first embodiment, step S12 includes:
Step S15, when detect second terminal it is offline when, first terminal from third terminal obtain preserved data letter
Breath;
Step S16, first terminal analyze in the data message that the third terminal obtained has preserved whether have the data not
The part browsed;
Step S17, when finding out third terminal and preserving the part that the part data have not been browsed, first terminal will
The identification information of the unsaved part of third terminal and the data is sent to the 3rd in the part that the data have not been browsed
Terminal mapping preserves.
Specifically, when detect second terminal it is offline when, first terminal obtains the data message that has preserved from third terminal,
And analyze whether can have what the data had not been browsed by second terminal in the data message that the third terminal of acquisition has preserved
Part, that is, find out third terminal and whether preserve the part or all of data that the part data are not browsed and do not browsed
The part or all of data, when finding out third terminal and preserving the part that the part data have not been browsed, first
The identification information of the unsaved part of third terminal and the data is sent in the part that terminal has not been browsed the data
Map and preserve to third terminal;When find out third terminal preserve all data do not browsed it is part or all of described
During data, the part that the data have not been browsed is no longer sent to third terminal and preserved by first terminal;When not finding out the 3rd
When terminal preserves the part that the data have not been browsed, part that first terminal has not been browsed the data and described
The identification information of data is sent to third terminal mapping and preserved.The shared multimedia of the first terminal obtained is played with second terminal
Exemplified by X multimedia files in file, when it is determined that the part that is not played by second terminal of X multimedia files be 300M,
One terminal obtains the data message that has preserved from third terminal, analyze in the data message that the third terminal of acquisition has preserved whether
X multimedia files have been preserved, if preserving X multimedia files in the data message that the third terminal obtained has preserved, point
Whether portion that the X multimedia file of determination by second terminal do not played is included in the X multimedia files that analysis third terminal preserves
Point, if the portion that the X multimedia files that the X multimedia files that third terminal preserves include determining are not played by second terminal
Point, then the part that X multimedia files are not played by second terminal is no longer sent to third terminal and preserved by first terminal;If the
The X multimedia files that three terminals preserve include the part that the X multimedia files that part determines are not played by second terminal, then
The unsaved part of third terminal is sent to third terminal in the part that first terminal is not played X-File by second terminal, with
Make the broadcasting X multimedia files that third terminal sends over the first terminal of reception and the part mapping preservation preserved;If
The part that the X multimedia files for not including determining in the X multimedia files of preservation are not played by second terminal, first terminal will
The identification information for the multimedia file that the part and second terminal that the X multimedia files are not played by second terminal play
(The multimedia title played, X multimedia files)Third terminal mapping is sent to preserve.
By the way that when second terminal is offline, whether analysis third terminal preserves the part that the data have not been browsed,
And when third terminal preserves the part that the part data have not been browsed, part that the data have not been browsed
In, the identification information of the unsaved part of third terminal and the data is sent to third terminal mapping and preserved, and avoids the 3rd
When terminal preserve the part that the part data have not been browsed, the data of same repetition are sent to third terminal and preserved,
It is further rationally effective to utilize bandwidth, improve bandwidth availability ratio.
As shown in figure 4, the particular flow sheet of the fourth embodiment for the method shared for terminal offline data of the present invention.
Based on above-mentioned first embodiment, when first terminal is reached the standard grade again, this method is further comprising the steps of:
Step S18, first terminal analyse whether the shared data not sent be present;
Step S19, when the shared data not sent be present, do not sent described in first terminal from third terminal acquisition
The part that has sent of shared data, and the part that third terminal will be not issued in the shared data not sent is sent
To third terminal.
Specifically, when first terminal is reached the standard grade again, first terminal analyses whether the shared data not sent be present,
During in the presence of the shared data not sent, from third terminal obtain described in the part that has sent of the shared data that has not sent,
And the part that third terminal is not issued in the shared data not sent is sent to third terminal.With X multimedias text
The shared data instance of first terminal that part is played as second terminal, the size of X multimedia files is M, second terminal from
During line, the size for the part that X multimedia files are not played by second terminal is S, and first terminal is not broadcast X multimedia files
The identification information of the multimedia file of the part discharged and the broadcasting is sent to third terminal mapping and preserved, offline in first terminal
When, sent the X multimedia files of N sizes to third terminal, and have recorded first terminal it is offline when send X multimedias text
The position of part, when first is again online, first terminal analyses whether the shared data not sent be present, is not sent existing
During complete X multimedia files, first terminal, which obtains, has been issued to the big of the X multimedia files that the part of third terminal has not been sent
It is small(Have transmitted to the X multimedia files of the N sizes of third terminal), from the X multimedia file sizes S portion not browsed
The X multimedia files for having transmitted to third terminal N sizes are deducted in point, obtain being currently needed for the S-N for being sent to third terminal
The X multimedia files of size, the X multimedia files of S-N sizes are sent to third terminal, so that third terminal receives first eventually
The X multimedia files for the S-N sizes not sent are held, for second terminal when first terminal is offline, are continued by third terminal
Play the X multimedia files not played.
By the way that when first terminal is again online, first terminal analyses whether the shared data not sent be present, is depositing
In the shared data not sent, from the part that the shared data not sent described in third terminal acquisition has been sent, and will
In the shared data not sent, the part for being not issued to third terminal is sent to third terminal, so that other-end exists
When first terminal is offline, continue to browse the shared data of the first terminal not browsed by third terminal, and effectively avoid
First terminal is shared by what is do not sent completely again when the shared data for having part not send is sent to third terminal
Data are sent to third terminal, further rationally effective to utilize bandwidth, improve bandwidth availability ratio.
As shown in figure 5, the specific Organization Chart of the first embodiment for the system shared for terminal offline data of the present invention.This is
System includes first terminal 10, second terminal 20 and third terminal 30, and first terminal 10, second terminal 20 and third terminal 30 pass through
Network connection, and second terminal 20 browses the data on first terminal 10 by network connection, and first terminal 10 can with it is more
Individual second terminal 20 carries out data sharing, wherein, the first terminal 10 includes data acquisition module 101 and data sending and receiving module
102,
The data acquisition module 101, for when detecting second terminal 20 and browsing the shared data of first terminal 10,
Obtain the identification information of the data;
The data sending and receiving module 102, for the identification information of the data of acquisition to be sent into second terminal 20;And
It is when second terminal 20 is offline, the identification information of the data and the presently described data acquired is not clear
The part look at is sent to the mapping of third terminal 30 and preserved, so that the second terminal 20 reached the standard grade again is offline in first terminal 10
When, the part that the data have not been browsed is browsed from third terminal 30 according to the identification information of the data.
Specifically, shared interactive interface is sent to the second terminal 20 for being in same LAN by data sending and receiving module 102,
So that second terminal 20 is received by the shared interactive interface and browses the shared data of first terminal 10, data acquisition module
101 obtain the identification information of the data, and the identification information of the data is sent into second terminal 20.The mark of the data
Know information can be title of shared data etc. other can arbitrarily represent the information of shared data, the second terminal 20 browses
Shared data so that second terminal 20 plays the shared multimedia file of first terminal 10 as an example, second terminal 20 obtains shared
Multimedia file information, the information of the shared multimedia file of acquisition includes multiple multimedia files, with second terminal
Exemplified by 20 play the X multimedia files in the shared multimedia file obtained, data acquisition module 101 obtains second terminal 20
The size of the identification information of the X multimedia files of broadcasting and the X multimedia files of broadcasting, the mark letter of the X multimedia files
The title of the multimedia file played for second terminal 20 is ceased, i.e. X plays the multimedia to media file, and in second terminal 20
During file X, the current play position of the X multimedia files of broadcasting is obtained, data acquisition module 101 is according to the second terminal of acquisition
The current play position of the size of the 20 X multimedia files played and the X multimedia files of acquisition determines X multimedia files also not
Played by second terminal 20(Remaining part not broadcast X multimedia files)Size, that is, determine the X to media file not
The part played by second terminal 20, for example, the size for obtaining the X multimedia files that second terminal 20 plays is 400M, data
During the currently playing position to 100M of second terminal 20 that acquisition module 101 obtains, determine X multimedia files also not by second eventually
End 20 play sizes be 400M-100M=300M, i.e., the part that described X media files are not played by second terminal 20 it is big
Small is 300M.
Whether data sending and receiving module 102 detects second terminal 20 offline, when detect second terminal 20 it is offline when, that is, detect
When being disconnected to second terminal 20 and first terminal 10, data sending and receiving module 102 is by the identification information of the data and acquisition
The part that obtained presently described data have not been browsed is sent to third terminal 30 and maps preservation, so that reach the standard grade again second
Terminal 20 when first terminal 10 is offline, according to the identification information of the data from third terminal 30 browse mapping preserve described in
The part that data have not been browsed.The X multimedias text in the shared multimedia file of first terminal 10 is played with second terminal 20
Exemplified by part, the identification information for the data that the first terminal 10 that second terminal 20 plays is shared is obtained, preferably obtains the more of broadcasting
The title of media file(X media files), the shared data of first terminal 10 that first terminal 10 plays second terminal 20
Identification information is sent to second terminal 20, the title for the multimedia file that will be played(X multimedia files)It is sent to second eventually
End 20, whether offline data sending and receiving module 102 detects second terminal 20, when data sending and receiving module 102 detects second terminal 20
When offline, that is, when detecting second terminal 20 and first terminal 10 and disconnecting, data acquisition module 101 determines X multimedias text
The size that part is not played also by second terminal 20 is 400M-100M=300M, i.e. X multimedia files are not broadcast by second terminal 20
The size of the part discharged is 300M, and data sending and receiving module 102 is not played the X multimedia files of determination also by second terminal 20
Complete part and the identification information of the multimedia file of broadcasting(The title of the multimedia file of broadcasting)Third terminal 30 is sent to,
Third terminal 30 is in the part and second for receiving the X multimedia files that data sending and receiving module 102 sends over and not playing also
During the identification information for the multimedia file that terminal 20 plays, the X multimedia files that the second terminal 20 of reception is sended over are also
The identification information mapping for the multimedia file that the part not played and second terminal 20 play is preserved, and third terminal 30 is being detected
During the broadcasting multimedia file request sent to second terminal 20, the request detected includes the mark of multimedia file
Information(The title of multimedia file, X multimedia files), when the second terminal reached the standard grade again is offline in first terminal, second
Terminal establishes network connection with third terminal, and third terminal 30 plays multimedia file according to the second terminal 20 detected
The identification information for the data that request includes gets the X multimedia files that mapping preserves and not played by second terminal 20
Part, so that the second terminal 20 reached the standard grade again continues to play the X multimedia files that do not play.
The present embodiment data acquisition module 101 obtains the identification information for the data that second terminal 20 browses, and second eventually
Hold 20 it is offline when, by data sending and receiving module 102 by the identification information of the data and the presently described data acquired not
The part browsed is sent to third terminal 30 and maps preservation, realize the second terminal 20 reached the standard grade again first terminal 10 from
Can continue to browse the part that the data are not browsed during line, and effectively avoid browsing shared data on first terminal 10 and
The problem of one terminal 10 causes second terminal 20 not continue to browse shared data when offline, while avoid all shared numbers
It is rationally effective to utilize bandwidth according to third terminal 30 is sent to, improve bandwidth availability ratio.
Further, the data acquisition module 101, for browsing shared data on first terminal 10 when second terminal 20
When, obtain the identification information of the data and the identity information of second terminal 20;
The data sending and receiving module 102, for the identification information of the data of acquisition to be sent into second terminal 20;And
It is when second terminal 20 is offline, the identification information of the data, the presently described data acquired are not clear
The part look at and the identity information of second terminal 20 are sent to the mapping of third terminal 30 and preserved, so that second to reach the standard grade again is whole
End is 20 when first terminal 10 is offline, according to the identification information of the data and the identity information of second terminal 20 from third terminal
30 browse the part that the data have not been browsed.
Specifically, data acquisition module 101 obtains the identification information of the data and the identity information of second terminal 20, and
The identification information of the data is sent to by second terminal 20 by data sending and receiving module 102.The identification information of the data can
Be title of shared data etc. other can arbitrarily represent the information of shared data, the identity information of the second terminal 20 is
Any suitable energy unique identification such as the IP address of second terminal 20 or the identification code of second terminal 20 goes out the letter of second terminal 20
Breath.When second terminal 20 is offline, i.e., when second terminal 20 and first terminal 10 disconnect, data sending and receiving module 102 is by institute
The part and the identity information of second terminal 20 that the presently described data for state the identification information of data, acquiring have not been browsed
It is sent to the mapping of third terminal 30 to preserve, so that the second terminal 20 reached the standard grade again is when first terminal 10 is offline, according to described
The identification information of data and the identity information of second terminal 20 browse the part that the data have not been browsed from third terminal 30.
By taking the multimedia file for the first terminal 10 that second terminal 20 plays as an example, the identification information of the data is preferably the more of broadcasting
The title of media file, the identification information of the data by taking X multimedia files as an example, the identity information of second terminal 20 with
Exemplified by 0X10000, when second terminal 20 is offline, by the identification information of the data(X multimedia files), acquire work as
The part and the identity information 0X10000 of the second terminal 20 of acquisition that the preceding data have not been browsed are sent to third terminal
30, part that third terminal 30 is not browsed the data that the data sending and receiving module 102 of reception sends over, the data
Identification information and the identity information mapping of second terminal 20 preserve, third terminal 30 detecting what second terminal 20 was sent
When playing the request of multimedia file, the request detected includes the identity information of second terminal 20(0X10000)And institute
State the identification information of data(The title of multimedia file, X multimedia files), third terminal 30 is according to the playing request detected
The identification information of the data included and the identity information of second terminal 20 get the X multimedia files of mapping preservation also
The part not played by second terminal 20, so that second terminal 20 continues to play the X multimedia files not played.If the 3rd
Terminal 30 does not preserve the part that the data are not browsed, then data sending and receiving module 20 is established with second terminal 20 and connected, with
The second terminal 20 for making to reach the standard grade again browses the portion that the data have not been browsed according to self-identity information from first terminal 10
Point.
The present embodiment obtains the identity information of second terminal 20 by data acquisition module 101 and the mark of the data is believed
Breath, and it is by data sending and receiving module 102 that the identity information of the second terminal 20 of acquisition, the data acquired are not clear
The part look at and the identification information of the data are sent to the mapping of third terminal 30 and preserved, to be believed according to the identity of second terminal 20
Breath and the identification information of the data read data from third terminal 30, prevent same data identification information being present and read
Wrong phenomenon, improve the accuracy for reading data.
As shown in fig. 6, the specific Organization Chart of the second embodiment for the system shared for terminal offline data of the present invention.It is described
First terminal 10 also includes analysis module 103,
The data acquisition module 101, be additionally operable to when detect second terminal 20 it is offline when, first terminal 10 from the 3rd eventually
End 30 obtains the data message preserved;
The analysis module 103, in the information of data preserved for analyzing the third terminal 30 obtained whether
State the part that data have not been browsed by second terminal 20;
The data sending and receiving module 102, it is additionally operable to not browsed when finding out third terminal 30 and preserve the part data
During complete part, the mark of 30 unsaved part of third terminal and the data in the part that the data have not been browsed
Information is sent to the mapping of third terminal 30 and preserved.
Specifically, when data sending and receiving module 102 detect second terminal 20 it is offline when, data acquisition module 101 from the 3rd
Terminal 30 obtains the data message preserved, and analyzes the number that the third terminal 30 in acquisition preserved by analysis module 103
It is believed that whether having the part that the data have not been browsed by second terminal 20 in breath, that is, find out whether third terminal 30 preserves portion
The part or all of data that the part or all of data that point data are not browsed are not browsed, when finding out the 3rd
When terminal 30 preserves the part that the part data have not been browsed, data sending and receiving module 102 is not browsed the data
The identification information of 30 unsaved part of third terminal and the data is sent to the mapping of third terminal 30 and preserved in complete part;
When finding out third terminal 30 and preserving the part or all of data that all data have not been browsed, data sending and receiving mould
The part that the data have not been browsed is no longer sent to third terminal 30 and preserved by block 102;Protected when not finding out third terminal 30
When having the part that the data have not been browsed, part and institute that data sending and receiving module 102 has not been browsed the data
The identification information for stating data is sent to the mapping preservation of third terminal 30.The shared multimedia text obtained is played with second terminal 20
Exemplified by X multimedia files in part, when the X multimedia files that data acquisition module 101 determines are not played by second terminal 20
Part be 300M, data acquisition module 101 obtains the data message preserved from third terminal 30, and analysis module 103 is analyzed
X multimedia files whether are preserved in the data message that the third terminal 30 of acquisition has preserved, if the third terminal obtained
Preserve X multimedia files in 30 data messages preserved, in the X multimedia files that the analysis of analysis module 103 preserves whether
The part that X multimedia files including determination are not played by second terminal 20, if the X multimedia files preserved include determining
The part that is not played by second terminal 20 of X multimedia files, then data sending and receiving module 102 no longer by X multimedia files not
Third terminal 30 is sent to by the part that second terminal 20 plays to preserve;If in the X multimedia files that third terminal 30 preserves
The part that the X multimedia files determined including part are not played by second terminal 20, then data sending and receiving module 102 will be by X texts
In the part that part is not played by second terminal 20,30 unsaved part of third terminal is sent to third terminal 30, so that the 3rd
The part X multimedia files that terminal 30 sends over the data sending and receiving module 102 of reception preserve with the part mapping preserved;
If the part that the X multimedia files for not including determining in the X multimedia files preserved are not played by second terminal 20, data connect
The multimedia that the part and second terminal 20 that hair module 102 is not played the X multimedia files by second terminal 20 play
The identification information of file(The multimedia title played, X multimedia files)The mapping of third terminal 30 is sent to preserve.
Pass through the third terminal 30 that when second terminal 20 is offline, the analyze data acquisition module 101 of analysis module 103 obtains
Whether there is the part that the data have not been browsed in the data message of preservation, and the part number is preserved in third terminal 30
Third terminal 30 is not during according to the part not browsed, in the part that data sending and receiving module 102 has not been browsed the data
The identification information of the part of preservation and the data is sent to the mapping of third terminal 30 and preserved, and avoids preserving in third terminal 30
During the part that the part data have not been browsed, the data of same repetition are sent to third terminal 30 and preserved, further closed
Reason is effective to utilize bandwidth, improves bandwidth availability ratio.
Further, when first terminal 10 is reached the standard grade again, the analysis module 103, it is additionally operable to analyse whether exist not
The shared data sent;
The data acquisition module 101, it is additionally operable to, when the shared data not sent be present, obtain from third terminal 30
The part that the shared data not sent has been sent;
The data sending and receiving module 102, it is additionally operable to and the 3rd in the shared data not sent, will be not issued to eventually
The part at end 30 is sent to third terminal 30.
Specifically, when first terminal 10 is again online, analysis module 103 analyses whether the shared number not sent be present
According to, when the shared data not sent be present, data acquisition module 101 from third terminal 30 obtain it is described do not sent be total to
The part that data have been sent is enjoyed, and is not issued to by data sending and receiving module 102 by the shared data not sent
The part of third terminal 30 is sent to third terminal 30.The first terminal 10 played using X multimedia files as second terminal 20
Shared data instance, the size of X multimedia files is M, and when second terminal 20 is offline, X multimedia files are not whole by second
The size of parts that end 20 plays is S, part that X multimedia files have not been played by first terminal 10 and the broadcasting it is more
The identification information of media file is sent to the mapping of third terminal 30 and preserved, when first terminal 10 is offline, data sending and receiving module 102
The X multimedia files of N sizes have been sent to third terminal 30, and have recorded first terminal 10 it is offline when the X multimedias that send
The position of file, when first terminal 10 is again online, analysis module 103 analyses whether the shared data not sent be present,
When the X multimedia files not sent be present, the part that the acquisition of data acquisition module 101 has been issued to third terminal 30 is not sent out
The size of the X multimedia files sent(Have transmitted to the X multimedia files of the N sizes of third terminal 30), from X multimedias
The part not browsed in file(Size is S)The middle X multimedia files for deducting the N sizes for having transmitted to third terminal 30,
Obtain being currently needed for the X multimedia files for the S-N sizes for being sent to third terminal 30, data sending and receiving module 102 is by S-N sizes
X multimedia files are sent to third terminal 30, so that third terminal 30 receives the X for the S-N sizes that first terminal 10 has not been sent
Multimedia file, for second terminal 20 when first terminal 10 is offline, continue to play the X that does not play by third terminal 30 more
Media file.
By the way that when first terminal 10 is again online, analysis module 103 analyses whether the shared data not sent be present,
When the shared data not sent be present, data acquisition module 101 from third terminal 30 obtain it is described do not sent it is shared
The part that data have been sent, data sending and receiving module 102 are not issued to third terminal by the shared data not sent
30 part is sent to third terminal 30 and preserved, so that other-end passes through third terminal when follow-up first terminal 10 is offline
30 continue to browse the shared data of the first terminal 10 not browsed, and effectively avoid first terminal 10 from having part not send
The shared data not sent completely is sent to third terminal 30 again when complete shared data is sent to third terminal 30,
It is further rationally effective to utilize bandwidth, improve bandwidth availability ratio.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (10)
1. a kind of shared method of terminal offline data, it is characterised in that this method includes:
When first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains the mark of the data
Know information, and the identification information of the data of acquisition is sent to second terminal;
When second terminal is offline, first terminal by the identification information of the data and the presently described data acquired not by
The part browsed is sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is when first terminal is offline, root
According to the identification information of the data part that the data have not been browsed is browsed from third terminal.
2. the shared method of terminal offline data according to claim 1, it is characterised in that this method includes:
When first terminal, which detects second terminal, browses the shared data of first terminal, first terminal obtains the mark of the data
Know the identity information of information and second terminal, and the identification information of the data of acquisition is sent to second terminal;
When second terminal is offline, first terminal by the identification information of the data, the presently described data acquired not by
The part browsed and the identity information of second terminal are sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again
When first terminal is offline, browsed according to the identification information of the data and the identity information of second terminal from third terminal described in
The part that data have not been browsed.
3. the shared method of terminal offline data according to claim 1 or 2, it is characterised in that when second terminal again
When reaching the standard grade, this method also includes:
When not preserving the part that the data have not been browsed on third terminal, first terminal is established with second terminal to be connected
Connect, so that second terminal browses the part that the data have not been browsed according to self-identity information from first terminal.
4. the shared method of terminal offline data according to claim 1 or 2, it is characterised in that described to work as second terminal
When offline, the part that the identification information of the data and the data have not been browsed is sent to third terminal and reflected by first terminal
The step of penetrating preservation includes:
When detect second terminal it is offline when, first terminal obtains the data message that has preserved from third terminal;
The portion for whether thering are the data not browsed in the data message that the third terminal that first terminal analysis obtains has preserved
Point;
When finding out third terminal and preserving the part that the part data have not been browsed, first terminal by the data not by
The identification information of the unsaved part of third terminal and the data is sent to third terminal mapping and preserved in the part browsed.
5. the shared method of terminal offline data according to claim 1 or 2, it is characterised in that when first terminal again
When reaching the standard grade, this method is further comprising the steps of:
First terminal analyses whether the shared data not sent be present;
When the shared data not sent be present, the shared data not sent described in first terminal from third terminal acquisition is
The part of transmission, and the part that third terminal is not issued in the shared data not sent is sent to third terminal.
6. the shared system of a kind of terminal offline data, it is characterised in that the system includes first terminal, second terminal and the 3rd
Terminal, first terminal, second terminal and third terminal are by network connection, and second terminal browses data on first terminal, its
In, the first terminal includes data acquisition module and data sending and receiving module,
The data acquisition module, for when detecting second terminal and browsing the shared data of first terminal, obtaining the number
According to identification information;
The data sending and receiving module, for the identification information of the data of acquisition to be sent into second terminal;And
When second terminal is offline, the identification information of the data and the presently described data acquired have not been browsed
Part is sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is when first terminal is offline, according to the number
According to identification information browse the part that the data have not been browsed from third terminal.
7. the shared system of terminal offline data according to claim 6, it is characterised in that
The data acquisition module, for when detecting second terminal and browsing the shared data of first terminal, obtaining the number
According to identification information and second terminal identity information;
The data sending and receiving module, for the identification information of the data of acquisition to be sent into second terminal;And
When second terminal is offline, the identification information of the data got, the data acquired are not browsed
Complete part and the identity information of second terminal are sent to third terminal mapping and preserved, so that the second terminal reached the standard grade again is the
When one terminal is offline, the data are browsed from third terminal according to the identification information of the data and the identity information of second terminal
The part not browsed.
8. the system that the terminal offline data according to claim 6 or 7 is shared, it is characterised in that
The data sending and receiving module, it is additionally operable to, when second terminal is reached the standard grade again, not preserve the data on third terminal
During the part not browsed, establish and connect with second terminal so that second terminal according to self-identity information from first terminal
On browse the part that the data have not been browsed.
9. the system that the terminal offline data according to claim 6 or 7 is shared, it is characterised in that the first terminal is also
Including analysis module,
The data acquisition module, be additionally operable to when detect second terminal it is offline when, obtain the data that have preserved from third terminal
Information;
The analysis module, whether there are the data not clear for analyzing in the data message that has preserved of third terminal obtained
The part look at;
The data sending and receiving module, third terminal ought be found out by, which being additionally operable to, preserves the part that the part data have not been browsed
When, the identification information of the unsaved part of third terminal and the data is sent in the part that the data have not been browsed
Third terminal mapping preserves.
10. the shared system of terminal offline data according to claim 9, it is characterised in that when first terminal again on
During line,
The analysis module, it is additionally operable to analyse whether the shared data not sent be present;
The data acquisition module, it is additionally operable to, when the shared data not sent be present, not send out from described in third terminal acquisition
The part that the shared data sent has been sent;
The data sending and receiving module, it is additionally operable to, by the shared data not sent, be not issued to the part of third terminal
It is sent to third terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310476431.0A CN103546549B (en) | 2013-10-12 | 2013-10-12 | The shared method and system of terminal offline data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310476431.0A CN103546549B (en) | 2013-10-12 | 2013-10-12 | The shared method and system of terminal offline data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103546549A CN103546549A (en) | 2014-01-29 |
CN103546549B true CN103546549B (en) | 2017-12-12 |
Family
ID=49969588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310476431.0A Expired - Fee Related CN103546549B (en) | 2013-10-12 | 2013-10-12 | The shared method and system of terminal offline data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103546549B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116260816B (en) * | 2023-05-16 | 2023-07-25 | 中科融信科技有限公司 | Data interaction system and method based on IT and CT |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072166A (en) * | 2007-04-28 | 2007-11-14 | 腾讯科技(深圳)有限公司 | System and method for realizing network reserved storage |
CN101184055A (en) * | 2007-12-11 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Method and device of delivering, receiving, transmitting off-line files |
CN102355426A (en) * | 2011-06-30 | 2012-02-15 | 北京神州泰岳软件股份有限公司 | Method for transmitting off-line file and system |
CN103108008A (en) * | 2011-11-14 | 2013-05-15 | 腾讯科技(深圳)有限公司 | Method of downloading files and file downloading system |
CN103248645A (en) * | 2012-02-08 | 2013-08-14 | 深圳市腾讯计算机系统有限公司 | BT (Bit Torrent) off-line data downloading system and method |
-
2013
- 2013-10-12 CN CN201310476431.0A patent/CN103546549B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072166A (en) * | 2007-04-28 | 2007-11-14 | 腾讯科技(深圳)有限公司 | System and method for realizing network reserved storage |
CN101184055A (en) * | 2007-12-11 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Method and device of delivering, receiving, transmitting off-line files |
CN102355426A (en) * | 2011-06-30 | 2012-02-15 | 北京神州泰岳软件股份有限公司 | Method for transmitting off-line file and system |
CN103108008A (en) * | 2011-11-14 | 2013-05-15 | 腾讯科技(深圳)有限公司 | Method of downloading files and file downloading system |
CN103248645A (en) * | 2012-02-08 | 2013-08-14 | 深圳市腾讯计算机系统有限公司 | BT (Bit Torrent) off-line data downloading system and method |
Also Published As
Publication number | Publication date |
---|---|
CN103546549A (en) | 2014-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101291330B (en) | Communications system | |
CN102281205B (en) | The method of the text importing in a kind of instantaneous communication system, terminal and system | |
CN101540740B (en) | Prompting method of a plurality of instant communication windows, system and device thereof | |
US9204180B2 (en) | Method, server and terminal for audio and video on demand | |
US20020065922A1 (en) | Method and apparatus for selection and redirection of an existing client-server connection to an alternate data server hosted on a data packet network (DPN) based on performance comparisons | |
CN103929349B (en) | A kind of methods, devices and systems of addition instant message contact person | |
CN111526374A (en) | Live broadcast-based bullet screen processing method, stream pulling method and device | |
CN111224792A (en) | Conference access method and device | |
CN105207832A (en) | Server stress testing method and device | |
CN109982293A (en) | Flow product method for pushing, system, electronic equipment and storage medium | |
CN107249136A (en) | Method for connecting network and device | |
CN102136948B (en) | Method, terminal equipment and system for counting user experiences | |
CN103546549B (en) | The shared method and system of terminal offline data | |
CN104104556B (en) | Carry out the method and system that recommendation information shows | |
CN104184723A (en) | Application identifying method and device and network equipment | |
CN104092716A (en) | Data sharing method, first terminal, server and system | |
CN101106540A (en) | A method, system and device for displaying multimedia information in IM message | |
CN105991353A (en) | Fault location method and device | |
EP2342874A1 (en) | A message system for social networks | |
CN106357728A (en) | Message processing method, system and terminal | |
CN110324727A (en) | Computer readable storage medium, server and its method for responding playing request | |
CN105610937B (en) | Obtain the system and method for visitor and access device information | |
CN111416762B (en) | Method, device, system and storage medium for establishing network tunnel | |
CN109428803A (en) | A kind of method for sending voice message and system | |
CN108769274B (en) | Conversational file transmission method and device, and equipment/terminal/server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171212 |