CN104794156B - A kind of sharing files method and device - Google Patents
A kind of sharing files method and device Download PDFInfo
- Publication number
- CN104794156B CN104794156B CN201510114715.4A CN201510114715A CN104794156B CN 104794156 B CN104794156 B CN 104794156B CN 201510114715 A CN201510114715 A CN 201510114715A CN 104794156 B CN104794156 B CN 104794156B
- Authority
- CN
- China
- Prior art keywords
- file
- sharing
- information
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a kind of sharing files method and devices, method therein can include: when first terminal receives the request of the first sharing files, the first attribute information of first file is obtained, first file is the local file of the first terminal;According to the acquisition of the first attribute information of first file and the second high file of the first file matching degree, and the sharing information of the second file according to the second file generated of the acquisition;The sharing information of second file is shared with second terminal, so that the second terminal obtains second file by the sharing information.It solves the technical issues of local music file cannot being played out sharing in the prior art using the present invention, facilitates user to carry out the broadcasting sharing operation of music, improve sharing files efficiency.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of sharing files method and devices.
Background technique
The music demand increasingly promoted with user, music sharing function become the functional experience that frequently uses of user it
One.Current apparatus for media playing, such as intelligent radio speaker, blu-ray disc player can pass through the technologies such as wireless network, and movement
Terminal is attached, the application program of mobile terminal can be carried out by wireless network and apparatus for media playing network communication and
Data transmission.For example, user can send control command in local area network or in Internet Server by mobile terminal
Music is pushed to apparatus for media playing broadcasting, and the music that current speaker can be played is shared to specified social networks.But
Since broadcasting can be accessed in local music resource only local area network, so can only generally share the information of the music at present, such as
Song title and singer's album information etc., since the user outside local area network cannot access, so clicking the information of the sharing
It can not directly play, it is desirable to share the song, it has to which removal search finds Internet resources, therefore the sharing mode again
There is inconvenient.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of sharing files method and device, can pass through
Local music is matched to the resource work in internet and generated the playable sharing information for sharing file, solves existing skill
The technical issues of local music file cannot being played out sharing in art, facilitates user to carry out the broadcasting sharing operation of music,
Improve sharing files efficiency.
In a first aspect, the embodiment of the invention provides a kind of sharing files methods, comprising:
When first terminal receives the request of the first sharing files, the first attribute information of first file, institute are obtained
State the local file that the first file is the first terminal;
According to the acquisition of the first attribute information of first file and the second high file of the first file matching degree, and
The sharing information of the second file according to the second file generated of the acquisition;
The sharing information of second file is shared with second terminal, so that the second terminal is believed by the sharing
Breath obtains second file.
With reference to first aspect, in the first possible implementation, first file includes music file or more matchmakers
Body file.
With reference to first aspect, in the second possible implementation, described when receiving the request of the first sharing files
Later, further includes:
Obtain the second attribute information of first file;
According to second attribute information, the sharing description information of first file is generated;
The sharing description information of first file is shared with second terminal.
With reference to first aspect, in the third possible implementation, first attribute information, comprising: file type,
At least one attribute information in modes to open a file, file name, paper writer, file duration or file occupied space.
The possible implementation of with reference to first aspect the first, in the fourth possible implementation, the music
First attribute information of file, comprising: filename, author, affiliated album name, publication year, duration, the ratio of music file
At least one attribute information in special rate or sound storage size.
It is with reference to first aspect, in a fifth possible implementation, described when receiving the request of the first sharing files,
Obtain the first attribute information of first file, comprising:
The request instruction of monitor terminal;
When being resolved to the request instruction is sharing request instruction, the sharing for obtaining the first file of the terminal is asked
It asks;
Obtain the first attribute information of first file.
With reference to first aspect, in a sixth possible implementation, first attribute according to first file
Information collection and the second high file of the first file matching degree, and second according to the second file generated of the acquisition
The sharing information of file, comprising:
According to the first attribute information of first file, by establishing the server of connection, according to preset matching
The calculation formula and matching degree threshold value of degree calculate the matching degree of the file and first file in the server database,
The matching degree indicates between the attribute information of file and the first attribute information of first file in server database
Similarity;
It acquires the matching degree and reaches corresponding second file of preset matching degree threshold value, and according to the second text of the acquisition
Part generates the sharing information of second file.
The 6th kind of possible implementation with reference to first aspect, in the 7th kind of possible implementation, the basis
The sharing information of second file described in second file generated of the acquisition, comprising:
When the second file of acquisition is multiple, generated in the form of a list according to multiple second files of the acquisition more
The sharing information of a second file.
The 6th kind of possible implementation with reference to first aspect, in the 8th kind of possible implementation, the basis
The sharing information of second file described in second file generated of the acquisition, further includes:
When the second file of acquisition is multiple, highest second file of matching degree is selected;
According to the sharing information of the second file described in selected second file generated.
Second aspect, the embodiment of the invention provides a kind of sharing files devices, comprising:
The first information obtains module, for obtaining described first when first terminal receives the request of the first sharing files
First attribute information of file, first file are the local file of the first terminal;
Information matches module is matched for being acquired according to the first attribute information of first file with first file
The second high file is spent, and the sharing information of the second file according to the second file generated of the acquisition;
Sharing files module, for the sharing information of second file to be shared with second terminal, for described second
Terminal obtains second file by the sharing information.
In conjunction with second aspect, in the first possible implementation, first file includes music file or more matchmakers
Body file.
In conjunction with second aspect, in the second possible implementation, the sharing files device, further includes:
Second data obtaining module, for obtaining the second attribute information of first file;
Information generating module, for generating the sharing description information of first file according to second attribute information;
Information share module, for the sharing description information of first file to be shared with second terminal.
In conjunction with second aspect, in the third possible implementation, first attribute information, comprising: file type,
At least one attribute information in modes to open a file, file name, paper writer, file duration or file occupied space.
In conjunction with the first possible implementation of second aspect, in the fourth possible implementation, the music
First attribute information of file, comprising: filename, author, affiliated album name, publication year, duration, the ratio of music file
At least one attribute information in special rate or sound storage size.
In conjunction with second aspect, in a fifth possible implementation, the first information obtains module, comprising:
Instruct monitoring unit, the request instruction for monitor terminal;
Request unit, for obtaining the terminal when being resolved to the request instruction is sharing request instruction
The sharing request of first file;
Information acquisition unit, for obtaining the first attribute information of first file.
In conjunction with second aspect, in a sixth possible implementation, the information matches module, comprising:
Matching primitives unit, for the first attribute information according to first file, by the service for establishing connection
Device, according to the calculation formula of preset matching degree and matching degree threshold value, calculate file in the server database with it is described
The matching degree of first file, the matching degree indicate the attribute information and first file of the file in server database
Similarity between first attribute information;
Information matching unit reaches corresponding second file of preset matching degree threshold value, and root for acquiring the matching degree
The sharing information of second file described in the second file generated according to the acquisition.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, the information
Matching unit is specifically used for:
When the second file of acquisition is multiple, generated in the form of a list according to multiple second files of the acquisition more
The sharing information of a second file.
In conjunction with the 6th kind of possible implementation of second aspect, in the 8th kind of possible implementation, the information
Matching unit, also particularly useful for:
When the second file of acquisition is multiple, highest second file of matching degree is selected;
According to the sharing information of the second file described in selected second file generated.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is that one of smart phone of the sharing files method and device in the embodiment of the present invention shares the tool of music
The schematic diagram of body application scenarios;
Fig. 2 is the flow diagram of one of embodiment of the present invention sharing files method;
Fig. 3 is the flow diagram of another sharing files method in the embodiment of the present invention;
Fig. 4 is the flow diagram of another sharing files method in the embodiment of the present invention;
Fig. 5 is the flow diagram of another sharing files method in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of one of embodiment of the present invention sharing files device;
Fig. 7 is the structural schematic diagram of another sharing files device in the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another sharing files device in the embodiment of the present invention;
Fig. 9 is the information matching unit of the information matches module of another sharing files device in the embodiment of the present invention
Structural schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that this
Term "and/or" used herein refers to and includes one or more associated any or all possible group for listing project
It closes.
It should also be noted that, the terminal in the embodiment of the present invention includes but is not limited to smart phone, tablet computer, media
Player, smart television, Intelligent bracelet, intelligent wearable device, MP3 player (Moving Picture Experts Group
Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts
Group Audio Layer IV, dynamic image expert's compression standard audio level 3) player, personal digital assistant
(Personal Digital Assistant, PDA) user equipmenies such as pocket computer on knee and desktop computer.
Explanation is needed further exist for, present invention could apply to music to share application software, music sharing website or sound
The application scenarios such as happy sharing apparatus equipment.The embodiment of the present invention carries out the sharing files of local music with smart phone mainly to lift
Example explanation.As shown in Figure 1, Fig. 1 is one of smart phone point of the sharing files method and device in the embodiment of the present invention
The schematic diagram for enjoying the concrete application scene of music shares user by smart phone to local sound in the application scenarios of Fig. 1
Music file is shared, and the broadcasting link address that the music matched shares file is sent to the use shared by internet
Family, and the user shared can then link the broadcasting for carrying out music and sharing file by the sharing.
Fig. 2 is the flow diagram of the sharing files method in the embodiment of the present invention, below in conjunction with 2 couples of present invention of attached drawing
One of embodiment sharing files method describes in detail, as shown in Fig. 2, the sharing files method in the present embodiment can be with
Include the following steps S201- step S203.
Step S201: when first terminal receives the request of the first sharing files, obtain first file first belongs to
Property information.
Specifically, first file is the local file of the first terminal.Sharing music file with smart phone is
Example, when smart phone receives the sharing request of first music file of user, wherein the music file is the smart phone
Local music, obtain the first attribute information of the first music file.Further, the first attribute information may include the sound
In the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size extremely
A few attribute information or other attribute informations that can search comparison first file.
Step S202: according to the acquisition of the first attribute information of first file it is high with the first file matching degree the
Two files, and the sharing information of the second file according to the second file generated of the acquisition.
Specifically, it is acquired according to the attribute information of the first music file obtained in step S201 similar to the attribute information
Music file, such as preferential collection, the identical file of music file names, singer is identical, the identical file of duration.Specifically
Ground calculates lookup matching degree and reaches threshold value by the calculation formula and threshold range of the Similarity matching degree between setting file
Second file, acquire second music file and generates the sharing information of the music file according to second music file,
Middle sharing information may include the broadcasting link address of the music file, be also possible to the descriptions such as the title author of music file sharing
Information can also be downloading or collection address of music file etc., and the present invention is not specifically limited.
Step S203: the sharing information of second file is shared with second terminal, so that the second terminal passes through
The sharing information obtains second file.
Specifically, the sharing information of the second high music file of the matching degree obtained in step S202 can be shared with by user
Second terminal, share form then can select highest second sharing files of matching degree whole to second according to the judgement of user oneself
End, or the high music file of matching degree is sent to second terminal in the form of a list and selects to carry out for receiving the user shared
Autonomous selection audition is played or is obtained the second music file by the information shared for being shared user.
It should be noted that being mainly illustrated so that smart phone shares music file as an example in the present embodiment, not generation
The table present invention just for music file sharing, the present invention in sharing file also include multimedia file, picture file, video
The terminal of file etc., sharing is also not necessarily limited to smart phone, may also include that smartwatch, tablet computer etc. are all to connect internet
Smart machine.And it is therein first, second it is equal be used to describe file or terminal is used only for distinguishing each other, it is not specific to limit
In the specific title.
Further, Fig. 2 the embodiment described can also include the method flow step S301- step S303 in Fig. 3, figure
3 be the flow diagram of another sharing files method in the embodiment of the present invention, as shown in figure 3, in a preferred embodiment
Sharing files method can also include the following steps S301- step S303.
Step S301: when first terminal receives the request of the first sharing files, obtain first file second belongs to
Property information.
Specifically, when first terminal receives the request of the first sharing files, the first file shared is obtained
The second attribute information.Wherein the second attribute information can include: file type, modes to open a file, file name, file are made
At least one attribute information in person, file duration or file occupied space.When the first file is music file, then its attribute
Information can include: filename, author, affiliated album name, publication year, duration, bit rate or the sound storage of music file
At least one attribute information in space size.It should be noted that the first attribute information can be identical with the second attribute information
It can also be different.Preferably, the second attribute information mainly may include the description information of the first file in order to receive the use of sharing
Family is searched according to the description information, and the first attribute information mainly may include the detailed attribution information of the first file, is convenient for
The lookup that server carries out the second file compares and the calculating of matching degree.
Step S302: according to second attribute information, the sharing description information of first file is generated.
Specifically, according to the second attribute information obtained in step S301, the sharing for generating first file describes letter
Breath, such as directly from the local description information for obtaining first music file of first terminal, title of the song, ci and qu author, performing artist etc.
Information.
Step S303: the sharing description information of first file is shared with second terminal.
Specifically, the sharing description information of the first file obtained in step S302 is shared with second terminal, second eventually
The user at end voluntarily can scan for searching according to the sharing description information in the resource of internet, and obtain first text
The same or similar file of part.
It should be noted that step S201- step S203 and step S301- step S303 can be what selection respectively carried out
Relationship is also possible to the relationship carried out side by side simultaneously, can complete user's using corresponding method and step process according to the actual situation
Sharing files demand, the present invention are not especially limited.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Fig. 4 is the flow diagram of another sharing files method in the embodiment of the present invention, right below in conjunction with attached drawing 4
Another sharing files method in the embodiment of the present invention describes in detail, as shown in figure 4, the file in the embodiment of the present invention
Sharing method may comprise steps of S401- step S407.
Step S401: when first terminal receives the request of the first sharing files.
Specifically, the instruction of the request of the intelligent terminal monitor terminal of user, such as the play instruction of music, pause refer to
It enables, switching command etc., when the instruction for listening to user's sending is that music shares instruction, then judges and receive user to need to carry out
The sharing request for the first file shared.
Step S402: carrying out the selection of sharing files according to the user's choice, when selecting intelligent sharing model, obtains institute
State the first attribute information of the first file.
Specifically, the selection for carrying out sharing files according to the user's choice is obtained and is needed when selecting intelligent sharing model
First attribute information of the first file shared.Wherein the first attribute information can include: file type, File Open side
At least one attribute information in formula, file name, paper writer, file duration or file occupied space.When the first file is
When music file, then its first attribute information can include: the filename of music file, author, affiliated album name, year of issue
At least one attribute information in part, duration, bit rate or sound storage size.
Step S403: according to the acquisition of the first attribute information of first file it is high with the first file matching degree the
Two files, and the sharing information of the second file according to the second file generated of the acquisition.
Specifically, according to the attribute information of the first file obtained in step S402, company is had been set up from the terminal
Acquisition and the second high file of the first file matching degree in the server connect.Wherein server can be the file resource of internet
Server, the dedicated file server for being also possible to the building of some particular organization select different according to different application scenarios
Server resource carries out calculating matching.According to pre-set matching degree calculation formula and matching degree threshold value, such as music file,
Can basis, musical designation, singer, the composer that writes words, album name etc., carry out matching degree calculation formula setting and matching
Spend the setting of threshold value, and the matching degree of the file and the first file in calculation server database.The present invention is specific to matching degree
Calculation be not especially limited, as long as the side of the Similarity matching degree of file and the first file in the server can be calculated
Method belongs to the range of the covered protection of the present invention.
Step S404: the sharing information of second file is shared with second terminal.
Specifically, the sharing information that the second file of generation is acquired in step S403 is shared with by user by first terminal
Second terminal carries out the acquisition of the second file for receiving the user shared by second terminal.
Step S405: carrying out the selection of sharing files according to the user's choice, when selecting common sharing model, obtains institute
State the second attribute information of the first file.
Specifically, the selection for carrying out sharing files according to the user's choice is obtained and is needed when selecting common sharing model
Second attribute information of the first file shared.Wherein the second attribute information can include: file type, File Open side
At least one attribute information in formula, file name, paper writer, file duration or file occupied space.When the first file is
When music file, then its attribute information can include: the filename of music file, author, affiliated album name, publication year,
At least one attribute information in duration, bit rate or sound storage size.It should be noted that the first attribute information and
Two attribute informations can be the same or different.Preferably, the second attribute information mainly may include the description information of the first file
It is searched convenient for receiving the user shared according to the description information, and the first attribute information mainly may include the detailed of the first file
Thin attribute information compares the calculating with matching degree convenient for the lookup that server carries out the second file.
Step S406: according to second attribute information, the sharing description information of first file is generated.
Specifically, according to the second attribute information obtained in step S405, the sharing for generating first file describes letter
Breath, such as directly from the local description information for obtaining first music file of first terminal, title of the song, ci and qu author, performing artist etc..
Step S407: the sharing description information of first file is shared with second terminal.
Specifically, the sharing description information of the first file obtained in step S406 is shared with second terminal, second eventually
The user at end voluntarily can scan for searching according to the sharing description information in the resource of internet, and obtain first text
The same or similar file of part.
Further, second described in the second file generated according to the acquisition in the step S403 in above-described embodiment
The sharing information of file can also be realized by any one in embodiment in detail below.
Embodiment one: when the second file of acquisition is multiple, according to multiple second files of the acquisition with list
Form generate the sharing informations of multiple second files.
It specifically, can be by multiple second music files with the shape of list when matching the music file come has multiple
Formula generates the sharing information of the second music file, such as the broadcasting link information of the second music file is generated with tabular form, with
For receiving the music file in the autonomous selection of the user shared progress and playlist.
Embodiment two: when the second file of acquisition is multiple, highest second file of matching degree is selected, according to described
The sharing information of second file described in second file generated of selection.
Specifically, when matching the music file come has multiple, sharing user can also select according to the judgement of oneself
Highest second file of matching degree, first terminal second file according to highest second file generated of the matching degree of selection
Sharing information, such as the broadcasting link information of highest second music file of matching degree is generated, it is straight for receiving the user shared
Connect click play audition.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Fig. 5 is the flow diagram of another sharing files method in the embodiment of the present invention, right below in conjunction with attached drawing 5
Another sharing files method in the embodiment of the present invention describes in detail, as shown in figure 5, the file in the embodiment of the present invention
Sharing method may comprise steps of S501- step S506.
Step S501: the request instruction of monitor terminal.
Specifically, the instruction of the request of the intelligent terminal monitor terminal of user, such as the play instruction of music, pause refer to
It enables, switching command etc..
Step S502: when being resolved to the request instruction is sharing request instruction, the first file of the terminal is obtained
Sharing request.
Specifically, when monitor and be resolved to request instruction be sharing request instruction when, then obtain need to carry out sharing files
The first file sharing request.
Step S503: the first attribute information of first file is obtained.
Specifically, it can correspond to reference to method and step S402 in Fig. 4 embodiment, details are not described herein.
Step S504: according to the first attribute information of first file, by establishing the server of connection, according to pre-
If matching degree calculation formula and matching degree threshold value, calculate file in the server database and first file
Matching degree.
Specifically, according to the attribute information of the first file obtained in step S503, by establishing the server of connection,
Acquisition and the second high file of the first file matching degree.Wherein server can be the file resource server of internet, can also
Dedicated file server to be the building of some particular organization selects different server resources according to different application scenarios
Carry out calculating matching.According to pre-set matching degree calculation formula and matching degree threshold value, such as music file, can basis,
Musical designation, singer, the composer that writes words, album name etc. carry out the setting and matching degree threshold value of matching degree calculation formula
Setting, and the matching degree of the file and the first file in calculation server database.The present invention is to the specific side of calculating of matching degree
Formula is not especially limited, as long as the method that can calculate file and the Similarity matching degree of the first file in the server belongs to
The range of the covered protection of the present invention.
Step S505: it acquires the matching degree and reaches corresponding second file of preset matching degree threshold value, and adopted according to described
The sharing information of second file described in second file generated of collection.
Specifically, it according to the calculated result of the matching angle value in step S504, acquires matching degree and reaches preset matching degree threshold
It is worth corresponding second file, this second file is that user can be with reference to the file shared.Since file increasingly increases in server
It is more, the quantity and the second file and the first file of the second file of acquisition can be controlled by the way that the range of matching degree threshold value is arranged
Between matching degree height.The detailed process of the sharing information of the second file according to the second file generated of the acquisition is then
It can correspond to reference to method and step S403 in Fig. 4 embodiment, details are not described herein.
Step S506: the sharing information of second file is shared with second terminal, so that the second terminal passes through
The sharing information obtains second file.
Specifically, it can correspond to reference to method and step S404 in Fig. 4 embodiment, details are not described herein.
It should be noted that the step S401 and step S405 in the embodiment of Fig. 4 are further comprised in the present embodiment simultaneously
To the method flow of step S407, the autonomous selection of sharing model is carried out by user, i.e., not only also wraps comprising intelligent sharing model
Common sharing model is contained, details are not described herein.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Fig. 6 is the structural schematic diagram of one of embodiment of the present invention sharing files device, to execute shown in above-mentioned Fig. 2
The process of one of embodiment sharing files method.
Below in conjunction with attached drawing 6, describe in detail to the structure of one of embodiment of the present invention sharing files device.
The device 10 can include: the first information obtains module 101, information matches module 102 and sharing files module 103.
The first information obtains module 101, for obtaining described the when first terminal receives the request of the first sharing files
First attribute information of one file, first file are the local file of the first terminal;
Specifically, first file is the local file of the first terminal.Sharing music file with smart phone is
Example, when smart phone receives the sharing request of first music file of user, wherein the music file is the smart phone
Local music, obtain the first attribute information of the first music file.Further, the first attribute information may include the sound
In the filename of music file, author, affiliated album name, publication year, duration, bit rate or sound storage size extremely
A few attribute information or other attribute informations that can search comparison first file.
Information matches module 102, for according to the acquisition of the first attribute information of first file and first file
The second high file of matching degree, and the sharing information of the second file according to the second file generated of the acquisition;
Specifically, the attribute information acquisition of the first music file obtained in module 101 is obtained according to the first information and is somebody's turn to do
The similar music file of attribute information, such as preferential collection, the identical file of music file names, singer is identical, when appearance
Same file.Specifically, it by the calculation formula and threshold range of the Similarity matching degree between setting file, calculates and searches matching
Degree reaches the second file of threshold value, acquire second music file and generates the music file according to second music file
Sharing information, wherein sharing information may include the broadcasting link address of the music file, and the name for being also possible to music file is referred to as
Person etc. describes sharing information, can also be downloading or collection address of music file etc., the present invention is not specifically limited.
Sharing files module 103, for the sharing information of second file to be shared with second terminal, for described
Two terminals obtain second file by the sharing information.
Specifically, user can believe the sharing of the second high music file of the matching degree obtained in information matches module 102
Breath is shared with second terminal, and sharing form then can select highest second sharing files of matching degree according to the judgement of user oneself
It is sent to second terminal in the form of a list for receiving the user shared to second terminal, or by the high music file of matching degree
Selection carries out autonomous selection audition, plays or obtain the second music file by the information shared for being shared user.
It should be noted that being mainly illustrated so that smart phone shares music file as an example in the present embodiment, not generation
The table present invention just for music file sharing, the present invention in sharing file also include multimedia file, picture file, video
The terminal of file etc., sharing is also not necessarily limited to smart phone, may also include that smartwatch, tablet computer etc. are all to connect internet
Smart machine.And it is therein first, second it is equal be used to describe file or terminal is used only for distinguishing each other, it is not specific to limit
In the specific title.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Fig. 7 is the structural schematic diagram of another sharing files device in the embodiment of the present invention, to execute above-mentioned Fig. 4 institute
Show the process of another sharing files method in embodiment.
Below in conjunction with attached drawing 7, it is situated between in detail to the structure of another sharing files device in the embodiment of the present invention
It continues.The device 20 can include: the first information, which obtains module 201, information matches module 202, sharing files module 203, second, to be believed
Breath obtains module 204, information generates mould 205 and information share module 206.
The first information obtains module 201, for obtaining described the when first terminal receives the request of the first sharing files
First attribute information of one file, first file are the local file of the first terminal.
Wherein the first information acquisition module 201 in device can execute the institute in simultaneously Method Of Accomplishment step S401 and S402
There are method and process, details are not described herein.
Information matches module 202, for according to the acquisition of the first attribute information of first file and first file
The second high file of matching degree, and the sharing information of the second file according to the second file generated of the acquisition.
Wherein the information matches module 202 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S403
Journey, details are not described herein.
Sharing files module 203, for the sharing information of second file to be shared with second terminal, for described
Two terminals obtain second file by the sharing information.
Wherein the sharing files module 203 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S404
Journey, details are not described herein.
Second data obtaining module 204, for obtaining described the when first terminal receives the request of the first sharing files
Second attribute information of one file.
Wherein the second data obtaining module 204 in device can execute the institute in simultaneously Method Of Accomplishment step S401 and S405
There are method and process, details are not described herein.
Information generating module 205, for according to second attribute information, the sharing for generating first file to describe letter
Breath.
Wherein the information generating module 205 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S406
Journey, details are not described herein.
Information share module 206, for the sharing description information of first file to be shared with second terminal.
Wherein the information share module 206 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S407
Journey, details are not described herein.
It should be noted that module 201,202 and 203 and module 204 in sharing files device in the present embodiment,
205 and 206 can be parallel modules, that is, work at the same time, and be referred to the S201-S203 and method and step of method and step
S301-303;It is also possible to choice relation, i.e., instruction triggers is carried out by user's selecting module and joined to select sex work
According to the S401-S407 in method and step, the present invention is not especially limited this.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Fig. 8 is the structural schematic diagram of another sharing files device in the embodiment of the present invention, to execute above-mentioned Fig. 5 institute
Show the process of another sharing files method in embodiment.
Below in conjunction with attached drawing 8, it is situated between in detail to the structure of another sharing files device in the embodiment of the present invention
It continues.The device 30 can include: the first information, which obtains module 301, information matches module 302, sharing files module 303, second, to be believed
Breath obtains module 304, information generates mould 305 and information share module 306.The first information obtains module 301 can include: refers to
Enable monitoring unit 3011, request unit 3012 and information acquisition unit 3013;The information matches module 302 can include:
Matching primitives unit 3021 and information matching unit 3022.
The first information obtains module 301 can include: instruction monitoring unit 3011, request unit 3012 and acquisition of information
Unit 3013.
Instruct monitoring unit 3011, the request instruction for monitor terminal.
Request unit 3012, for obtaining the end when being resolved to the request instruction is sharing request instruction
The sharing request of first file at end.
Information acquisition unit 3013, for obtaining the first attribute information of first file.
Unit 3011 to 3013 that wherein first information in device obtains that module 301 includes can execute and Method Of Accomplishment
All methods and process in step S501 to S503, details are not described herein.
Information matches module 302 can include: matching primitives unit 3021 and information matching unit 3022.
Matching primitives unit 3021, for the first attribute information according to first file, by establishing connection
Server, according to the calculation formula of preset matching degree and matching degree threshold value, calculate file in the server database with
The matching degree of first file, the matching degree indicate the attribute information and first text of the file in server database
Similarity between first attribute information of part.
Fig. 9 is the information matching unit of the information matches module of another sharing files device in the embodiment of the present invention
Structural schematic diagram.
Information matching unit 3022 can include: match selection subelement 3022a and information matches subelement 3022b.
Match selection subelement 3022a, for selecting matching degree highest second when the second file of acquisition is multiple
File.
Information matches subelement 3022b, the sharing for the second file according to selected second file generated
Information.
Unit 3021 to 2022 that wherein the information matches module 302 in device includes can execute and Method Of Accomplishment step
All methods and process in S504 to S505, details are not described herein.
Sharing files module 303, for the sharing information of second file to be shared with second terminal, for described
Two terminals obtain second file by the sharing information.
Wherein the sharing files module 303 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S506
Journey, details are not described herein.
Second data obtaining module 304, for obtaining the second attribute information of first file.
Wherein the second data obtaining module 304 in device can execute the institute in simultaneously Method Of Accomplishment step S401 and S405
There are method and process, details are not described herein.
Information generating module 305, for according to second attribute information, the sharing for generating first file to describe letter
Breath.
Wherein the information generating module 305 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S406
Journey, details are not described herein.
Information share module 306, for the sharing description information of first file to be shared with second terminal.
Wherein the information share module 306 in device can execute all methods and stream in simultaneously Method Of Accomplishment step S407
Journey, details are not described herein.
The embodiment of the present invention is asked receiving the first sharing files by first terminal by sharing files method
When asking, according to the acquisition of the first attribute information of the first file and the second high file of the first file matching degree, and according to acquisition
The sharing information of second the second file of file generated, then the sharing information of the second file is shared with second terminal so that second is whole
End obtains the second file by sharing information.Such as when user shares local music file using first terminal, according to this
The attribute information of local music file is matched with the music file in the internet music resources bank that can establish connection, generation
With the sharing information for spending highest several songs, the user of second terminal then can pass through internet access according to sharing information
Play share file, solve the technical issues of local music cannot being played out sharing in the prior art, facilitate user into
The broadcasting sharing operation of row music, improves sharing files efficiency.
Although describing terminal, file, method or unit it should be understood that waiting herein using term first, second,
It is that these terminals, file, method or unit should should not be limited by these terms, these terms are only used to distinguish one another.Also
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular "one" (" a ",
" an " and " the ") it is intended to also include plural form.It should also be understood that "and/or" used herein refer to including
Any and all possible combinations of one or more than one project listed in association.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention
Benefit requires made equivalent variations, still belongs to the scope covered by the invention.
Claims (16)
1. a kind of sharing files method characterized by comprising
When first terminal receives the request of the first sharing files, the selection of sharing files is carried out according to the user's choice, is elected to
When selecting intelligent sharing model, the first attribute information of first file is obtained, first file is the first terminal
Local file, first attribute information are searched high with the first file matching degree in a network for the first terminal
File;
According to the acquisition of the first attribute information of first file and the second high file of the first file matching degree, and according to
The sharing information of second file described in second file generated of the acquisition;
The sharing information of second file is shared with second terminal, so that the second terminal is obtained by the sharing information
Take second file;
It is described when first terminal receive the first sharing files request when after, further includes:
The selection for carrying out sharing files according to the user's choice obtains first file when selecting common sharing model
Second attribute information, second attribute information are different from first attribute information, and second attribute information is for described
First terminal generates the sharing description information of first file;
According to second attribute information, the sharing description information of first file is generated, the sharing description information is used for
The user of the second terminal searches and the high file of the first file matching degree;
The sharing description information of first file is shared with second terminal.
2. the method as described in claim 1, which is characterized in that first file includes music file or multimedia file.
3. the method as described in claim 1, which is characterized in that first attribute information, comprising: file type, file are beaten
At least one attribute information in evolution formula, file name, paper writer, file duration or file occupied space.
4. method according to claim 2, which is characterized in that the first attribute information of the music file, comprising: music text
At least one in the filename of part, author, affiliated album name, publication year, duration, bit rate or sound storage size
A attribute information.
5. the method as described in claim 1, which is characterized in that it is described when receiving the request of the first sharing files, obtain institute
State the first attribute information of the first file, comprising:
The request instruction of monitor terminal;
When being resolved to the request instruction is sharing request instruction, the sharing request of the first file of the terminal is obtained;
Obtain the first attribute information of first file.
6. the method as described in claim 1, which is characterized in that described to be acquired according to the first attribute information of first file
The second high file with the first file matching degree, and point of the second file according to the second file generated of the acquisition
Enjoy information, comprising:
According to the first attribute information of first file, by establishing the server of connection, according to preset matching degree
Calculation formula and matching degree threshold value calculate the matching degree of the file and first file in the server database, described
Matching degree indicates the phase between the attribute information of file and the first attribute information of first file in server database
Like degree;
It acquires the matching degree and reaches corresponding second file of preset matching degree threshold value, and is raw according to the second file of the acquisition
At the sharing information of second file.
7. method as claimed in claim 6, which is characterized in that second described in second file generated according to the acquisition
The sharing information of file, comprising:
When the second file of acquisition is multiple, multiple the are generated in the form of a list according to multiple second files of the acquisition
The sharing information of two files.
8. method as claimed in claim 6, which is characterized in that second described in second file generated according to the acquisition
The sharing information of file, further includes:
When the second file of acquisition is multiple, highest second file of matching degree is selected;
According to the sharing information of the second file described in selected second file generated.
9. a kind of sharing files device characterized by comprising
The first information obtain module, for when first terminal receive the first sharing files request when, according to the user's choice into
The selection of row sharing files, when selecting intelligent sharing model, the first attribute information of acquisition first file, described first
File is the local file of the first terminal, and first attribute information is searched in a network for the first terminal and institute
State the high file of the first file matching degree;
Information matches module, for high according to the acquisition of the first attribute information of first file and the first file matching degree
The second file, and the sharing information of the second file according to the second file generated of the acquisition;
Sharing files module, for the sharing information of second file to be shared with second terminal, for the second terminal
Second file is obtained by the sharing information;
Second data obtaining module, for carrying out the selection of sharing files according to the user's choice, when the common sharing model of selection
When, the second attribute information of first file is obtained, second attribute information is different from first attribute information, described
Second attribute information generates the sharing description information of first file for the first terminal;
Information generating module, it is described for generating the sharing description information of first file according to second attribute information
The user for sharing description information for the second terminal searches and the high file of the first file matching degree;
Information share module, for the sharing description information of first file to be shared with second terminal.
10. device as claimed in claim 9, which is characterized in that first file includes music file or multimedia file.
11. device as claimed in claim 9, which is characterized in that first attribute information, comprising: file type, file are beaten
At least one attribute information in evolution formula, file name, paper writer, file duration or file occupied space.
12. device as claimed in claim 10, which is characterized in that the first attribute information of the music file, comprising: music
In the filename of file, author, affiliated album name, publication year, duration, bit rate or sound storage size at least
One attribute information.
13. device as claimed in claim 9, which is characterized in that the first information obtains module, comprising:
Instruct monitoring unit, the request instruction for monitor terminal;
Request unit, for obtaining the first of the terminal when being resolved to the request instruction is sharing request instruction
The sharing request of file;
Information acquisition unit, for obtaining the first attribute information of first file.
14. device as claimed in claim 9, which is characterized in that the information matches module, comprising:
Matching primitives unit, for the first attribute information according to first file, by establishing the server of connection, root
According to the calculation formula and matching degree threshold value of preset matching degree, the file and first text in the server database are calculated
The matching degree of part, the matching degree indicate that the attribute information of the file in server database and the first of first file belong to
Similarity between property information;
Information matching unit reaches corresponding second file of preset matching degree threshold value for acquiring the matching degree, and according to institute
State the sharing information of the second file described in the second file generated of acquisition.
15. device as claimed in claim 14, which is characterized in that the information matching unit is specifically used for:
When the second file of acquisition is multiple, multiple the are generated in the form of a list according to multiple second files of the acquisition
The sharing information of two files.
16. device as claimed in claim 14, which is characterized in that the information matching unit, comprising:
Match selection subelement, for selecting highest second file of matching degree when the second file of acquisition is multiple;
Information matches subelement, the sharing information for the second file according to selected second file generated.
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 CN104794156A (en) | 2015-07-22 |
CN104794156B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105760061B (en) * | 2016-02-05 | 2019-01-22 | 腾讯科技(深圳)有限公司 | Information interacting method and device |
CN107566862B (en) * | 2016-06-30 | 2021-05-11 | 上海博泰悦臻网络技术服务有限公司 | Method and system for sharing music among multimedia communication terminals |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7369868B2 (en) * | 2002-10-30 | 2008-05-06 | Sony Ericsson Mobile Communications Ab | Method and apparatus for sharing content with a remote device using a wireless network |
-
2015
- 2015-03-16 CN CN201510114715.4A patent/CN104794156B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104794156A (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11508353B2 (en) | Real time popularity based audible content acquisition | |
EP3014617B1 (en) | System, method and devices for bluetooth party-mode | |
CN101464881B (en) | Method and system for generating media recommendations in a distributed environment based on tagging play history information with location information | |
US9055193B2 (en) | System and method of a remote conference | |
CN105120304A (en) | Information display method, device and system | |
CN103021401B (en) | Internet-based multi-people asynchronous chorus mixed sound synthesizing method and synthesizing system | |
CN104918069B (en) | One kind plays scenario reduction method, system, playback terminal and control terminal | |
CN103607461A (en) | Information sharing method and cloud server | |
US20140067827A1 (en) | Automatically generating music playlists based on an implicitly selected seed | |
CN105072146B (en) | Music information sharing method and device | |
CN102567447A (en) | Information processing device and method, information processing system, and program | |
CN106888154B (en) | Music sharing method and system | |
CN110333840A (en) | Recommended method, device, electronic equipment and storage medium | |
US20190042648A1 (en) | Playlist trailer | |
CN104869427A (en) | Method, device and system enabling multiple users to sing same song simultaneously online | |
CN104639425A (en) | Network expression playing method and system and service equipment | |
CN102340583A (en) | Method for pre-requesting songs in karaoke hall through mobile phone | |
CN106713985A (en) | Method and device for recommending network video | |
CN103984690A (en) | Creating playlists | |
CN104167216B (en) | A kind of audio file sharing method, device and audio amplifier | |
CN103873003A (en) | Gain adjustment method and device for audio signal | |
CN104794156B (en) | A kind of sharing files method and device | |
CN104376859A (en) | Automatic playlist adjusting method and network music player | |
CN104750868A (en) | Method and device for establishing multi-media file playlist | |
CN106254908B (en) | Multimedia resource playing method and device |
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 |
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. |
|
CP01 | Change in the name or title of a patent holder |