CN104794156A - File sharing method and device - Google Patents

File sharing method and device Download PDF

Info

Publication number
CN104794156A
CN104794156A CN201510114715.4A CN201510114715A CN104794156A CN 104794156 A CN104794156 A CN 104794156A CN 201510114715 A CN201510114715 A CN 201510114715A CN 104794156 A CN104794156 A CN 104794156A
Authority
CN
China
Prior art keywords
file
information
sharing
attribute information
terminal
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.)
Granted
Application number
CN201510114715.4A
Other languages
Chinese (zh)
Other versions
CN104794156B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510114715.4A priority Critical patent/CN104794156B/en
Publication of CN104794156A publication Critical patent/CN104794156A/en
Application granted granted Critical
Publication of CN104794156B publication Critical patent/CN104794156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a file sharing method and device. The method comprises the steps that when a first terminal receives a first file sharing request, first attribute information of a first file is obtained, and the first file is a local file of the first terminal; according to the first attribute information of the first file, a second file which is highly matched with the first file is collected, and according to the collected second file, sharing information of the second file is generated; the sharing information of the second file is shared to a second terminal so that the second terminal can obtain the second file through the sharing information. The technical problem that the existing technology cannot be played and shared on local music files is solved, a user can conveniently play and share the music, and the file sharing efficiency is improved.

Description

A kind of sharing files method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of sharing files method and device.
Background technology
The music demand day by day promoted along with user, music sharing function becomes one of functional experience that user frequently uses.Current apparatus for media playing, as intelligent radio audio amplifier, blue light disc player etc., by technology such as wireless networks, can be connected with mobile terminal, the application program of mobile terminal just can carry out network service and data transmission by wireless network and apparatus for media playing.Such as, user can send control command by mobile terminal and the music in LAN (Local Area Network) or in Internet Server is pushed to apparatus for media playing broadcasting, and the music that current audio amplifier is play can be shared the social networks of specifying.But only have in LAN (Local Area Network) can access broadcasting due to local music resource, so the information of this music generally can only be shared at present, such as song title and singer's album information etc., because the user of LAN (Local Area Network) outside can not access, can not play-over so click this information shared, want to share this song, removal search of having to again finds Internet resources, and therefore this sharing mode has inconvenient part.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of sharing files method and device are provided, by local music and the resource in internet being done to mate and generating the sharing information play sharing file, solve in prior art and local music file can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
First aspect, embodiments provides a kind of sharing files method, comprising:
When first terminal receives the first sharing files request, obtain the first attribute information of described first file, described first file is the local file of described first terminal;
According to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file;
The sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
In conjunction with first aspect, in the implementation that the first is possible, described first file comprises music file or multimedia file.
In conjunction with first aspect, in the implementation that the second is possible, described when receiving the first sharing files request after, also comprise:
Obtain the second attribute information of described first file;
According to described second attribute information, what generate described first file shares descriptor;
The descriptor of sharing of described first file is shared with the second terminal.
In conjunction with first aspect, in the implementation that the third is possible, described first attribute information, comprising: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.
In conjunction with the first possible implementation of first aspect, in the 4th kind of possible implementation, first attribute information of described music file, comprising: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.
In conjunction with first aspect, in the 5th kind of possible implementation, described when receiving the first sharing files request, obtain the first attribute information of described first file, comprising:
The request instruction of monitor terminal;
When being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request;
Obtain the first attribute information of described first file.
In conjunction with first aspect, in the 6th kind of possible implementation, described the first attribute information collection according to described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file, comprising:
According to the first attribute information of described first file, by establishing the server of connection, according to computing formula and the matching degree threshold value of the matching degree preset, calculate the matching degree of file in described server database and described first file, described matching degree represents the similarity between the attribute information of the file in server database and the first attribute information of described first file;
Gather described matching degree and reach the second file corresponding to preset matching degree threshold value, and according to the second file generated of described collection the sharing information of the second file.
In conjunction with the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, the sharing information of described the second file according to the second file generated of described collection, comprising:
When the second file gathered is multiple, generate the sharing information of multiple second file in the form of a list according to multiple second files of described collection.
In conjunction with the 6th kind of possible implementation of first aspect, in the 8th kind of possible implementation, the sharing information of described the second file according to the second file generated of described collection, also comprises:
When the second file gathered is multiple, select the second file that matching degree is the highest;
The sharing information of the second file according to the second file generated of described selection.
Second aspect, embodiments provides a kind of sharing files device, comprising:
First information acquisition module, during for receiving the first sharing files request when first terminal, obtain the first attribute information of described first file, described first file is the local file of described first terminal;
Information matches module, for according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file;
Sharing files module, for the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
In conjunction with second aspect, in the implementation that the first is possible, described first file comprises music file or multimedia file.
In conjunction with second aspect, in the implementation that the second is possible, described sharing files device, also comprises:
Second data obtaining module, for obtaining the second attribute information of described first file;
Information generating module, for according to described second attribute information, what generate described first file shares descriptor;
Information share module, for being shared with the second terminal by the descriptor of sharing of described first file.
In conjunction with second aspect, in the implementation that the third is possible, described first attribute information, comprising: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation, first attribute information of described music file, comprising: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.
In conjunction with second aspect, in the 5th kind of possible implementation, described first information acquisition module, comprising:
Instruction monitoring unit, for the request instruction of monitor terminal;
Acquisition request unit, for when being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request;
Information acquisition unit, for obtaining the first attribute information of described first file.
In conjunction with second aspect, in the 6th kind of possible implementation, described information matches module, comprising:
Matching primitives unit, for the first attribute information according to described first file, by establishing the server of connection, according to computing formula and the matching degree threshold value of the matching degree preset, calculate the matching degree of file in described server database and described first file, described matching degree represents the similarity between the attribute information of the file in server database and the first attribute information of described first file;
Information matching unit, reaches the second file corresponding to preset matching degree threshold value for gathering described matching degree, and according to the second file generated of described collection the sharing information of the second file.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, described information matching unit, specifically for:
When the second file gathered is multiple, generate the sharing information of multiple second file in the form of a list according to multiple second files of described collection.
In conjunction with the 6th kind of possible implementation of second aspect, in the 8th kind of possible implementation, described information matching unit, also specifically for:
When the second file gathered is multiple, select the second file that matching degree is the highest;
The sharing information of the second file according to the second file generated of described selection.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram that wherein a kind of smart mobile phone of sharing files method in the embodiment of the present invention and device shares the embody rule scene of music;
Fig. 2 is the schematic flow sheet of a kind of sharing files method in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the another kind of sharing files method in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another the sharing files method in the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another the sharing files method in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of sharing files device in the embodiment of the present invention;
Fig. 7 is the structural representation of the another kind of sharing files device in the embodiment of the present invention;
Fig. 8 is the structural representation of another the sharing files device in the embodiment of the present invention;
Fig. 9 is the structural representation of the information matching unit of the information matches module of another sharing files device in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Also it should be noted that, terminal in the embodiment of the present invention includes but not limited to smart mobile phone, panel computer, media player, intelligent television, Intelligent bracelet, Intelligent worn device, MP3 player (Moving PictureExperts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4 (MovingPicture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 3) player, personal digital assistant (Personal Digital Assistant, PDA) subscriber equipment such as pocket computer on knee and desk-top computer.
It should be noted that further, the present invention can be applied to music and share the application scenarioss such as application software, music sharing website or music sharing apparatus equipment.The sharing files that the embodiment of the present invention mainly carries out local music with smart mobile phone illustrates.As shown in Figure 1, Fig. 1 is the schematic diagram that wherein a kind of smart mobile phone of sharing files method in the embodiment of the present invention and device shares the embody rule scene of music, in the application scenarios of Fig. 1, share user shared by the music file of smart mobile phone to this locality, the broadcasting chained address of by internet the music matched being shared file sends to by the user shared, and is then shared link and carries out the broadcasting that music shares file by this by the user that shares.
Fig. 2 is the schematic flow sheet of the sharing files method in the embodiment of the present invention, describe in detail below in conjunction with a kind of sharing files method in accompanying drawing 2 pairs of embodiment of the present invention, as shown in Figure 2, the sharing files method in the present embodiment can comprise the following steps S201-step S203.
Step S201: when first terminal receives the first sharing files request, obtains the first attribute information of described first file.
Particularly, described first file is the local file of described first terminal.Share music file for smart mobile phone, when smart mobile phone receive the first music file of user share request time, wherein this music file is the local music of this smart mobile phone, obtains the first attribute information of this first music file.Further, first attribute information can comprise at least one attribute information in the filename of this music file, author, affiliated album name, publication year, duration, bit rate or sound storage size, or other can search the attribute information of this first file of comparison.
Step S202: according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file.
Particularly, the music file similar to this attribute information according to the attribute information collection of the first music file obtained in step S201, such as preferential collection, the file that music file names is identical, the file that singer is identical, duration is identical.Particularly, by arranging computing formula and the threshold range of the Similarity matching degree between file, calculate and search the second file that matching degree reaches threshold value, gather this second music file and generate the sharing information of this music file according to this second music file, wherein sharing information can comprise the broadcasting chained address of this music file, also can be that title author of music file waits and describes sharing information, can also be download or the collection address etc. of music file, the present invention be not specifically limited.
Step S203: the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
Particularly, the sharing information of the second high for the matching degree obtained in step S202 music file can be shared with the second terminal by user, sharing form then can select the second sharing files that matching degree is the highest to the second terminal according to the judgement of user oneself, or being sent to by music file high for matching degree the second terminal to select to carry out from main separation audition for receiving the user shared in the form of a list, being play or acquisition the second music file by the information shared for sharing user.
It should be noted that, mainly share music file for smart mobile phone in the present embodiment to be described, do not represent the present invention's only sharing for music file, file of sharing in the present invention also comprises multimedia file, picture file, video file etc., the terminal shared also is not limited to smart mobile phone, and also can comprise that intelligent watch, panel computer etc. are all can the smart machine of connecting Internet.And wherein first, second etc. be used for description document or terminal only for distinguishing each other, be not specifically defined in this specific title.
Further, embodiment described in Fig. 2 can also comprise the method flow step S301-step S303 in Fig. 3, Fig. 3 is the schematic flow sheet of the another kind of sharing files method in the embodiment of the present invention, as shown in Figure 3, sharing files method can also comprise the following steps S301-step S303 in a preferred embodiment.
Step S301: when first terminal receives the first sharing files request, obtains the second attribute information of described first file.
Particularly, when first terminal receives the first sharing files request, obtain the second attribute information needing to carry out the first file shared.Wherein the second attribute information can comprise: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.When the first file is music file, then its attribute information can comprise: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.It should be noted that, the first attribute information and the second attribute information can be the same or different.Preferably, second attribute information mainly can comprise the descriptor of the first file so that the user that reception is shared searches according to this descriptor, and the first attribute information mainly can comprise the detailed attribution information of the first file, be convenient to the calculating of searching comparison and matching degree that server carries out the second file.
Step S302: according to described second attribute information, what generate described first file shares descriptor.
Particularly, according to the second attribute information obtained in step S301, what generate described first file shares descriptor, and such as direct this locality from first terminal obtains the descriptor of first music file, the information such as title of the song, ci and qu author, performing artist.
Step S303: the descriptor of sharing of described first file is shared with the second terminal.
Particularly, the descriptor of sharing of the first file obtained in step S302 is shared with the second terminal, the user of the second terminal can share descriptor and in the resource of internet, carries out search voluntarily search according to this, and obtains the same or similar file of this first file.
It should be noted that, step S201-step S203 and step S301-step S303 can be the relation of selecting respectively to carry out also can be the relation of simultaneously carrying out side by side, can apply the sharing files demand of corresponding method step flow process completing user according to actual conditions, the present invention does not do concrete restriction.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Fig. 4 is the schematic flow sheet of the another kind of sharing files method in the embodiment of the present invention, describe in detail below in conjunction with the another kind of sharing files method in accompanying drawing 4 pairs of embodiment of the present invention, as shown in Figure 4, the sharing files method in the embodiment of the present invention can comprise the following steps S401-step S407.
Step S401: when first terminal receives the first sharing files request.
Particularly, the instruction of the request of the intelligent terminal monitor terminal of user, the play instruction, pause instruction, switching command etc. of such as music, when listen to instruction that user sends be music share instruction time, then judge and receive that user needs to carry out the first file shared share request.
Step S402: the selection carrying out sharing files according to the selection of user, when selecting intelligent sharing model, obtains the first attribute information of described first file.
Particularly, carrying out the selection of sharing files according to the selection of user, when selecting intelligent sharing model, obtaining the first attribute information needing to carry out the first file shared.Wherein the first attribute information can comprise: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.When the first file is music file, then its first attribute information can comprise: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.
Step S403: according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file.
Particularly, according to the attribute information of the first file obtained in step S402, gather second file high with the first file matching degree from having established the server be connected with this terminal.Wherein server can be the file resource server of internet, also can be the dedicated file server that certain particular organization builds, and according to different application scenarioss, selects different server resources to carry out calculating coupling.According to the matching degree computing formula pre-set and matching degree threshold value, such as music file, can basis, musical designation, singer, write words composer, album name etc., carry out the setting of matching degree computing formula and the setting of matching degree threshold value, and the matching degree of file in calculation server database and the first file.The present invention's account form concrete to matching degree does not do concrete restriction, if the method that can calculate the Similarity matching degree of described server file and the first file all belong to the present invention contain the scope of protection.
Step S404: the sharing information of described second file is shared with the second terminal.
Particularly, the sharing information of the second file gathering generation in step S403 is shared with the second terminal by first terminal by user, for the acquisition receiving the user that shares and to be undertaken by the second terminal the second file.
Step S405: the selection carrying out sharing files according to the selection of user, when selecting common sharing model, obtains the second attribute information of described first file.
Particularly, carrying out the selection of sharing files according to the selection of user, when selecting common sharing model, obtaining the second attribute information needing to carry out the first file shared.Wherein the second attribute information can comprise: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.When the first file is music file, then its attribute information can comprise: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.It should be noted that, the first attribute information and the second attribute information can be the same or different.Preferably, the descriptor that second attribute information mainly can comprise the first file is convenient to receive the user shared and is searched according to this descriptor, and the first attribute information mainly can comprise the detailed attribution information of the first file, be convenient to the calculating of searching comparison and matching degree that server carries out the second file.
Step S406: according to described second attribute information, what generate described first file shares descriptor.
Particularly, according to the second attribute information obtained in step S405, what generate described first file shares descriptor, and such as direct this locality from first terminal obtains the descriptor of first music file, title of the song, ci and qu author, performing artist etc.
Step S407: the descriptor of sharing of described first file is shared with the second terminal.
Particularly, the descriptor of sharing of the first file obtained in step S406 is shared with the second terminal, the user of the second terminal can share descriptor and in the resource of internet, carries out search voluntarily search according to this, and obtains the same or similar file of this first file.
Further, the sharing information of the second file according to the second file generated of described collection in the step S403 in above-described embodiment, can also be realized by any one in following concrete embodiment.
Embodiment one: when the second file gathered is multiple, generate the sharing information of multiple second file in the form of a list according to multiple second files of described collection.
Particularly, when mating music file out and having multiple, multiple second music file can be generated in the form of a list the sharing information of the second music file, such as generating the broadcasting link information of the second music file with tabular form, carrying out the music file in main separation and playlist for receiving the user shared.
Embodiment two: when the second file gathered is multiple, select the second file that matching degree is the highest, the sharing information of the second file according to the second file generated of described selection.
Particularly, when mating music file out and having multiple, share user and also can select according to the judgement of oneself the second file that matching degree is the highest, the sharing information of first terminal second file according to the highest the second file generated of matching degree selected, such as generating the broadcasting link information of the second the highest music file of matching degree, directly clicking broadcasting audition for receiving the user shared.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Fig. 5 is the schematic flow sheet of the another kind of sharing files method in the embodiment of the present invention, describe in detail below in conjunction with the another kind of sharing files method in accompanying drawing 5 pairs of embodiment of the present invention, as shown in Figure 5, the sharing files method in the embodiment of the present invention can comprise the following steps S501-step S506.
Step S501: the request instruction of monitor terminal.
Particularly, the instruction of the request of the intelligent terminal monitor terminal of user, the play instruction, pause instruction, switching command etc. of such as music.
Step S502: when being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request.
Particularly, when monitoring and be resolved to request instruction for sharing request instruction, then obtain need the first file carrying out sharing files share request.
Step S503: the first attribute information obtaining described first file.
Particularly, can method step S402 in corresponding reference diagram 4 embodiment, do not repeat them here.
Step S504: according to the first attribute information of described first file, by establishing the server of connection, according to the computing formula of matching degree preset and matching degree threshold value, calculates the matching degree of file in described server database and described first file.
Particularly, according to the attribute information of the first file obtained in step S503, by establishing the server of connection, gather second file high with the first file matching degree.Wherein server can be the file resource server of internet, also can be the dedicated file server that certain particular organization builds, and according to different application scenarioss, selects different server resources to carry out calculating coupling.According to the matching degree computing formula pre-set and matching degree threshold value, such as music file, can basis, musical designation, singer, write words composer, album name etc., carry out the setting of matching degree computing formula and the setting of matching degree threshold value, and the matching degree of file in calculation server database and the first file.The present invention's account form concrete to matching degree does not do concrete restriction, if the method that can calculate the Similarity matching degree of described server file and the first file all belong to the present invention contain the scope of protection.
Step S505: gather described matching degree and reach the second file corresponding to preset matching degree threshold value, and according to the second file generated of described collection the sharing information of the second file.
Particularly, according to the result of calculation of the coupling angle value in step S504, gather matching degree and reach the second file corresponding to preset matching degree threshold value, this second file is user can with reference to the file shared.Because server file is increasing, the scope by arranging matching degree threshold value controls the quantity of the second file gathered and the matching degree height between the second file and the first file.According to the second file generated of described collection, the detailed process of the sharing information of the second file then can method step S403 in corresponding reference diagram 4 embodiment, does not repeat them here.
Step S506: the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
Particularly, can method step S404 in corresponding reference diagram 4 embodiment, do not repeat them here.
It should be noted that, further comprises the method flow of step S401 in the embodiment of Fig. 4 and step S405 to step S407 in the present embodiment simultaneously, by user carry out sharing model from main separation, namely not only comprise intelligent sharing model and also contains common sharing model, do not repeat them here.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Fig. 6 is the structural representation of a kind of sharing files device in the embodiment of the present invention, in order to perform above-mentioned embodiment illustrated in fig. 2 in a kind of flow process of sharing files method.
Below in conjunction with accompanying drawing 6, the structure of a kind of sharing files device in the embodiment of the present invention is described in detail.This device 10 can comprise: first information acquisition module 101, information matches module 102 and sharing files module 103.
First information acquisition module 101, during for receiving the first sharing files request when first terminal, obtain the first attribute information of described first file, described first file is the local file of described first terminal;
Particularly, described first file is the local file of described first terminal.Share music file for smart mobile phone, when smart mobile phone receive the first music file of user share request time, wherein this music file is the local music of this smart mobile phone, obtains the first attribute information of this first music file.Further, first attribute information can comprise at least one attribute information in the filename of this music file, author, affiliated album name, publication year, duration, bit rate or sound storage size, or other can search the attribute information of this first file of comparison.
Information matches module 102, for according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file;
Particularly, the music file similar to this attribute information according to the attribute information collection of the first music file obtained in first information acquisition module 101, such as preferential collection, the file that music file names is identical, the file that singer is identical, duration is identical.Particularly, by arranging computing formula and the threshold range of the Similarity matching degree between file, calculate and search the second file that matching degree reaches threshold value, gather this second music file and generate the sharing information of this music file according to this second music file, wherein sharing information can comprise the broadcasting chained address of this music file, also can be that title author of music file waits and describes sharing information, can also be download or the collection address etc. of music file, the present invention be not specifically limited.
Sharing files module 103, for the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
Particularly, the sharing information of the second high for the matching degree obtained in information matches module 102 music file can be shared with the second terminal by user, sharing form then can select the second sharing files that matching degree is the highest to the second terminal according to the judgement of user oneself, or being sent to by music file high for matching degree the second terminal to select to carry out from main separation audition for receiving the user shared in the form of a list, being play or acquisition the second music file by the information shared for sharing user.
It should be noted that, mainly share music file for smart mobile phone in the present embodiment to be described, do not represent the present invention's only sharing for music file, file of sharing in the present invention also comprises multimedia file, picture file, video file etc., the terminal shared also is not limited to smart mobile phone, and also can comprise that intelligent watch, panel computer etc. are all can the smart machine of connecting Internet.And wherein first, second etc. be used for description document or terminal only for distinguishing each other, be not specifically defined in this specific title.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Fig. 7 is the structural representation of the another kind of sharing files device in the embodiment of the present invention, in order to perform above-mentioned embodiment illustrated in fig. 4 in the flow process of another kind of sharing files method.
Below in conjunction with accompanying drawing 7, the structure of the another kind of sharing files device in the embodiment of the present invention is described in detail.This device 20 can comprise: first information acquisition module 201, information matches module 202, sharing files module 203, second data obtaining module 204, information generate mould 205 and information share module 206.
First information acquisition module 201, during for receiving the first sharing files request when first terminal, obtain the first attribute information of described first file, described first file is the local file of described first terminal.
First information acquisition module 201 wherein in device can perform and Method Of Accomplishment step S401 and S402 in all methods and flow process, do not repeat them here.
Information matches module 202, for according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file.
Information matches module 202 wherein in device can perform and Method Of Accomplishment step S403 in all methods and flow process, do not repeat them here.
Sharing files module 203, for the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
Sharing files module 203 wherein in device can perform and Method Of Accomplishment step S404 in all methods and flow process, do not repeat them here.
Second data obtaining module 204, during for receiving the first sharing files request when first terminal, obtains the second attribute information of described first file.
The second data obtaining module 204 wherein in device can perform and Method Of Accomplishment step S401 and S405 in all methods and flow process, do not repeat them here.
Information generating module 205, for according to described second attribute information, what generate described first file shares descriptor.
Information generating module 205 wherein in device can perform and Method Of Accomplishment step S406 in all methods and flow process, do not repeat them here.
Information share module 206, for being shared with the second terminal by the descriptor of sharing of described first file.
Information share module 206 wherein in device can perform and Method Of Accomplishment step S407 in all methods and flow process, do not repeat them here.
It should be noted that, the module 201,202 and 203 in the sharing files device in the present embodiment and module 204,205 and 206 can be parallel modules, namely work simultaneously, can the S201-S203 of reference method step and the S301-303 of method step; Also can be choice relation, namely select module to carry out instruction triggers by user, thus selectivity work, the S401-S407 namely in reference method step, the present invention does not do concrete restriction to this.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Fig. 8 is the structural representation of another the sharing files device in the embodiment of the present invention, in order to perform above-mentioned embodiment illustrated in fig. 5 in the flow process of another sharing files method.
Below in conjunction with accompanying drawing 8, the structure of another the sharing files device in the embodiment of the present invention is described in detail.This device 30 can comprise: first information acquisition module 301, information matches module 302, sharing files module 303, second data obtaining module 304, information generate mould 305 and information share module 306.Described first information acquisition module 301 can comprise: instruction monitoring unit 3011, acquisition request unit 3012 and information acquisition unit 3013; Described information matches module 302 can comprise: matching primitives unit 3021 and information matching unit 3022.
First information acquisition module 301 can comprise: instruction monitoring unit 3011, acquisition request unit 3012 and information acquisition unit 3013.
Instruction monitoring unit 3011, for the request instruction of monitor terminal.
Acquisition request unit 3012, for when being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request.
Information acquisition unit 3013, for obtaining the first attribute information of described first file.
Unit 3011 to 3013 that first information acquisition module 301 wherein in device comprises can perform and Method Of Accomplishment step S501 to S503 in all methods and flow process, do not repeat them here.
Information matches module 302 can comprise: matching primitives unit 3021 and information matching unit 3022.
Matching primitives unit 3021, for the first attribute information according to described first file, by establishing the server of connection, according to computing formula and the matching degree threshold value of the matching degree preset, calculate the matching degree of file in described server database and described first file, described matching degree represents the similarity between the attribute information of the file in server database and the first attribute information of described first file.
Fig. 9 is the structural representation of the information matching unit of the information matches module of another sharing files device in the embodiment of the present invention.
Information matching unit 3022 can comprise: match selection subelement 3022a and information matches subelement 3022b.
Match selection subelement 3022a, for when the second file gathered is multiple, selects the second file that matching degree is the highest.
Information matches subelement 3022b, for the sharing information of the second file according to the second file generated of described selection.
Unit 3021 to 2022 that information matches module 302 wherein in device comprises can perform and Method Of Accomplishment step S504 to S505 in all methods and flow process, do not repeat them here.
Sharing files module 303, for the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
Sharing files module 303 wherein in device can perform and Method Of Accomplishment step S506 in all methods and flow process, do not repeat them here.
Second data obtaining module 304, for obtaining the second attribute information of described first file.
The second data obtaining module 304 wherein in device can perform and Method Of Accomplishment step S401 and S405 in all methods and flow process, do not repeat them here.
Information generating module 305, for according to described second attribute information, what generate described first file shares descriptor.
Information generating module 305 wherein in device can perform and Method Of Accomplishment step S406 in all methods and flow process, do not repeat them here.
Information share module 306, for being shared with the second terminal by the descriptor of sharing of described first file.
Information share module 306 wherein in device can perform and Method Of Accomplishment step S407 in all methods and flow process, do not repeat them here.
The embodiment of the present invention, by in sharing files method, by first terminal when receiving the first sharing files request, according to the first attribute information collection of the first file and high the second file of the first file matching degree, and according to the sharing information of the second file generated second file gathered, then the sharing information of the second file is shared with the second terminal obtains the second file for the second terminal by sharing information.Such as when user utilizes first terminal to share local music file, to do with the music file in the internet music resources bank that can connect according to the attribute information of this local music file and mate, generate the sharing information of the highest some songs of matching degree, the user of the second terminal then can share file according to sharing information by internet access broadcasting, solve in prior art and local music can not be carried out playing the technical matters shared, operation is shared in the broadcasting facilitating user to carry out music, improves sharing files efficiency.
Should be understood that, although use first, second grade of term to describe terminal, file, method or unit herein, these terminals, file, method or unit should not by the restrictions of these terms, and these terms are only used to be distinguished from each other.It is to be further understood that and use in this article, unless context clearly supports exception, singulative " " (" a ", " an " and " the ") is intended to also comprise plural form.Should also be understood that the "and/or" used in this article refers to comprise any of more than one or one project listed explicitly and likely combine.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (18)

1. a sharing files method, is characterized in that, comprising:
When first terminal receives the first sharing files request, obtain the first attribute information of described first file, described first file is the local file of described first terminal;
According to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file;
The sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
2. the method for claim 1, is characterized in that, described first file comprises music file or multimedia file.
3. the method for claim 1, is characterized in that, described when receiving the first sharing files request after, also comprise:
Obtain the second attribute information of described first file;
According to described second attribute information, what generate described first file shares descriptor;
The descriptor of sharing of described first file is shared with the second terminal.
4. the method for claim 1, is characterized in that, described first attribute information, comprising: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.
5. method as claimed in claim 2, it is characterized in that, first attribute information of described music file, comprising: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.
6. the method for claim 1, is characterized in that, described when receiving the first sharing files request, obtains the first attribute information of described first file, comprising:
The request instruction of monitor terminal;
When being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request;
Obtain the first attribute information of described first file.
7. the method for claim 1, it is characterized in that, described the first attribute information collection according to described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file, comprising:
According to the first attribute information of described first file, by establishing the server of connection, according to computing formula and the matching degree threshold value of the matching degree preset, calculate the matching degree of file in described server database and described first file, described matching degree represents the similarity between the attribute information of the file in server database and the first attribute information of described first file;
Gather described matching degree and reach the second file corresponding to preset matching degree threshold value, and according to the second file generated of described collection the sharing information of the second file.
8. method as claimed in claim 7, it is characterized in that, the sharing information of described the second file according to the second file generated of described collection, comprising:
When the second file gathered is multiple, generate the sharing information of multiple second file in the form of a list according to multiple second files of described collection.
9. method as claimed in claim 7, it is characterized in that, the sharing information of described the second file according to the second file generated of described collection, also comprises:
When the second file gathered is multiple, select the second file that matching degree is the highest;
The sharing information of the second file according to the second file generated of described selection.
10. a sharing files device, is characterized in that, comprising:
First information acquisition module, during for receiving the first sharing files request when first terminal, obtain the first attribute information of described first file, described first file is the local file of described first terminal;
Information matches module, for according to the first attribute information collection of described first file and high the second file of described first file matching degree, and according to the second file generated of described collection the sharing information of the second file;
Sharing files module, for the sharing information of described second file is shared with the second terminal, obtains described second file for described second terminal by described sharing information.
11. devices as claimed in claim 10, it is characterized in that, described first file comprises music file or multimedia file.
12. devices as claimed in claim 10, it is characterized in that, described sharing files device, also comprises:
Second data obtaining module, for obtaining the second attribute information of described first file;
Information generating module, for according to described second attribute information, what generate described first file shares descriptor;
Information share module, for being shared with the second terminal by the descriptor of sharing of described first file.
13. devices as claimed in claim 10, it is characterized in that, described first attribute information, comprising: at least one attribute information during file type, modes to open a file, file name, paper writer, file duration or file take up room.
14. devices as claimed in claim 11, it is characterized in that, first attribute information of described music file, comprising: at least one attribute information in the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size.
15. devices as claimed in claim 10, it is characterized in that, described first information acquisition module, comprising:
Instruction monitoring unit, for the request instruction of monitor terminal;
Acquisition request unit, for when being resolved to described request instruction for sharing request instruction, what obtain the first file of described terminal shares request;
Information acquisition unit, for obtaining the first attribute information of described first file.
16. devices as claimed in claim 10, it is characterized in that, described information matches module, comprising:
Matching primitives unit, for the first attribute information according to described first file, by establishing the server of connection, according to computing formula and the matching degree threshold value of the matching degree preset, calculate the matching degree of file in described server database and described first file, described matching degree represents the similarity between the attribute information of the file in server database and the first attribute information of described first file;
Information matching unit, reaches the second file corresponding to preset matching degree threshold value for gathering described matching degree, and according to the second file generated of described collection the sharing information of the second file.
17. devices as claimed in claim 16, is characterized in that, described information matching unit, specifically for:
When the second file gathered is multiple, generate the sharing information of multiple second file in the form of a list according to multiple second files of described collection.
18. devices as claimed in claim 16, it is characterized in that, described information matching unit, comprising:
Match selection subelement, for when the second file gathered is multiple, selects the second file that matching degree is the highest;
Information matches subelement, for the sharing information of the second file according to the second file generated of described selection.
CN201510114715.4A 2015-03-16 2015-03-16 A kind of sharing files method and device Active CN104794156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510114715.4A CN104794156B (en) 2015-03-16 2015-03-16 A kind of sharing files method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510114715.4A CN104794156B (en) 2015-03-16 2015-03-16 A kind of sharing files method and device

Publications (2)

Publication Number Publication Date
CN104794156A true CN104794156A (en) 2015-07-22
CN104794156B CN104794156B (en) 2018-12-07

Family

ID=53558948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510114715.4A Active CN104794156B (en) 2015-03-16 2015-03-16 A kind of sharing files method and device

Country Status (1)

Country Link
CN (1) CN104794156B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760061A (en) * 2016-02-05 2016-07-13 腾讯科技(深圳)有限公司 Information interaction method and device
CN107566862A (en) * 2016-06-30 2018-01-09 上海博泰悦臻网络技术服务有限公司 For sharing the method and system of music between multimedia communication terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040087326A1 (en) * 2002-10-30 2004-05-06 Dunko Gregory A. Method and apparatus for sharing content with a remote device using a wireless network
CN103440873A (en) * 2013-08-27 2013-12-11 大连理工大学 Music recommendation method based on similarities
CN103475731A (en) * 2013-09-23 2013-12-25 网易(杭州)网络有限公司 Media information matching and processing method and device
CN104090898A (en) * 2013-12-21 2014-10-08 腾讯科技(深圳)有限公司 Method and device for matching local music and music in database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040087326A1 (en) * 2002-10-30 2004-05-06 Dunko Gregory A. Method and apparatus for sharing content with a remote device using a wireless network
CN103440873A (en) * 2013-08-27 2013-12-11 大连理工大学 Music recommendation method based on similarities
CN103475731A (en) * 2013-09-23 2013-12-25 网易(杭州)网络有限公司 Media information matching and processing method and device
CN104090898A (en) * 2013-12-21 2014-10-08 腾讯科技(深圳)有限公司 Method and device for matching local music and music in database

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760061A (en) * 2016-02-05 2016-07-13 腾讯科技(深圳)有限公司 Information interaction method and device
CN107566862A (en) * 2016-06-30 2018-01-09 上海博泰悦臻网络技术服务有限公司 For sharing the method and system of music between multimedia communication terminal

Also Published As

Publication number Publication date
CN104794156B (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US9552428B2 (en) System for generating media recommendations in a distributed environment based on seed information
CN102640147B (en) Systems and methods for providing media pools in a communications network
US8886666B2 (en) Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information
CN101546589B (en) Active playlist having dynamic media item groups
CN105120304A (en) Information display method, device and system
US8117193B2 (en) Tunersphere
CN106095595B (en) Information sharing method and terminal between a kind of application program
CN103607461A (en) Information sharing method and cloud server
CN103702177B (en) A kind of storage method and player of video file
CN104572952A (en) Identification method and device for live multi-media files
CN107729578B (en) Music recommendation method and device
CN105025319A (en) Video pushing method and device
CN107426620B (en) Program content recommendation method
CN105893458B (en) Media content playback system and method
CN105824895A (en) KTV song selection method and system
CN105893548A (en) Naming method and terminal
CN103593356A (en) Method and system for information searching on basis of multimedia information fingerprint technology and application
CN104978377A (en) Multimedia data processing method, multimedia data processing device and terminal
CN101237473A (en) Method for dynamically playing lyric and mobile terminal and device for realizing this method
CN104794156A (en) File sharing method and device
CN102970578A (en) Multimedia information identifying and training method and device
CN104537011A (en) Singing ranking method and device
CN105760436A (en) Audio data processing method and device
CN107770834A (en) For providing the method and apparatus of WAP packet
CN105528346A (en) Method and apparatus for providing media content information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.