CN104092724B - Method, terminal and the server that song data pulls - Google Patents

Method, terminal and the server that song data pulls Download PDF

Info

Publication number
CN104092724B
CN104092724B CN201410143623.4A CN201410143623A CN104092724B CN 104092724 B CN104092724 B CN 104092724B CN 201410143623 A CN201410143623 A CN 201410143623A CN 104092724 B CN104092724 B CN 104092724B
Authority
CN
China
Prior art keywords
song
server
terminal
information
identity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410143623.4A
Other languages
Chinese (zh)
Other versions
CN104092724A (en
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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410143623.4A priority Critical patent/CN104092724B/en
Publication of CN104092724A publication Critical patent/CN104092724A/en
Application granted granted Critical
Publication of CN104092724B publication Critical patent/CN104092724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses method, terminal and server that a kind of song data pulls, relate to technical field of internet application, for solving when number of songs is a lot during song is single, pull that efficiency is low, server system expense high and the problem of waste bandwidth.Method includes: server judges that the first single mark of song that terminal sends singly identifies whether identical with the second song of storage in server, first song is singly designated the identification number that the first song that terminal currently preserves is single, and the second song is singly designated in server the identification number that second song finally set up corresponding to terminal of storage is single;If the first single mark of song differs with the second single mark of song, from the second song is single, then search the song information of at least one target song, target song be the predetermined number of the second song list song in be not included in the song of the first song list, song information includes song identity and song details;The song information of at least one target song is sent to terminal.During present invention is mainly applied to data syn-chronization.

Description

Method, terminal and the server that song data pulls
Technical field
The present invention relates to technical field of internet application, particularly relate to method, end that a kind of song data pulls End and server.
Background technology
In the transmission of internet data, there is propelling movement and pull two ways." push " and refer to internet content Supplier periodically sends data to subscribing user;" pull " and refer to that user downloads number at ICP According to.The online music player installed on existing mobile terminal, during pulling, pulls method by following Provide a user with the service of pulling:
Mobile terminal goes out from server to obtain the timestamp that the up-to-date song preserved server is single, if this time Stab the timestamp locally stored from mobile terminal different, then from server, pull whole songs that song single pair of is answered Information, to realize up-to-date single the pulling of song.
Stating during song data pulls in realization, inventor finds at least to exist in prior art as follows Problem: when pulling the whole song information sung in list, if number of songs is a lot (hundreds and thousands of), then draws Taking the time longer, because of unstable networks, to cause song data to pull the probability of failure higher, and then reduces data The success rate drawn.When number of songs is a lot, the data volume of the single information of song of song is relatively big, sends out to terminal The overhead giving the single information of these songs to cause server is high;Additionally, due to the data volume of whole song informations Bigger, it is therefore desirable to the long period is transmitted, cause bandwidth waste.
Summary of the invention
Embodiments of the invention provide method, terminal and the server that a kind of song data pulls, it is possible to solve When number of songs is a lot of during song is single, pull that efficiency is low, server system expense high and the problem of waste bandwidth.
On the one hand, the invention provides a kind of method that song data pulls, described method includes:
Server judges that the first single mark of song that terminal sends singly identifies whether with the second song of storage in server Identical, described first song is singly designated the identification number that the first song that described terminal currently preserves is single, and described second Song is singly designated in described server the mark of the second song list finally set up corresponding to described terminal of storage Number;
If the described first single mark of song differs, then from described second song is single with the described second single mark of song Searching the song information of at least one target song, described target song is the song of the predetermined number of the second song list Being not included in the song that described first song is single in song, described song information includes that song identity and song are believed in detail Breath;
The song information of at least one target song described is sent to described terminal.
Second aspect, present invention also offers a kind of method that song data pulls, and described method includes:
Terminal to server sends first and pulls request, and described first pulls request includes the first song list mark, Described first song is singly designated the identification number of the first song list that terminal currently preserves;
Receiving the song information of at least one target song that server sends, described target song is not for comprise In the song that described first song is single, described song information includes song identity and song details;
The song information of at least one target song described that display receives.
The third aspect, present invention also offers a kind of method that song data pulls, and described method includes:
Terminal obtains the second song list of server preservation and identifies and described second song corresponding the singing in list of list mark All song identity of songs, described second song be singly designated in described server storage corresponding to described end The identification number that last the second song set up of end is single;
The second song that the first single mark of song that terminal judges this locality preserves and server send singly identifies whether phase With, described first song is singly designated the identification number of the first song list that described terminal currently preserves;
If the described first single mark of song differs, then from described second song is single with the described second single mark of song Searching the song identity of at least one target song, described target song is the song of the predetermined number of the second song list Song is not included in the song that described first song is single;
From server, obtain the song information of described target song, described song information include song identity and Song details.
Fourth aspect, present invention also offers a kind of method that song data pulls, and described method includes:
The second single mark of song that server sends server preservation to terminal is corresponding with described second song list mark The song identity of the whole songs during song is single, described second song is singly designated in described server the correspondence of storage Identification number in the second song list that described terminal is finally set up;
The request of data sent according to terminal, to the song information of transmission target song eventually, described target song Be the second song list predetermined number song in be not included in song information bag described in the song that described first song is single Include song identity and song details.
5th aspect, present invention also offers a kind of server, and described server includes:
Judging unit, single with the second song of storage in server for judging the first single mark of song that terminal sends Identifying whether identical, described first song is singly designated the identification number of the first song list that described terminal currently preserves, Described second song is singly designated in described server the second song list finally set up corresponding to described terminal of storage Identification number;
Search unit, for obtaining the described first single mark of song and the described second single mark of song when described judging unit When knowledge differs, from described second song is single, search the song information of at least one target song, described target Song be the predetermined number of the second song list song in be not included in the song that described first song is single, described song Information includes song identity and song details;
Transmitting element, for the song information by least one target song described in the lookup of described lookup unit It is sent to described terminal.
6th aspect, present invention also offers a kind of terminal, and described terminal includes:
Transmitting element, pulls request for sending first to server, and described first pulls request includes first Singing single mark, described first song is singly designated the identification number of the first song list that terminal currently preserves;
Receive unit, for receiving the song information of at least one target song that server sends, described mesh Mark song is to be not included in the song that described first song is single, and described song information includes that song identity and song are detailed Thin information;
Display unit, for the song information of at least one target song described that display receives.
7th aspect, present invention also offers a kind of terminal, and described terminal includes:
Acquiring unit, the second song list preserved for obtaining server identifies corresponding with the described second single mark of song Song single in the song identity of whole songs, described second song is singly designated in described server the right of storage The identification number of the second song list that terminal described in Ying Yu is finally set up;
Judging unit, for judging local the first single mark of song and the second of the acquisition of described acquiring unit preserved Song singly identifies whether identical, and described first song is singly designated the mark of the first song list that described terminal currently preserves Number;
Search unit, for when the described first single mark of song differs with the described second single mark of song, from institute Stating the song identity searching at least one target song in the second song list, described target song is the second song list The song of predetermined number is not included in the song that described first song is single;
Described acquiring unit is additionally operable to, and obtains the described target song that described lookup unit obtains from server Song information, described song information includes song identity and song details.
Eighth aspect, present invention also offers a kind of server, and described server includes:
Transmitting element, for sending, to terminal, the second single mark of song and the described second single mark of song that server preserves Knowing the song identity of the corresponding whole songs sung in list, described second song is singly designated in described server to be deposited The identification number of the second song list finally set up corresponding to described terminal of storage;
Receive unit, for receiving the request of data that terminal sends;
Described transmitting element is additionally operable to, the request of data sent according to described terminal, to sending target song eventually Song information, described target song be the predetermined number of the second song list song in be not included in described first Song information described in the song that song is single includes song identity and song details.
Method, terminal and the server that the song data that the present invention provides pulls, server can interpolate that terminal In the first single mark of song sent and server, the second song of storage singly identifies whether identical, if described first The single mark of song differs with the described second single mark of song, then search at least one target from described second song is single The song information of song, is sent to described terminal by the song information of at least one target song described.Existing In technology server receive that terminal sends pull request after, as long as the first single mark of song and server are deposited Second song single mark difference of storage, is just sent to terminal by the full content that second sings single-row table, in song is single Number of songs the biggest time, reduce data transmission success rate.In the present invention, only send the second song to terminal Part song information in single-row table, and then while reducing transmitted data amount raising data transmission success Ensure that the normal use of user.Owing to sending second is sung and is only part song information in single-row table, therefore Decrease volume of transmitted data, and then reduce server system expense, save bandwidth.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the method that first song data pulls in the embodiment of the present invention;
Fig. 2 is the flow chart of the method that second song data pulls in the embodiment of the present invention;
Fig. 3 is the flow chart of the 3rd method that song data pulls in the embodiment of the present invention;
Fig. 4 is the flow chart of the 4th method that song data pulls in the embodiment of the present invention;
Fig. 5 is the flow chart of the 5th method that song data pulls in the embodiment of the present invention;
Fig. 6 is the flow chart of the 6th method that song data pulls in the embodiment of the present invention;
Fig. 7 is the flow chart of the 7th method that song data pulls in the embodiment of the present invention;
Fig. 8 is the flow chart of the 8th method that song data pulls in the embodiment of the present invention;
Fig. 9 is the structural representation of first server in the embodiment of the present invention;
Figure 10 is the structural representation of second server in the embodiment of the present invention;
Figure 11 is the structural representation of first terminal in the embodiment of the present invention;
Figure 12 is the structural representation of second terminal in the embodiment of the present invention;
Figure 13 is the flow chart of the 9th method that song data pulls in the embodiment of the present invention;
Figure 14 is the flow chart of the tenth method that song data pulls in the embodiment of the present invention;
Figure 15 is the flow chart of the 11st method that song data pulls in the embodiment of the present invention;
Figure 16 is the flow chart of the 12nd method that song data pulls in the embodiment of the present invention;
Figure 17 is the flow chart of the 13rd method that song data pulls in the embodiment of the present invention;
Figure 18 is the structural representation of the 3rd terminal in the embodiment of the present invention;
Figure 19 is the structural representation of the 3rd server in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Embodiments providing a kind of method that song data pulls, described method is applied in server, As it is shown in figure 1, described method includes:
Step 101, server judge that single the second song identifying and storing in server of the first song that terminal sends is single Identify whether identical.
Wherein, the first song is singly designated the identification number of the first song list that terminal currently preserves, the second single mark of song For the identification number of the second song list finally set up corresponding to terminal of storage in server.
Terminal described in the embodiment of the present invention is to have the intelligent terminal of network connecting function, such as: intelligence hands Machine, panel computer etc..
The single mark of whole songs of server record terminal, including the first song list mark and the single mark of the second song.Song Singly it is designated timestamp or numeral, can determine that the priority between each song list is suitable by comparing timestamp or numeral Sequence.As: the song that the song single pair of of first foundation is answered singly is designated numeral " 1 ", second song single pair of set up The song answered singly is designated numeral " 2 ", and the song of newly-built song list is singly designated the single mark of existing song and adds 1, by that analogy, The song that the song single pair of that n-th is set up is answered singly is designated " N ", by the size of the single mark of contrast song, determines that Individual is the last song list set up.
The scene of present invention application is to have updated in server to have up-to-date song list, therefore preserves in server Second song is singly designated up-to-date song list mark.Different (the is identified if the first single mark of song is single with the second song The one single mark of song is less than the second single mark of song), then the song single version (the first single mark of song) that terminal preserves falls behind The song single version (the second single mark of song) preserved in server, needs to send song letter to be pulled to terminal Breath.If the first single mark of song is identical with the second single mark of song, then song single version (the first song that terminal preserves Single mark) identical, then without sending out to terminal with the song single version of preservation in server (the second single mark of song) Send song information to be pulled.
If step 102 first is sung single mark and differed with the second single mark of song, then search from the second song is single The song information of at least one target song.
Wherein, target song be the predetermined number of the second song list song in be not included in the song of the first song list, Song information includes song identity and song details.
The target song being not included in the first song list is chosen from the second song is single.Song identity is for unique mark One song, song details include at least one information following: song title, singer's title, song Special edition, playing duration, file size, song URL (Uniform Resource Locator, Be called for short URL), song seed URL, song origin ID, song code check.
Step 103, the song information of at least one target song is sent to terminal.
By wireless network, the song information of the target complete song chosen is sent to terminal.
The method that pulls of song data that the embodiment of the present invention provides, server can interpolate that terminal sends the In the one single mark of song and server, the second song of storage singly identifies whether identical, if the described first single mark of song Differ with the described second single mark of song, then from described second song is single, searches the song of at least one target song Bent information, is sent to described terminal by the song information of at least one target song described.Prior art takes Business device receive that terminal sends pull request after, as long as in the first single mark of song and server the second of storage Song single mark difference, is just sent to terminal by the full content that second sings single-row table, the number of songs in song is single When measuring the biggest, reduce the success rate of data transmission.In the present invention, only send in the second single-row table of song to terminal Part song information, and then improve while data transmission success ensure that use reducing transmitted data amount The normal use at family.Owing to sending second is sung and is only part song information in single-row table, therefore decreases number According to transmission quantity, and then reduce server system expense, save bandwidth.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Further illustrate, as in figure 2 it is shown, step 101, server judge the first single mark of song that terminal sends and In server storage second song singly identify whether identical before, described method also includes:
Step 100, receive that terminal sends first pull request, described first pull in comprise described first song Single mark.
First draws request for existing communication signaling between terminal and server.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Specifically describe, as it is shown on figure 3, step 102, search at least one target song from described second song is single Song information, including:
Step 301, second song first song information of Dan Zhongcong start, obtain the song of the first predetermined number Information.
First predetermined number n1 is the integral multiple of song information quantity n2 that can show in terminal screen, such as: n1=2*n2。
If it is 20 head that terminal often shields the song information quantity that can show, the most front page two songs that can show Information content is 40 head, and now the first predetermined number is 20.
Step 302, from the song information of the first predetermined number according to song identity search be not included in the first song At least one target song in list.
In use, inventor finds that the content difference of two adjacent song lists is typically limited, such as Containing N song in the single A of song, containing N-2 song in the single A+1 of song, and the N-2 in the single A+1 of song is first Song is the song in the single A of song.Now without the details of this N-2 song being repeated transmission, only The song identity of this N-2 song is sent to terminal, and then volume of transmitted data can be reduced, enter one Step improves the success rate of data transmission.
Step 103, the song information of at least one target song described is sent to described terminal, including:
Step 303, the song identity of at least one target song described is sent to described terminal.
The method that the song data that the embodiment of the present invention provides pulls, is reduced by two ways and pulls each time Data volume so that raising pull success rate, concrete: 1, from the song information of the first predetermined number select Target song, 2, search at least one target song of being not included in the first song list.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Further illustrate, as shown in Figure 4, in step 103, the song information of at least one target song described is sent out After delivering to described terminal, described method includes:
Step 401, receive that terminal sends second pull request, second pulls request for terminal from server Pull the song information in addition to the song information of the first predetermined number in the second song list.
Second pulls request for the song information not pulled the most on a small quantity.
Step 402, in the second song is single putting in order according to song, the second predetermined number never pulled Song information is searched at least one the supplementary song being not included in the first song list.
The timestamp that song is uploaded according to song identity or song is ranked up.
Step 403, at least one supplementary song is sent to terminal.
Optionally, the song information of the second predetermined number is all sent to terminal.
The method that the song data that the embodiment of the present invention provides pulls, can cross according to terminal transmission second and pull Request, selects the song information of the second predetermined number to be sent to terminal, enters one in the song information never pulled Step, at least one the supplementary song being not included in the second predetermined number in the first song list is sent to terminal. By repeatedly pulling realization, whole song informations are sent to terminal.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as it is shown in figure 5, described method Being applied in terminal, described method includes:
Step 501, terminal to server send first and pull request, and first pulls request includes the first song list mark Knowing, the first song is singly designated the identification number of the first song list that terminal currently preserves.
When music player software during user opens terminal, terminal to server sends first and pulls request; Or, when the network that user opens terminal connects, terminal to server sends first and pulls request;Or, When user opens terminal supplying power, terminal to server sends first and pulls request.
The song information of at least one target song that step 502, reception server send, target song is not Being contained in the song of the first song list, song information includes song identity and song details.
The song information of at least one target song that step 503, display receive.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Further illustrate, as shown in Figure 6, in step 502, receive at least one target song that server sends After song information, described method also includes:
Step 601, sending second according to user operation to described server and pull request, described second pull please Ask for from server pull song information in addition to the song information pulled.
User operation includes: page turn over operation, scrolling operations etc..
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Further illustrate, as it is shown in fig. 7, in step 502, receive at least one target song that server sends After song information, described method also includes:
Step 701, send to server according to network environment and second pull request, second pull request for from Server pull song information in addition to the song information pulled.
When network environment is WLAN (such as WiFi), sends second from trend server and pull request. When network environment is for mobile data traffic (such as GPRS, 3G or 4G), cancels and send the from trend server Two pull request.
At least one supplementary song that step 702, reception server send.
The method that the song data that the embodiment of the present invention provides pulls, it is possible to when network environment is suitable to service Device is initiated second and is pulled request, reduces use cost improving while song data pulls speed.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method shown in Fig. 1 Further illustrating, as shown in Figure 8, described method also includes:
Step 801, when user operation is used for checking song details, it is judged that this locality has preserved use the most Family operates the song details that the song identity pointed to is corresponding.
If step 802 this locality does not preserves song details, then send the 3rd to server and pull request, 3rd pulls the song details that the song identity asked for obtaining user operation sensing is corresponding.
The method that the song data that the embodiment of the present invention provides pulls, it is possible to check the detailed of certain song user During thin information, according to the situation of locally stored song details, send the 3rd to server and pull request, Realize the song data of a song is pulled.
The embodiment of the present invention additionally provides a kind of server 9, as it is shown in figure 9, described server 9 includes:
Judging unit 91, for judging that the first song list that terminal sends identifies with in server 9 the second of storage Song singly identifies whether identical, and described first song is singly designated the mark of the first song list that described terminal currently preserves Number, described second song is singly designated in described server 9 finally set up the of storage corresponding to described terminal The identification number that two songs are single;
Search unit 92, for obtaining the described first single mark of song and described second song when described judging unit 91 When single mark differs, from described second song is single, search the song information of at least one target song, described Target song be the predetermined number of the second song list song in be not included in the song that described first song is single, described Song information includes song identity and song details;
Transmitting element 93, is used for the song of at least one target song described in being searched by described lookup unit 92 Information is sent to described terminal.
Further, as shown in Figure 10, described server 9 also includes:
Receiving unit 1001, first sent for receiving terminal pulls request, described first pull in comprise The described first single mark of song.
Further, described lookup unit 92 includes:
Obtain subelement 921, for starting at second song first song information of Dan Zhongcong, obtain first and preset The song information of quantity;
Search subelement 922, the song of described first predetermined number for obtaining from described acquisition subelement 921 Bent information is searched at least one target song being not included in described first song list according to song identity;
Described transmitting element 93 is additionally operable to, and the song identity of at least one target song described is sent to described Terminal.
Further, described reception unit 1001 is additionally operable to, and receive terminal transmission second pulls request, institute State second pull request for terminal from server 9 pull described second song single except described first predetermined number Song information beyond song information;
Described lookup unit 92 is additionally operable to, putting in order according to song in described second song is single, never draws The song information of the second predetermined number taken is searched at least one being not included in described first song list supplement Song;
Described transmitting element 93 is additionally operable to, and at least one supplementary song described is sent to described terminal.
The embodiment of the present invention additionally provides a kind of terminal 11, and as shown in figure 11, described terminal 11 includes:
Transmitting element 1101, pulls request for sending first to server, and described first pulls request includes First sings single mark, and described first song is singly designated the identification number of the first song list that terminal 11 currently preserves;
Receive unit 1102, for receiving the song information of at least one target song that server sends, institute Stating target song is to be not included in the song that described first song is single, and described song information includes song identity and song Bent details;
Display unit 1103, for the song information of at least one target song described that display receives.
Further, described transmitting element 1101 is additionally operable to: send the according to user operation to described server Two pull request, described second pull request for from server pull in addition to the song information pulled Song information;
Described reception unit 1102 is additionally operable to, and receives described server and pulls what request sent according to described second At least one supplementary song.
Further, described transmitting element 1101 is additionally operable to, and sends the according to network environment to described server Two pull request, described second pull request for from server pull in addition to the song information pulled Song information.
Further, as shown in figure 12, described terminal 11 also includes:
Judging unit 1201, for when described user operation is used for checking song details, it is judged that local The song details that the song identity of described user operation sensing is corresponding are the most preserved;
Described transmitting element 1101 is additionally operable to, and does not preserves described song when described judging unit 1201 obtains this locality During bent details, sending the 3rd to described server and pull request, the described 3rd pulls request for obtaining Song details corresponding to song identity that described user operation is pointed to.
Server 9 described in above-described embodiment and the terminal 11 described in above-described embodiment can also form a song Bent data pull system.
The embodiment of the present invention additionally provides a kind of method that song data pulls, and described method is applied to terminal, As shown in figure 13, described method includes:
Step 1301, terminal obtain the second single mark of song of server preservation and identify corresponding song with the second song list The song identity of the whole songs in list.
Wherein, to be singly designated in server second song finally set up corresponding to terminal of storage single for the second song Identification number.
Terminal acquisition process includes that terminal to server sends request of data and receives server according to these data The song mark of the single whole songs identified in the song list corresponding with the second single mark of song of the second song that request sends Know.
The first the second song list singing list mark and server transmission that step 1302, terminal judges this locality preserve is marked Knowing the most identical, the first song is singly designated the identification number of the first song list that terminal currently preserves.
If step 1,303 first is sung single mark and differed with the second single mark of song, then look into from the second song is single Look for the song identity of at least one target song, target song be the predetermined number of the second song list song in not It is contained in the song of the first song list.
Step 1304, obtaining the song information of target song from server, song information includes song identity With song details.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method described in Figure 13 Illustrating, as shown in figure 14, step 1301, terminal obtain the second single mark of song and institute that server preserves State the step of the song identity of the whole songs sung in list corresponding to the second song list mark, including:
Step 1401, terminal obtain the second single mark of song that server preserves.
If step 1,402 first is sung single mark and differed with the second single mark of song, then obtain the second single mark of song Know the song identity of the corresponding whole songs sung in list.
If step 1,403 first is sung list and identified identical with the second single mark of song, then cancel acquisition second and sing single The song identity of the whole songs in the song list that mark is corresponding.
The embodiment of the present invention provide in the method that pulls of song data, it is possible to avoid the first single mark of song with When the described second single mark of song is identical, still obtains described second and sing the whole songs in the song list that single mark is corresponding Song identity, cause frequency spectrum waste.
The embodiment of the present invention additionally provides a kind of method that song data pulls, as to method described in Figure 13 Illustrate, as shown in figure 15, step 1301, from described second song is single, search at least one target song Step, including:
Step 1501, second song first song identity of Dan Zhongcong start, obtain the song of the first predetermined number Bent mark.
Step 1502, from the song identity of the first predetermined number according to song identity search be not included in first At least one target song during song is single.
Further, step 1304, from server, obtain described target song song information after, Described method also includes:
Sending second according to user operation to server and pull request, second pulls request for drawing from server Remove the song information beyond the song information pulled.
Further, as shown in figure 16, in step 1304, the song that obtains described target song from server After bent information, described method also includes:
Step 1601, when user operation is used for checking song details, it is judged that this locality is preserved the most Song details corresponding to song identity that user operation is pointed to.
If step 1602 this locality does not preserves song details, then send the 3rd to server and pull request, 3rd pulls the song details that the song identity asked for obtaining user operation sensing is corresponding.
The embodiment of the present invention additionally provides a kind of method that song data pulls, and described method is applied at server In, as shown in figure 17, described method includes:
Step 1701, server send, to terminal, the second single mark of song and the single mark of the second song that server preserves The song identity of the whole songs during corresponding song is single, the second song is singly designated in server corresponding to of storage The identification number of the second song list that terminal is finally set up.
Step 1702, the request of data sent according to terminal, to the song information of transmission target song eventually, mesh Mark song be the predetermined number of the second song list song in be not included in the Songs information of the first song list and include Song identity and song details.
Further, in the described request of data sent according to terminal, the song of target song is sent to terminal After the step of information, described method also includes:
Receiving the second of terminal transmission and pull request, described second pulls request for having removed from server pull The song information beyond song information pulled
Pull according to described second and ask to send the song information in addition to the song information pulled to terminal.
Further, in the described request of data sent according to terminal, to the song letter sending target song eventually After the step of breath, described method also includes:
Receiving the 3rd of terminal transmission and pull request, the described 3rd pulls request points to for obtaining user operation Song details corresponding to song identity;
Pull according to the described 3rd and ask to send, to terminal, song corresponding to song identity that described user operation is pointed to Bent details.
The embodiment of the present invention additionally provides a kind of terminal 18, and as shown in figure 18, described terminal 18 includes:
Acquiring unit 1801, for obtaining the second single mark of song and the described second single mark of song that server 19 preserves Knowing the song identity of the corresponding whole songs sung in list, described second song is singly designated in described server 19 The identification number of the second song list finally set up corresponding to described terminal 18 of storage.
Judging unit 1802, obtains for the first single mark of song and described acquiring unit 1801 judging local preservation The second song taken singly identifies whether identical, and described first song is singly designated first that described terminal 18 currently preserves The identification number that song is single.
Search unit 1803, for when the described first single mark of song differs with the described second single mark of song, Searching the song identity of at least one target song from described second song is single, described target song is the second song The song of single predetermined number is not included in the song that described first song is single;
Described acquiring unit 1801 is additionally operable to, and obtains what described lookup unit 1803 obtained from server 19 The song information of described target song, described song information includes song identity and song details.
Further, described acquiring unit 1801 is additionally operable to:
Obtain the second single mark of song that server 19 preserves;
If the described first single mark of song differs with the described second single mark of song, then obtain described second song single The song identity of the whole songs in the song list that mark is corresponding.
Further, described lookup unit 1803 is additionally operable to:
Start in second song first song identity of Dan Zhongcong, obtain the song identity of the first predetermined number;
Search according to song identity from the song identity of described first predetermined number and be not included in described first song At least one target song in list.
Further, described acquiring unit 1801 is additionally operable to, according to user operation to described server 19 Sending second to pull request, described second pulls request for pulling except the song information pulled from server 19 Song information in addition.
Further, described judging unit 1802 is additionally operable to, when described user operation is used for checking that song is detailed During information, it is judged that the local song the most having preserved song identity that described user operation points to corresponding is detailed Information;
Described acquiring unit 1801 is additionally operable to, and does not preserves described song when described judging unit 1802 obtains this locality During bent details, sending the 3rd to described server 19 and pull request, the described 3rd pulls request for obtaining Take the song details that the song identity of described user operation sensing is corresponding.
The embodiment of the present invention additionally provides a kind of server 19, and as shown in figure 19, described server 19 includes:
Transmitting element 1901, for sending to terminal 18, the second song of server 19 preservation is single to be identified and described Second song identity singing the whole songs in the song list that single mark is corresponding, described second song is singly designated described The identification number of the second song list finally set up corresponding to described terminal 18 of storage in server 19;
Receive unit 1902, for receiving the request of data that terminal 18 sends;
Described transmitting element 1901 is additionally operable to, and the request of data sent according to described terminal 18, to whole transmission The song information of target song, described target song be the predetermined number of the second song list song in be not included in Song information described in the song that described first song is single includes song identity and song details.
Further, described reception unit 1902 is additionally operable to, and receive terminal 18 transmission second pulls request, Described second pulls request for pulling the song information in addition to the song information pulled from server 19
Described transmitting element 1901 is additionally operable to pull request according to described second and sends except pulling to terminal 18 Song information beyond song information.
Further, described reception unit 1902 is additionally operable to, and receive terminal 18 transmission the 3rd pulls request, Described 3rd pulls the song details that the song identity asked for obtaining user operation sensing is corresponding;
Described transmitting element 1901 is additionally operable to, and pulls request according to the described 3rd and sends described use to terminal 18 Family operates the song details that the song identity pointed to is corresponding.
State the terminal 18 shown in embodiment and the server 19 shown in above-described embodiment can also form a song Bent data pull system.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired Join and completed by different functional modules, the internal structure of device will be divided into different functional modules, with complete Become all or part of function described above.The specific works mistake of the system of foregoing description, device and unit Journey, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should Described it is as the criterion with scope of the claims.

Claims (27)

1. the method that a song data pulls, it is characterised in that described method includes:
Server judges that the first single mark of song that terminal sends singly identifies whether with the second song of storage in server Identical, described first song is singly designated the identification number that the first song that described terminal currently preserves is single, and described second Song is singly designated in described server the mark of the second song list finally set up corresponding to described terminal of storage Number;
If the described first single mark of song differs, then from described second song is single with the described second single mark of song Searching the song information of at least one target song, described target song is the song of the predetermined number of the second song list Being not included in the song that described first song is single in song, described song information includes that song identity and song are believed in detail Breath;
The song information of at least one target song described is sent to described terminal.
The method that song data the most according to claim 1 pulls, it is characterised in that at described server Judge that the first single mark of song that terminal sends singly identifies whether identical step with the second song of storage in server Before, described method also includes:
Receive that terminal sends first pulls request, described first pull in comprise the described first single mark of song.
The method that song data the most according to claim 2 pulls, it is characterised in that described from described The step of the song information of at least one target song is searched during two songs are single, including:
Start at second song first song information of Dan Zhongcong, obtain the song information of the first predetermined number;
Search according to song identity from the song information of described first predetermined number and be not included in described first song At least one target song in list;
The described song information by least one target song described is sent to described terminal, including:
The song identity of at least one target song described is sent to described terminal.
The method that song data the most according to claim 3 pulls, it is characterised in that described by described After the song information of at least one target song is sent to described terminal, described method also includes:
Receiving the second of terminal transmission and pull request, described second pulls request for terminal from server pull Described second sings the song information in list in addition to the song information of described first predetermined number;
Putting in order according to song in described second song is single, the song of the second predetermined number never pulled Information is searched at least one the supplementary song being not included in described first song list;
At least one supplementary song described is sent to described terminal.
5. the method that a song data pulls, it is characterised in that described method includes:
Terminal to server sends first and pulls request, and described first pulls request includes the first song list mark, Described first song is singly designated the identification number of the first song list that terminal currently preserves;
Receiving the song information of at least one target song that server sends, described target song is not for comprise In the song that described first song is single, described song information includes song identity and song details;
The song information of at least one target song described that display receives.
The method that song data the most according to claim 5 pulls, it is characterised in that receiving server After the step of the song information of at least one target song sent, described method also includes:
Send second according to user operation to described server and pull request, described second pull request for from Server pull song information in addition to the song information pulled.
The method that song data the most according to claim 5 pulls, it is characterised in that receiving server After the step of the song information of at least one target song sent, described method also includes:
Send second according to network environment to described server and pull request, described second pull request for from Server pull song information in addition to the song information pulled;
Receive at least one supplementary song that described server sends.
The method that song data the most according to claim 5 pulls, it is characterised in that described method is also wrapped Include:
When user operation is used for checking song details, it is judged that this locality has preserved described user behaviour the most Make the song details that the song identity pointed to is corresponding;
If this locality does not preserves described song details, then send the 3rd to described server and pull request, Described 3rd song pulling the song identity asked for obtaining described user operation sensing corresponding is believed in detail Breath.
9. the method that a song data pulls, it is characterised in that described method includes:
Terminal obtains the second song list of server preservation and identifies and described second song corresponding the singing in list of list mark All song identity of songs, described second song be singly designated in described server storage corresponding to described end The identification number that last the second song set up of end is single;
The second song that the first single mark of song that terminal judges this locality preserves and server send singly identifies whether phase With, described first song is singly designated the identification number of the first song list that described terminal currently preserves;
If the described first single mark of song differs, then from described second song is single with the described second single mark of song Searching the song identity of at least one target song, described target song is the song of the predetermined number of the second song list Song is not included in the song that described first song is single;
From server, obtain the song information of described target song, described song information include song identity and Song details.
The method that song data the most according to claim 9 pulls, it is characterised in that described terminal obtains Take the single whole songs identified in the song list corresponding with described second song list mark of the second song of server preservation The step of song identity, including:
Terminal obtains the second single mark of song that server preserves;
If the described first single mark of song differs with the described second single mark of song, then obtain described second song single The song identity of the whole songs in the song list that mark is corresponding.
The method that 11. song datas according to claim 10 pull, it is characterised in that described from described The step of at least one target song is searched during second song is single, including:
Start in second song first song identity of Dan Zhongcong, obtain the song identity of the first predetermined number;
Search according to song identity from the song identity of described first predetermined number and be not included in described first song At least one target song in list.
The method that 12. song datas according to claim 11 pull, it is characterised in that from server After the step of the song information of the described target song of middle acquisition, described method also includes:
Send second according to user operation to described server and pull request, described second pull request for from Server pull song information in addition to the song information pulled.
The method that 13. song datas according to claim 11 pull, it is characterised in that from server After the step of the song information of the described target song of middle acquisition, described method also includes:
When user operation is used for checking song details, it is judged that this locality has preserved described user behaviour the most Make the song details that the song identity pointed to is corresponding;
If this locality does not preserves described song details, then send the 3rd to described server and pull request, Described 3rd song pulling the song identity asked for obtaining described user operation sensing corresponding is believed in detail Breath.
The method that 14. 1 kinds of song datas pull, it is characterised in that described method includes:
The second single mark of song that server sends server preservation to terminal is corresponding with described second song list mark The song identity of the whole songs during song is single, described second song is singly designated in described server the correspondence of storage Identification number in the second song list that described terminal is finally set up;
The request of data sent according to terminal, sends the song information of target song to terminal, and described target is sung Song be the predetermined number of the second song list song in be not included in the song of the first song list, described song information bag Include song identity and song details;The described first single song list preserved for terminal of song.
The method that 15. song datas according to claim 14 pull, it is characterised in that in described basis The request of data that terminal sends, after the step of the song information sending target song to terminal, described method Also include:
Receiving the second of terminal transmission and pull request, described second pulls request for having removed from server pull The song information beyond song information pulled
Pull according to described second and ask to send the song information in addition to the song information pulled to terminal.
The method that 16. song datas according to claim 14 pull, it is characterised in that in described basis The request of data that terminal sends, after the step of song information sending target song eventually, described method is also Including:
Receiving the 3rd of terminal transmission and pull request, the described 3rd pulls request points to for obtaining user operation Song details corresponding to song identity;
Pull according to the described 3rd and ask to send, to terminal, song corresponding to song identity that described user operation is pointed to Bent details.
17. 1 kinds of servers, it is characterised in that described server includes:
Judging unit, single with the second song of storage in server for judging the first single mark of song that terminal sends Identifying whether identical, described first song is singly designated the identification number of the first song list that described terminal currently preserves, Described second song is singly designated in described server the second song list finally set up corresponding to described terminal of storage Identification number;
Search unit, for obtaining the described first single mark of song and the described second single mark of song when described judging unit When knowledge differs, from described second song is single, search the song information of at least one target song, described target Song be the predetermined number of the second song list song in be not included in the song that described first song is single, described song Information includes song identity and song details;
Transmitting element, for the song information by least one target song described in the lookup of described lookup unit It is sent to described terminal.
18. servers according to claim 17, it is characterised in that described server also includes:
Receiving unit, first sent for receiving terminal pulls request, described first pull in comprise described The first single mark of song.
19. servers according to claim 18, it is characterised in that described lookup unit includes:
Obtain subelement, for starting at second song first song information of Dan Zhongcong, obtain the first present count The song information of amount;
Search subelement, the song information of described first predetermined number for obtaining from described acquisition subelement Middle at least one target song being not included in described first song list according to song identity lookup;
Described transmitting element is additionally operable to, and the song identity of at least one target song described is sent to described end End.
20. servers according to claim 19, it is characterised in that described reception unit is additionally operable to, and connects Receive that terminal sends second pulls request, and described second pulls request for terminal from described in server pull the Two sing the song information in list in addition to the song information of described first predetermined number;
Described lookup unit is additionally operable to, putting in order according to song in described second song is single, never pulls The second predetermined number song information in search be not included in described first song single at least one supplement song Bent;
Described transmitting element is additionally operable to, and at least one supplementary song described is sent to described terminal.
21. 1 kinds of terminals, it is characterised in that described terminal includes:
Transmitting element, pulls request for sending first to server, and described first pulls request includes first Singing single mark, described first song is singly designated the identification number of the first song list that terminal currently preserves;
Receive unit, for receiving the song information of at least one target song that server sends, described mesh Mark song is to be not included in the song that described first song is single, and described song information includes that song identity and song are detailed Thin information;
Display unit, for the song information of at least one target song described that display receives.
22. terminals according to claim 21, it is characterised in that described transmitting element is additionally operable to: according to User operation sends second to described server and pulls request, and described second pulls request for drawing from server Remove the song information beyond the song information pulled;
Described reception unit is additionally operable to, and receives described server and pulls request transmission at least according to described second One supplementary song;
Described transmitting element is additionally operable to, and sends second according to network environment to described server and pulls request, institute State second to pull and ask for from server pull song information in addition to the song information pulled;
Described terminal also includes:
Judging unit, for when described user operation is used for checking song details, it is judged that whether this locality The song details that the song identity of described user operation sensing is corresponding are preserved;
Described transmitting element is additionally operable to, and does not preserves described song details when described judging unit obtains this locality Time, send the 3rd to described server and pull request, the described 3rd pulls request for obtaining described user behaviour Make the song details that the song identity pointed to is corresponding.
23. 1 kinds of terminals, it is characterised in that described terminal includes:
Acquiring unit, the second song list preserved for obtaining server identifies corresponding with the described second single mark of song Song single in the song identity of whole songs, described second song is singly designated in described server the right of storage The identification number of the second song list that terminal described in Ying Yu is finally set up;
Judging unit, for judging local the first single mark of song and the second of the acquisition of described acquiring unit preserved Song singly identifies whether identical, and described first song is singly designated the mark of the first song list that described terminal currently preserves Number;
Search unit, for when the described first single mark of song differs with the described second single mark of song, from institute Stating the song identity searching at least one target song in the second song list, described target song is the second song list The song of predetermined number is not included in the song that described first song is single;
Described acquiring unit is additionally operable to, and obtains the described target song that described lookup unit obtains from server Song information, described song information includes song identity and song details.
24. terminals according to claim 23, it is characterised in that described acquiring unit is additionally operable to:
Obtain the second single mark of song that server preserves;
If the described first single mark of song differs with the described second single mark of song, then obtain described second song single The song identity of the whole songs in the song list that mark is corresponding;
Described lookup unit is additionally operable to:
Start in second song first song identity of Dan Zhongcong, obtain the song identity of the first predetermined number;
Search according to song identity from the song identity of described first predetermined number and be not included in described first song At least one target song in list;
Described acquiring unit is additionally operable to, and sends second according to user operation to described server and pulls request, institute State second to pull and ask for from server pull song information in addition to the song information pulled;
Described judging unit is additionally operable to, when described user operation is used for checking song details, it is judged that this Song details corresponding to song identity that described user operation is pointed to have been preserved on ground the most;
Described acquiring unit is additionally operable to, and does not preserves described song details when described judging unit obtains this locality Time, send the 3rd to described server and pull request, the described 3rd pulls request for obtaining described user behaviour Make the song details that the song identity pointed to is corresponding.
25. 1 kinds of servers, it is characterised in that described server includes:
Transmitting element, for sending, to terminal, the second single mark of song and the described second single mark of song that server preserves Knowing the song identity of the corresponding whole songs sung in list, described second song is singly designated in described server to be deposited The identification number of the second song list finally set up corresponding to described terminal of storage;
Receive unit, for receiving the request of data that terminal sends;
Described transmitting element is additionally operable to, the request of data sent according to described terminal, sends target song to terminal Bent song information, described target song be the predetermined number of the second song list song in be not included in the first song Single song, described song information includes song identity and song details;Described first song is single is terminal The song list preserved.
26. servers according to claim 25, it is characterised in that described reception unit is additionally operable to, and connects Receive that terminal sends second pull request, described second pull ask for from server pull except having pulled Song information beyond song information
Described transmitting element is additionally operable to pull according to described second asks to send except the song letter pulled to terminal Song information beyond breath.
27. servers according to claim 26, it is characterised in that described reception unit is additionally operable to, and connects Receiving the 3rd of terminal transmission and pull request, the described 3rd pulls the song asked for obtaining user operation sensing The song details that mark is corresponding;
Described transmitting element is additionally operable to, and pulls request according to the described 3rd and refers to the terminal described user operation of transmission To song details corresponding to song identity.
CN201410143623.4A 2014-04-10 2014-04-10 Method, terminal and the server that song data pulls Active CN104092724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410143623.4A CN104092724B (en) 2014-04-10 2014-04-10 Method, terminal and the server that song data pulls

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410143623.4A CN104092724B (en) 2014-04-10 2014-04-10 Method, terminal and the server that song data pulls

Publications (2)

Publication Number Publication Date
CN104092724A CN104092724A (en) 2014-10-08
CN104092724B true CN104092724B (en) 2016-08-17

Family

ID=51640404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410143623.4A Active CN104092724B (en) 2014-04-10 2014-04-10 Method, terminal and the server that song data pulls

Country Status (1)

Country Link
CN (1) CN104092724B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566862B (en) * 2016-06-30 2021-05-11 上海博泰悦臻网络技术服务有限公司 Method and system for sharing music among multimedia communication terminals
CN106777023B (en) * 2016-12-08 2020-01-10 Oppo广东移动通信有限公司 Singing bill checking method, device and terminal
CN107402975A (en) * 2017-06-30 2017-11-28 深圳市金立通信设备有限公司 A kind of information processing method, server and terminal
CN108090195B (en) * 2017-12-22 2020-01-07 维沃移动通信有限公司 Song playing method and electronic equipment
CN110381096B (en) * 2018-04-12 2023-05-26 上海博泰悦臻网络技术服务有限公司 Push method and system for sharing music radio station
CN108810116B (en) * 2018-05-29 2021-04-13 Oppo广东移动通信有限公司 Message processing method and related product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662507A (en) * 2009-09-15 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method, system, server and electronic device for storing and downloading songs
CN101778170A (en) * 2010-02-01 2010-07-14 深圳市五巨科技有限公司 Method and device for music playing of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7403769B2 (en) * 2004-03-23 2008-07-22 Nokia Corporation System and method for music synchronization in a mobile device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662507A (en) * 2009-09-15 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Method, system, server and electronic device for storing and downloading songs
CN101778170A (en) * 2010-02-01 2010-07-14 深圳市五巨科技有限公司 Method and device for music playing of mobile terminal

Also Published As

Publication number Publication date
CN104092724A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
CN104092724B (en) Method, terminal and the server that song data pulls
US9258775B1 (en) Location-based software updates
CN102075792B (en) Video file playing method and system, user equipment and server equipment
US20100268821A1 (en) Sequenced transmission of digital content items
CN104111935B (en) Server and microblog pushing method and system
CN104283926B (en) A kind of method of data synchronization, device and server
CN102880969A (en) Advertisement putting method, advertisement putting server and advertisement putting system
CN104125139A (en) Method and apparatus for displaying expression
CN110311959A (en) The method, apparatus and data processing system of message push and renewal of the page
CN105550252A (en) File positioning method and device and electronic equipment
CN111325612B (en) Order counting method, order distribution method, device and system
CN107015988A (en) A kind of information matching method based on map and user-association for applying to special train
CN109299157A (en) A kind of data export method and device of distributed big single table
CN101355590B (en) Method, system and apparatus for prompting download
CN102486926B (en) Method and system for acquiring personalized music media information
CN107145992A (en) A kind of order allocation method and device
CN105930165A (en) Display method of application program pushing information
CN102340583A (en) Method for pre-requesting songs in karaoke hall through mobile phone
CN105260207B (en) A kind of file loading method and system
CN103188305A (en) Multithreading breakpoint resume method and system
CN104567896A (en) Navigation service method and system
CN109600434B (en) Vehicle-mounted radio station program listening method, radio station APP, internet of vehicles server and system
CN1996426A (en) Method and apparatus for displaying traffic information
CN102902579B (en) Processing system for functional assembly
US20140167686A1 (en) Content download and synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20161220

Address after: 510665 Guangzhou City, Tianhe District Province branch Yun Yun Road, No. 16, building No. 1301, room 2

Patentee after: Guangzhou Kugou Inc.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

CP02 Change in the address of a patent holder

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Patentee after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510665 Guangzhou City, Tianhe District Province branch Yun Yun Road, No. 16, building No. 1301, room 2

Patentee before: Guangzhou KuGou Networks Co., Ltd.