CN103106369B - File sharing method and device based on media server - Google Patents
File sharing method and device based on media server Download PDFInfo
- Publication number
- CN103106369B CN103106369B CN201310023895.6A CN201310023895A CN103106369B CN 103106369 B CN103106369 B CN 103106369B CN 201310023895 A CN201310023895 A CN 201310023895A CN 103106369 B CN103106369 B CN 103106369B
- Authority
- CN
- China
- Prior art keywords
- file
- media
- filter condition
- preset filter
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000001914 filtration Methods 0.000 claims abstract description 67
- 230000009286 beneficial effect Effects 0.000 abstract description 8
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 210000003739 neck Anatomy 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a kind of file sharing method and device based on media server, and this method comprises the following steps:Whether each file in scanning share directory, detect the title of the current file scanned in default filtering listed files one by one;If it is not, then judging whether the fileinfo of current file meets preset filter condition;When the fileinfo of current file meets preset filter condition, the title of current file is added in filtering listed files;When the fileinfo of current file is unsatisfactory for preset filter condition, the title of current file is shared in list added to default media;Shared media share the corresponding all media files of title in list.The present invention can filter the stronger media file of some privacy as needed or be likely to result in the cache file of interference, realize the beneficial effect for being filtered the file that need not be shared under share directory, improve the security and validity of share directory file.
Description
Technical field
The present invention relates to digital living network technical field, more particularly to a kind of file-sharing side based on media server
Method and device.
Background technology
DLNA(Digital Living Network Alliance, DLNA)It it is one by consumer
Electronics firm, mobile device manufacturer and manufacturer computer composition alliance organization, it is intended to solve consumer electronics, mobile device with
And interconnecting by wireless network or cable network between PC so that Digital Media and content service it is unrestricted
Shared and growth be possibly realized.
M-DMS based on DLNA standards(Mobile Digital Media Server, mobile type digital media server)
When sharing the media file of itself, the share directory that scan full hard disk participator is set, and matchmaker all in share directory
Body file(Including audio file, video file and picture file)All it is supplied in a shared manner and receives shared another set
It is standby to be shown.But, some files that need not be shared are there may be in the share directory that participator is set, for example some are hidden
The stronger media file of private, or some are likely to result in the cache file of interference, such as front cover of audio or video caching or specially
Collect picture etc..Therefore, according to above-mentioned conventional sharing mode, then it may expose the privacy of participator or produce interference text
Part.
The content of the invention
The main object of the present invention is to provide a kind of file sharing method and device based on media server, it is intended to by altogether
The file that enjoying need not share in catalogue is filtered.
The embodiment of the invention discloses a kind of file sharing method based on media server, comprise the following steps:
Whether each file in scanning share directory, detect the title of the current file scanned in default mistake one by one
Filter in listed files;
If it is not, then judging whether the fileinfo of the current file meets preset filter condition;
When the fileinfo of the current file meets the preset filter condition, the title of the current file is added
Add in the filtering listed files;When the fileinfo of the current file is unsatisfactory for the preset filter condition, by institute
The title for stating current file is shared in list added to default media;
Share the corresponding all media files of title in the shared list of the media.
Preferably, also include before the step of whether fileinfo for judging current file meets preset filter condition
Step:
Read and parse the current file, recognize whether the current file is media file;
If the current file is not media file, the title of the current file is arranged added to the filtering file
In table;
If the current file is media file, the step is performed:Judging the fileinfo of the current file is
It is no to meet preset filter condition.
Preferably, whether the fileinfo for judging the current file meets preset filter condition and includes:
Medium type and media formats included by the fileinfo is matched with the preset filter condition;
If any one of the medium type or media formats and the preset filter criteria matches success, recognize institute
State fileinfo and meet the preset filter condition;
If the medium type and media formats and the preset filter condition can not the match is successful, by the file
File attribute information included by information is matched with the preset filter condition;
If any one of file attribute information information and the preset filter criteria matches success, identification are described
Fileinfo meets preset filter condition;If the file attribute information and the preset filter condition can not the match is successful,
Then recognize that the fileinfo is unsatisfactory for preset filter condition.
Preferably, the file attribute information includes the size of media file and the creation time of media file.
The embodiment of the invention also discloses a kind of file sharing device based on media server, including:
File scan module, for scanning each file in share directory one by one, the current file that detection is scanned
Whether title is in default filtering listed files;
File filter module, for detecting the title of the current file scanned not in default filtering listed files
When, judge whether the fileinfo of the current file meets preset filter condition;Expire in the fileinfo of the current file
During the foot preset filter condition, the title of the current file is filtered in listed files added to described;Described current
When the fileinfo of file is unsatisfactory for the preset filter condition, the title of the current file is total to added to default media
Enjoy list;
File sharing module, for sharing the corresponding all media files of title in the shared list of the media.
Preferably, the file filter module is additionally operable to:
Read and parse the current file, recognize whether the current file is media file;
If the current file is not media file, the title of the current file is arranged added to the filtering file
In table;
If the current file is media file, judge whether the fileinfo of the current file meets preset filtering
Condition.
Preferably, the file filter module is additionally operable to:
Medium type and media formats included by the fileinfo is matched with the preset filter condition;
If any one of the medium type or media formats and the preset filter criteria matches success, recognize institute
State fileinfo and meet the preset filter condition;
If the medium type and media formats and the preset filter condition can not the match is successful, by the file
File attribute information included by information is matched with the preset filter condition;
If any one of file attribute information information and the preset filter criteria matches success, identification are described
Fileinfo meets preset filter condition;If the file attribute information and the preset filter condition can not the match is successful,
Then recognize that the fileinfo is unsatisfactory for preset filter condition.
Preferably, the file attribute information includes the size of media file and the creation time of media file.
The present invention will meet preset filter condition by default filtering listed files and preset filter condition under share directory
File title added to filtering listed files in, the title that will be unsatisfactory for the file of preset filter condition is total to added to media
Enjoy in list, media are only finally shared into the corresponding all media files of title in list and shared.Therefore, the present invention can
With the cache file for filtering the stronger media file of some privacy as needed or being likely to result in interference, realize share directory
The beneficial effect that the file that need not be shared down is filtered, improves the security and validity of share directory file.
Brief description of the drawings
Fig. 1 is the file sharing method one embodiment schematic flow sheet of the invention based on media server;
Fig. 2 is the file sharing method another embodiment schematic flow sheet of the invention based on media server;
Fig. 3 is that the file sharing method of the invention based on media server applies the system architecture in Android system to show
It is intended to;
Fig. 4 is the file sharing device one embodiment high-level schematic functional block diagram of the invention based on media server.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
Technical scheme is further illustrated below in conjunction with Figure of description and specific embodiment.It should be appreciated that this
The specific embodiment of place description is not intended to limit the present invention only to explain the present invention.
Reference picture 1, Fig. 1 is the file sharing method one embodiment schematic flow sheet of the invention based on media server;Such as
Shown in Fig. 1, the file sharing method of the invention based on media server comprises the following steps:
Each file in step S01, one by one scanning share directory, detect the title of current file that scans whether
Exist in default filtering listed files;If so, then continuing executing with step S01, i.e., directly scan next file;If it is not, then
Perform step S02;
Media server scans each file in share directory one by one, reads default filtering listed files;Will be current
The title of the file scanned is compared with the file name stored in filtering listed files, and the title of identification current file is
It is no to exist in filtering listed files, that is, recognize in filtering listed files with the presence or absence of the title phase with the file of Current Scan
Same file name;If the file name in filtering listed files has identical with the title of current file, illustrate current file
The corresponding file of respective name belonged in filtering listed files, the text that media server identification current file filters for needs
Part, then directly scans next file in share directory.
Step S02, judge whether the fileinfo of the current file meets preset filter condition;If so, then performing step
Rapid S03;If it is not, then performing step S04;
Step S03, by the title of the current file added to it is described filtering listed files in;
Step S04, by the title of the current file added to default media share list in;
If the title of current file does not exist in filtering listed files, media server obtains the text of current file
Part information, judges whether the fileinfo of current file meets preset filter condition.
It will be understood to those skilled in the art that the preset filter condition can be client according to the need for itself from
Definition setting, such as:By in preset time period as most in a couple of days in photo be set as filter condition, then media server recognize
Whether the file of Current Scan is the most photo of interior take in a couple of days, if so, then directly by the file of Current Scan added to filtering
Listed files;Picture/mb-type or video time can also be set as filter condition, such as set this picture category of portrait photographs
Type is filter condition, or sets video type of the video time more than 30 minutes as filter condition etc.;The present embodiment is to preset
The particular content and setting means of filter condition are not limited.
Media server will meet the title of the current file of preset filter condition added to after filtering in listed files, return
Receipt row step S01, each file continued in scanning share directory one by one, and detect current file title that scanning arrives is whether
Exist in default filtering listed files;In addition, media server will be unsatisfactory for the name of the current file of preset filter condition
Claim to be used in the shared list of shared media added to default.
Step S05, the corresponding all media files of title shared in the shared list of the media.
After the matching for completing above-mentioned filter condition, media are only shared the corresponding matchmaker of title in list by media server
Body sharing files come out(The mode shared can be:Receiving what is shared in a shared manner according to conventional media server
Another equipment is shown), and filter the All Files in listed files and there will not be in the media shared, effectively
Ground realizes the filtering function of media file.
The present embodiment will meet preset filtering rod by default filtering listed files and preset filter condition under share directory
The title of the file of part is added to filtering in listed files, and the title that will be unsatisfactory for the file of preset filter condition is added to media
In shared list, media are only finally shared into the corresponding all media files of title in list and shared.Therefore, it is of the invention
The stronger media file of some privacy can be filtered as needed or the cache file of interference is likely to result in, and realized shared mesh
The beneficial effect that the lower file that need not be shared of record is filtered.
Based on the specific embodiment described in Fig. 1, Fig. 2 is refer to, Fig. 2 is the file-sharing of the invention based on media server
The another embodiment schematic flow sheet of method;The difference of Fig. 2 embodiments and Fig. 1 embodiments is to increase only step S06;This implementation
Only step S06 is specifically described for example, and the present invention is based on other steps involved by the file sharing method of media server
The specific descriptions of the embodiment described in Fig. 1 are refer to, be will not be repeated here.
As shown in Fig. 2 in step S02, the step of whether fileinfo of current file meets preset filter condition judged
Also include step before:
Step S06, read and parse current file, whether identification current file is media file.
If current file is media file, performs step S02, judge whether the fileinfo of current file meets preset
Filter condition;
If current file is not media file, performs step S03, the title of the current file is added to the mistake
Filter in listed files;
Media server reads and parses current file, and whether identification current file is media file, if media server
The current file of scanning is not media file, then directly by the title of the current file added to filtering listed files, if working as
Preceding document is media file, then continues executing with follow-up handling process.Because media server is only shared to media file,
Therefore, when media server recognize Current Scan file be not media file, such as when being word document, excel forms, then
This document title is directly added to filtering listed files;So, can not in media server progress next time file-sharing
Whether it is media file with detection this document again, directly this document can be just filtered out, improved according to filtering listed files
Media server scans the sweep speed of shared file, so as to improve the shared speed of media server shared file.
In a preferred embodiment, whether media server identification current file is that media file includes:Media services
Device obtain Current Scan file related data, judge current file whether audio, video or picture file.Due to media text
The part i.e. file header that the decoded source file of part most starts has the media file information of set form, therefore media services
Device can obtain the form and type of media file according to parsing media file header;If current file is not media text
Part, then the related resolution module of media server will return to an improper value;According to above-mentioned principle, media server can be accurate
Identify Current Scan file whether media file.
In a preferred embodiment, media server can also recognize the type of file according to the extension name of file.
If the file of media server identification Current Scan is media file, the fileinfo of current file is obtained, after
It is continuous to judge whether the fileinfo corresponding to the media file of Current Scan meets preset filter condition;In a preferred embodiment
In, media server can obtain corresponding fileinfo, the file letter by decoding the File header information of media file
Breath includes:Medium type, media formats and file attribute information, the file attribute information include media file size and media
The file attribute informations such as file creation time.If media server judges current file, corresponding fileinfo meets preset filtering
Condition, then be directly added to filtering listed files by the title of the media file of Current Scan;If being unsatisfactory for preset filter condition,
The title of the media file of Current Scan is then shared list by media server added to media, for sharing.
In a preferred embodiment, the fileinfo of the media file for the Current Scan that media server identification is obtained is
It is no to meet preset filter condition and include:
First medium type and media formats are matched with preset filter condition;If in medium type or media formats
Any one and the success of preset filter criteria matches, then terminate matching operation, recognize the fileinfo of the media file of Current Scan
Meet preset filter condition;If medium type and media formats and preset filter condition all can not the match is successful, by media text
File attribute information included by part information is matched with preset filter condition.If any one of file attribute information information
Such as media file size, media file creation time and the success of preset filter criteria matches, then recognize that media file information is met
Preset filter condition;If file attribute information and the preset filter condition can not the match is successful, identification media file letter
Breath is unsatisfactory for preset filter condition.
The present embodiment is realized in exclusion share directory by way of whether the file for recognizing scanning is media file
The beneficial effect of file is disturbed, the validity of share directory file is improved.
Below by taking the file that media server is shared in Android system Android share directories as an example, this hair is described again
The implementation process of the bright file sharing method based on media server;In the present embodiment, media server uses Android system.
Based on the specific embodiment described in Fig. 1 and Fig. 2, refer to 3, Fig. 3 is the file of the invention based on media server
Sharing method applies the system architecture schematic diagram in Android system;Media server shown in Fig. 3 employs the Android frame of standard
Structure, filtering be arranged on Java layers provide corresponding interface module, be delivered to C layers through JNI layers by Java layers of settings, so
Driving C layers afterwards calls media to filter related function module, realizes the filtering to media file.In system architecture shown in Fig. 3,
Media filtering module is added in media server, using the module LibDlna that increases income shown in Fig. 3, Libupnp, ffmpeg,
UShare and system API(Application Program Interface, Application Program Interface)To obtain media file
Essential information, information different to the size of media file, type, title, date created, keyword etc. are filtered, effectively
Protect the privacy of participator.Based on the system architecture shown in Fig. 3, media server calls ffmpeg decoder modules to can determine whether
Whether the file for going out Current Scan is media file.When the file of Current Scan is media file, media server is to media
The matching filtering of file is divided into media formats and type filtering and media file filtering;I.e. by calling ffmpeg decoder modules
Type, the form of media file are parsed, is matched with preset filter condition;When the match is successful, API is called, obtains current
The information such as size, the creation time of the media file of scanning, are matched with preset filter condition, if there is any one to match into
Work(, then be added to filtering listed files by the media file of Current Scan;If the media file letter of the media file of Current Scan
Breath all can not be with the success of preset filter criteria matches, then illustrating the file of Current Scan need not filter, and add it to
Media share list.UShare modules are given by the media list address for completing to share, uShare modules call Libupnp moulds
Media are shared the sharing files in list by Libupnp modules and come out by block;File in filtering listed files there will not be
In the media file shared, with the beneficial effect for being filtered the file that need not be shared, by the text for recognizing scanning
Part whether be media file mode, realize exclude share directory in interference file such as cache file beneficial effect, carry
The high security of systematic function and share directory file.
Reference picture 4, Fig. 4 is file sharing device one example structure schematic diagram of the invention based on media server;Such as
Shown in Fig. 4, the file sharing device of the invention based on media server includes:File scan module 01, file filter module 02
With file sharing module 03.
File scan module 01, for scanning each file in share directory one by one, detects the current file scanned
Title whether it is default filtering listed files in.
File scan module 01 scans each file in share directory one by one, reads default filtering listed files;Will
The title of the file of Current Scan is compared with the file name stored in filtering listed files, recognizes the title of current file
Whether exist in filtering listed files, that is, recognize in filtering listed files with the presence or absence of the title with the file of Current Scan
Identical file name.If the file name in the identification filtering listed files of file scan module 01 has the title with current file
It is identical, then illustrate the corresponding file of title that current file belongs in filtering listed files, file filter module 02 is recognized currently
File is needs the file filtered, and file scan module 01 directly scans next file in share directory.
File filter module 02, for detecting the title of the current file scanned not in default filtering listed files
When, judge whether the fileinfo of the current file meets preset filter condition;Expire in the fileinfo of the current file
During the foot preset filter condition, the title of the current file is filtered in listed files added to described;Described current
When the fileinfo of file is unsatisfactory for the preset filter condition, the title of the current file is total to added to default media
Enjoy list.
If the identification current file of file scan module 01 title does not exist in filtering listed files, file filter module
02 obtains the fileinfo of current file, judges whether the fileinfo of current file meets preset filter condition.
It will be understood to those skilled in the art that the preset filter condition can be client according to the need for itself from
Definition setting, such as:By in preset time period as most in a couple of days in photo be set as filter condition, then file filter module 02
Whether the file for recognizing Current Scan is the most photo of interior take in a couple of days, if so, being then directly added to the file of Current Scan
Filter listed files;Picture/mb-type or video time can also be set as filter condition, such as set this figure of portrait photographs
Sheet type is filter condition, or sets video type of the video time more than 30 minutes as filter condition etc.;The present embodiment pair
The particular content and setting means of preset filter condition are not limited.
The title that file filter module 02 will meet the current file of preset filter condition is added in filtering listed files
Afterwards, file scan module 01 continues to scan each file in share directory one by one, and detects the current file title that scanning is arrived
Whether exist in default filtering listed files;In addition, file filter module 02 will be unsatisfactory for the current of preset filter condition
The title of file is used in the shared list of shared media added to default.
File sharing module 03, for sharing the corresponding all media files of title in the shared list of the media.
After the matching for completing above-mentioned filter condition, file sharing module 03 only shares media the title correspondence in list
Media file share out(The mode shared can be:Receiving altogether in a shared manner according to conventional media server
Another equipment enjoyed is shown), and filter the All Files in listed files and there will not be in the media shared,
It has effectively achieved the filtering function of media file.
In a preferred embodiment, the file filter module 02 is additionally operable to, and is read and is parsed current file, and identification is worked as
Whether preceding document is media file.
File filter module 02 reads and parses current file, and whether identification current file is media file, if file is swept
The current file for retouching the scanning of module 01 is not media file, and file filter module 02 then directly adds the title of the current file
Add to filtering listed files, if the current file that file scan module 01 is scanned is media file, file filter module 02 then after
It is continuous to perform follow-up handling process.Because media server is only shared to media file, therefore, when file filter module 02
The file for recognizing Current Scan is not media file, such as when being word document, excel forms, then directly by this document title
Added to filtering listed files;So, when media server carries out file-sharing next time, file filter module 02 can be without
Whether detection this document is media file again, directly can just filter out this document, improve according to filtering listed files
Media server scans the sweep speed of shared file, so as to improve the shared speed of media server shared file.
In a preferred embodiment, whether the identification of file filter module 02 current file is that media file includes:File
Filtering module 02 obtain Current Scan file related data, judge current file whether audio, video or picture file.By
The part i.e. file header most started in the decoded source file of media file has the media file information of set form, therefore
File filter module 02 can obtain the form and type of media file according to parsing media file header;If ought be above
Part is not media file, then file filter module 02 will get the improper value of return;According to above-mentioned principle, file filter module
02 can be recognized accurately Current Scan file whether media file.
In a preferred embodiment, file filter module 02 can also recognize the class of file according to the extension name of file
Type.
If the file of the identification Current Scan of file filter module 02 is media file, the file letter of current file is obtained
Breath, continuation judges whether the fileinfo corresponding to the media file of Current Scan meets preset filter condition;It is preferred one
In embodiment, file filter module 02 can obtain corresponding fileinfo by decoding the File header information of media file,
The fileinfo includes:Medium type, media formats and file attribute information, the file attribute information include media file
The file attribute information such as size and media file creation time.If file filter module 02 judges the corresponding media text of current file
Part information meets preset filter condition, then the title of the media file of Current Scan directly is added into filtering listed files;If
Preset filter condition is unsatisfactory for, file filter module 02 then arranges the title of the media file of Current Scan added to media are shared
Table, for sharing.
In a preferred embodiment, the media text of the media file for the Current Scan that the identification of file filter module 02 is obtained
Whether part information, which meets preset filter condition, includes:
First medium type and media formats are matched with preset filter condition;If in medium type or media formats
Any one and the success of preset filter criteria matches, then terminate matching operation, recognize the fileinfo of the media file of Current Scan
Meet preset filter condition;If medium type and media formats and preset filter condition all can not the match is successful, by media text
File attribute information included by part information is matched with preset filter condition.If any one of file attribute information information
Such as media file size, media file creation time and the success of preset filter criteria matches, then recognize that media file information is met
Preset filter condition;If file attribute information and the preset filter condition can not the match is successful, identification media file letter
Breath is unsatisfactory for preset filter condition.
About tool of the file sharing device of the invention based on media server when media server uses Android system
Body implementation process refer to the specific descriptions of embodiment described in Fig. 3, will not be repeated here.
The present embodiment detects the title of the current file scanned by sweeping each file in scanning share directory one by one
Whether in default filtering listed files;If it is not, then judging whether the fileinfo of the current file meets preset filtering
Condition;When the fileinfo of the current file meets the preset filter condition, the title of the current file is added
Into the filtering listed files;, will be described when the fileinfo of the current file is unsatisfactory for the preset filter condition
The title of current file shares list added to default media;The title shared in the shared list of the media is corresponding all
Media file, realizes the beneficial effect for being filtered the file that need not be shared;By recognize scanning file whether be
The mode of media file, realizes the beneficial effect of the interference file excluded in share directory, improves share directory file
Validity.
The preferred embodiments of the present invention are the foregoing is only, its scope of the claims is not thereby limited, it is every to utilize the present invention
Equivalent structure or equivalent flow conversion that specification and accompanying drawing content are made, are directly or indirectly used in other related technology necks
Domain, is included within the scope of the present invention.
Claims (8)
1. a kind of file sharing method based on media server, it is characterised in that comprise the following steps:
Whether each file in scanning share directory, detect the title of the current file scanned in default filtering text one by one
In part list;
If it is not, then judging whether the fileinfo of the current file meets preset filter condition;
When the fileinfo of the current file meets the preset filter condition, the title of the current file is added to
In the filtering listed files;When the fileinfo of the current file is unsatisfactory for the preset filter condition, described it will work as
The title of preceding document is shared in list added to default media;
Share the corresponding all media files of title in the shared list of the media;
The preset filter condition by client according to itself the need for self-defined setting.
2. the method as described in claim 1, it is characterised in that whether the fileinfo for judging current file meets preset
Also include step before the step of filter condition:
Read and parse the current file, recognize whether the current file is media file;
If the current file is not media file, the title of the current file is added to the filtering listed files
In;
If the current file is media file, the step is performed:Judge whether the fileinfo of the current file is full
The preset filter condition of foot.
3. method as claimed in claim 1 or 2, it is characterised in that whether the fileinfo for judging the current file
Meeting preset filter condition includes:
Medium type and media formats included by the fileinfo is matched with the preset filter condition;
If any one of the medium type or media formats and the preset filter criteria matches success, recognize the text
Part information meets the preset filter condition;
If the medium type and media formats and the preset filter condition can not the match is successful, by the fileinfo
Included file attribute information is matched with the preset filter condition;
If any one of file attribute information information and the preset filter criteria matches success, recognize the file
Information meets preset filter condition;If the file attribute information and the preset filter condition can not the match is successful, know
Not described fileinfo is unsatisfactory for preset filter condition.
4. method as claimed in claim 3, it is characterised in that the file attribute information includes size and the matchmaker of media file
The creation time of body file.
5. a kind of file sharing device based on media server, it is characterised in that including:
File scan module, for scanning each file in share directory one by one, detects the title of the current file scanned
Whether in default filtering listed files;
File filter module, during for detecting the title of the current file scanned not in default filtering listed files, sentences
Whether the fileinfo of the disconnected current file meets preset filter condition;Meet described in the fileinfo of the current file
During preset filter condition, the title of the current file is filtered in listed files added to described;In the current file
When fileinfo is unsatisfactory for the preset filter condition, the title of the current file is shared into list added to default media
In;
File sharing module, for sharing the corresponding all media files of title in the shared list of the media;
The preset filter condition by client according to itself the need for self-defined setting.
6. device as claimed in claim 5, it is characterised in that the file filter module is additionally operable to:
Read and parse the current file, recognize whether the current file is media file;
If the current file is not media file, the title of the current file is added to the filtering listed files
In;
If the current file is media file, judge whether the fileinfo of the current file meets preset filtering rod
Part.
7. the device as described in claim 5 or 6, it is characterised in that the file filter module is additionally operable to:
Medium type and media formats included by the fileinfo is matched with the preset filter condition;
If any one of the medium type or media formats and the preset filter criteria matches success, recognize the text
Part information meets the preset filter condition;
If the medium type and media formats and the preset filter condition can not the match is successful, by the fileinfo
Included file attribute information is matched with the preset filter condition;
If any one of file attribute information information and the preset filter criteria matches success, recognize the file
Information meets preset filter condition;If the file attribute information and the preset filter condition can not the match is successful, know
Not described fileinfo is unsatisfactory for preset filter condition.
8. device as claimed in claim 7, it is characterised in that the file attribute information includes size and the matchmaker of media file
The creation time of body file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310023895.6A CN103106369B (en) | 2013-01-22 | 2013-01-22 | File sharing method and device based on media server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310023895.6A CN103106369B (en) | 2013-01-22 | 2013-01-22 | File sharing method and device based on media server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103106369A CN103106369A (en) | 2013-05-15 |
CN103106369B true CN103106369B (en) | 2017-08-11 |
Family
ID=48314220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310023895.6A Expired - Fee Related CN103106369B (en) | 2013-01-22 | 2013-01-22 | File sharing method and device based on media server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103106369B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428277B (en) * | 2013-07-31 | 2016-09-14 | 华讯方舟科技有限公司 | By the method accessing the movable storage device being physically connected to wireless router with the smart machine of wireless router wireless connections |
CN103744912A (en) * | 2013-12-23 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Video file scanning method and electronic device |
CN104052823A (en) * | 2014-06-30 | 2014-09-17 | 深圳市中兴移动通信有限公司 | File sharing method and device based on DLNA |
CN105373733A (en) * | 2014-08-20 | 2016-03-02 | 中国石油天然气股份有限公司 | Method and device for preventing geological research data from divulging |
CN104462294B (en) * | 2014-11-28 | 2018-03-27 | 广东欧珀移动通信有限公司 | A kind of image searching method, device and terminal |
CN105991670B (en) * | 2015-01-28 | 2020-02-14 | 中兴通讯股份有限公司 | Data sharing method, data sharing device and terminal |
CN104991940A (en) * | 2015-07-07 | 2015-10-21 | 广东欧珀移动通信有限公司 | Method and apparatus for filtering files in file system of terminal |
CN105227355B (en) * | 2015-09-08 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of multimedia play list management method, apparatus and system |
CN109491971A (en) * | 2018-10-22 | 2019-03-19 | 郑州云海信息技术有限公司 | A kind of file filter method, apparatus, equipment and computer readable storage medium |
CN113641834B (en) * | 2021-06-30 | 2022-10-21 | 荣耀终端有限公司 | File processing method and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184259A (en) * | 2007-11-01 | 2008-05-21 | 浙江大学 | Keyword automatically learning and updating method in rubbish short message |
CN102214121A (en) * | 2010-04-01 | 2011-10-12 | 刘闻 | Resource sharing management system based on network basic input/output system (NETBIOS) |
CN102819614A (en) * | 2012-08-29 | 2012-12-12 | 深圳市茁壮网络股份有限公司 | Method, device and system for classified displaying of shared catalogues in local area network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231745A (en) * | 2011-07-08 | 2011-11-02 | 盛大计算机(上海)有限公司 | Safety system and method for network application |
-
2013
- 2013-01-22 CN CN201310023895.6A patent/CN103106369B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184259A (en) * | 2007-11-01 | 2008-05-21 | 浙江大学 | Keyword automatically learning and updating method in rubbish short message |
CN102214121A (en) * | 2010-04-01 | 2011-10-12 | 刘闻 | Resource sharing management system based on network basic input/output system (NETBIOS) |
CN102819614A (en) * | 2012-08-29 | 2012-12-12 | 深圳市茁壮网络股份有限公司 | Method, device and system for classified displaying of shared catalogues in local area network |
Non-Patent Citations (1)
Title |
---|
P2P文件共享系统的内容过滤方案;肖明忠 等;《计算机工程》;20080831;第34卷(第16期);第1-3页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103106369A (en) | 2013-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103106369B (en) | File sharing method and device based on media server | |
CN102752457B (en) | Method and system for installing applications | |
US8169638B2 (en) | Image processing system, image processing apparatus, and image processing program product suited for transmitting and receiving data among a plurality of image processing apparatuses | |
US9372935B2 (en) | Content management and access systems and methods | |
US8045196B2 (en) | Image processing system, image processing apparatus, and image processing program product suited for transmitting and receiving data among a plurality of image processing apparatuses | |
CN101695157B (en) | Self-adapting method of display of mobile terminal screen in network application and system thereof | |
US20090259974A1 (en) | Method and apparatus for displaying content menus in a mobile device | |
US20100083125A1 (en) | Connected address book systems and methods | |
WO2018171503A1 (en) | File hiding method and device | |
CN1781085A (en) | Multi-medium information sharing system | |
US20100194896A1 (en) | Automatically tagging images with nearby short range communication device information | |
WO2019072127A1 (en) | Law enforcement recorder based on two-dimensional code scanning and identifying, and whole-process audio and video recording method | |
US20140047038A1 (en) | Method and system for sending scanned documents to mobile device using operator's network | |
CN104065681B (en) | The method and system of preview is carried out to the ciphered compressed packet in attachment | |
CN110557417B (en) | Image processing method and device and storage medium | |
CN104348848B (en) | Manage method, terminal device and the server of picture | |
JP2002024111A (en) | Method for communicating with unknown mail server | |
CN106790612A (en) | A kind of dynamic virtual camera mapping method and system | |
CN102510563A (en) | Method and system for detecting malicious software of mobile Internet | |
CN103873456B (en) | The access control method and WiFi equipment of WiFi equipment | |
CN103905906A (en) | Smart-television-based data processing method and device | |
CN106339623A (en) | Login method and login device | |
CN1756170A (en) | Mobile phone and network data synchronizing method | |
US20050132015A1 (en) | System Providing Methodology for the Restoration of Original Media Quality in Messaging Environments | |
EP2107846A1 (en) | Method for establishing a communication from a mobile terminal in dual mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170811 |