CN105956055A - Local music file filtering method and apparatus - Google Patents

Local music file filtering method and apparatus Download PDF

Info

Publication number
CN105956055A
CN105956055A CN201610268418.XA CN201610268418A CN105956055A CN 105956055 A CN105956055 A CN 105956055A CN 201610268418 A CN201610268418 A CN 201610268418A CN 105956055 A CN105956055 A CN 105956055A
Authority
CN
China
Prior art keywords
file
music
type
filter
contents attribute
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.)
Pending
Application number
CN201610268418.XA
Other languages
Chinese (zh)
Inventor
于兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lemobile Information Technology (Beijing) Co Ltd
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610268418.XA priority Critical patent/CN105956055A/en
Publication of CN105956055A publication Critical patent/CN105956055A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data

Abstract

Embodiments of the invention provide a local music file filtering method and apparatus. The method comprises the steps of obtaining content attributes of local music files; filtering out the file with the content attribute being a non-music type in a preset filtering mode according to the obtained content attributes; and hiding the filtered file of the non-music type. According to the embodiments of the method and apparatus, the file of the non-music type in the local music files can be filtered, so that the user experience is improved.

Description

A kind of music local file filter method and device
Technical field
The present embodiments relate to application program technical field, particularly relate to a kind of music local file Filter method and device.
Background technology
Intelligent terminal is a class embedded computer system equipment, therefore its architecture frame with Embedded system architecture is consistent;Meanwhile, intelligent terminal is as the one of embedded system Individual application direction, its application scenarios sets more clear and definite, and therefore, its architecture ratio is the most embedding Definitely, granularity is thinner for embedded system structure, and has some self feature.Nowadays intelligence After energy terminal is along with being mounted with different types of application program, becomes and possess corresponding function Game application in touch screen terminal, such as mobile touch screen terminal, text application, music application Deng.
Wherein along with high-tech development, the life of people is more and more rich and varied, real the mankind Now can music be carried with by the side of time, almost under the application of each intelligent terminal's user Carrying the existence that all can't do without the application of a music in ranks, each one has each one do not thank you for your congratulation Good, each the functional requirement of application is also not quite similar, the most omnifarious music should With in the visual field occurring in people, make us too plenty for the eye to take it all in.
The feature of music application is exactly to want whenever and wherever possible to listen just to listen, present all kinds of music Broadcasting application all focuses on tonequality, interface, Qu Ku, high in the clouds etc. major function and spends the big time. From content, music applies leading high tone quality music, most with 320kbps tonequality Lossless music ensure tonequality, make every effort to accomplish CD quality music;Development functionally, more Obvious to all, music application just from the past simple listen to music towards more diversification Function explore.
But, usual user music apply locally stored in, the most only music, also There is other kinds of file, all put together, can make to search music and become less to facilitate, because of This there is a need to improve the storage mode of existing music local file.
Summary of the invention
The embodiment of the present invention provides a kind of music local file filter method and device, it is possible to music Local file carries out file filter, thus improves Consumer's Experience.
A kind of music local file filter method that the embodiment of the present invention provides, including: obtain music The contents attribute of local file;According to the contents attribute obtained, with the filter type pre-set, Filter out the file that contents attribute is unmusical type;The file of the unmusical type that will filter out enters Row is hidden.
Preferably, described method also includes: pre-set filter type, and described filter type is base Contents attribute in file filters.
Preferably, described contents attribute based on file filters, including: based on contents attribute Middle file type filters;Or, filter based on unfolding mode in contents attribute;Or, Filter based on content provider in contents attribute.
Preferably, described method also includes: whether judge the file type in the contents attribute obtained Belong to the music file type pre-set;Or, it is judged that the side of opening in the contents attribute of acquisition Whether formula belongs to the music file unfolding mode pre-set;Or, it is judged that judge the content obtained Whether the content provider in attribute belongs to the music file contents supplier pre-set.
Preferably, described in filter out the file that contents attribute is unmusical type, including: filter out It is not belonging to the music local file of music file type that the pre-sets literary composition as unmusical type Part;Or, filter out the music local file of music file unfolding mode being not belonging to pre-set File as unmusical type;Or, filter out the music file contents being not belonging to pre-set The music local file of supplier is as the file of unmusical type.
Preferably, the file of the unmusical type that will filter out described in also includes after being hidden: Hiding of the file of the unmusical type that cancellation filters out.
A kind of music local file defecator that the embodiment of the present invention provides, including: first processes Module, for obtaining the contents attribute of music local file;Second processing module, for according to obtaining The contents attribute taken, with the filter type pre-set, filtering out contents attribute is unmusical type File;3rd processing module, the file of the unmusical type for will filter out is hidden.
Preferably, described device also includes: arrange module, is used for pre-setting filter type, institute Stating filter type is that contents attribute based on file filters, particularly as follows: the music pre-set File type, filters based on file type in contents attribute;Or, the music pre-set Modes to open a file, filters based on unfolding mode in contents attribute;Or, pre-set Music file contents supplier, filters based on content provider in contents attribute.
Preferably, described second processing module, specifically for: judge in the contents attribute obtained Whether file type belongs to the music file type pre-set, and filters out and is not belonging to pre-set The music local file of music file type is as the file of unmusical type;Or, it is judged that obtain Contents attribute in unfolding mode whether belong to the music file unfolding mode pre-set, filter Go out the music local file of music file unfolding mode being not belonging to pre-set as unmusical type File;Or, it is judged that judge whether the content provider in the contents attribute obtained belongs in advance The music file contents supplier arranged, filters out the music file contents being not belonging to pre-set and carries The music local file of donor is as the file of unmusical type.
Preferably, described 3rd processing module, it is additionally operable to: the unmusical type that cancellation filters out Hiding of file.
A kind of music local file filter method of embodiment of the present invention offer and device, by obtaining The contents attribute of music local file, and according to the contents attribute obtained and the filtration side pre-set Formula, filters out the file that contents attribute is unmusical type, and the unmusical type that will filter out File is hidden, thus only to user's music file in music folder, improves user's body Test.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will The accompanying drawing used required in embodiment or description of the prior art is introduced the most simply, aobvious and easy Insight, the accompanying drawing in describing below is some embodiments of the present invention, for ordinary skill From the point of view of personnel, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings His accompanying drawing.
The flow process signal of a kind of music local file filter method that Fig. 1 provides for the embodiment of the present invention Figure;
The detailed process of a kind of music local file filter method that Fig. 2 provides for the embodiment of the present invention Schematic diagram;
The structural representation of a kind of music local file defecator that Fig. 3 provides for the embodiment of the present invention Figure;
Fig. 4 (a) is to the application examples schematic diagram that 4 (c) is Fig. 2.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with Accompanying drawing in the embodiment of the present invention, carries out clear, complete to the technical scheme in the embodiment of the present invention Ground describes, it is clear that described embodiment is a part of embodiment of the present invention rather than whole Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Intelligent terminal, such as intelligent touch screen terminal, be the most especially set to mobile touch screen terminal, as Ipad, mobile phone etc., be conventional operating system in aforesaid mobile touch screen terminal, as Andriod, Ios etc., specifically do not limit herein.
Embodiment one
The flow process signal of a kind of music local file filter method that Fig. 1 provides for the embodiment of the present invention Figure, refers to Fig. 1, and the method includes:
101, the contents attribute of music local file is obtained.
102, according to the contents attribute obtained, with the filter type pre-set, filter out content and belong to Property is the file of unmusical type.
The file of the unmusical type that 103, will filter out is hidden.
Embodiment two
The detailed process of a kind of music local file filter method that Fig. 2 provides for the embodiment of the present invention Schematic diagram, refers to Fig. 2, and the method includes:
201, filter type is pre-set.
Contents attribute is some illustrative information, can be used to help you to search and arrange the document, interior Hold attribute to be not included in the actual content of file, and there is provided the information of relevant document, such as File name, file type, unfolding mode, version, amendment date, author, classification etc. belong to Property information.
In this step, filter type is that contents attribute based on file filters.
Preferably, can filter based on file type in contents attribute, it is judged that file type is The no music file type pre-set that belongs to, the most common mp3 form, wma form, wav Form etc..
Furthermore it is also possible to filter based on unfolding mode in contents attribute, it is judged that unfolding mode is The no music file unfolding mode pre-set that belongs to, the most common media player or certain The music player etc. of a little brands.
Further, it is also possible to filter based on content provider in contents attribute, it is judged that content provides Whether person belongs to the music file contents supplier pre-set, and specifically, can be used each by bar Class API (Application Programming Interface, application programming interface) obtains this article Content provider's data of part.
Certainly also have other filter type, do not limit at this.
202, the contents attribute of music local file is obtained.
In this step, with the contents attribute that Android obtains music file by MediaStore it is Example, android system provides MediaScanner, and MediaProvider, MediaStore etc. connect Mouthful, and provide a set of database table, it is supplied to use by the way of Content Provider Family, system will scan the media file on SD card and mobile phone EMS memory automatically, such as audio, video, Pictures etc., are put into corresponding information in the database table defined.
If needing to inquire about the music local file on SD card, can pass through:
Cursor query(Uri uri,String[] projection,String selection,String[] selectionArgs,String sortOrder);
Wherein, Uri: indicate database-name the to be inquired about title plus table, from MediaStore In we can find the parameter of corresponding information, specifically refer to develop document;
Projection: which row in given query database table, will include phase in the vernier of return The information answered.Null then returns all information;
Selection: given query condition;
SelectionArgs: have in parameter selection?This symbol is, here can be with reality Value replaces this question mark.If selection does not has this?If, then this String array Can be null;
SortOrder: putting in order of given query result.
Above simply as a example by Android, do not limit at this.
203, according to the contents attribute obtained and the filter type pre-set, it is judged that music this locality literary composition Whether part belongs to unmusical type file, if it is, carry out step 204;If it does not, carry out step 205。
In this step, it is judged that whether the file type in the contents attribute of acquisition belongs to pre-sets Music file type;
Or, it is judged that whether the unfolding mode in the contents attribute of acquisition belongs to the music pre-set Modes to open a file;
Or judge whether the content provider in the contents attribute obtained belongs to pre-set Music file contents supplier.
Certainly also have other judgment mode, do not limit at this.
204, filter out unmusical type file, and the file of the unmusical type that will filter out is carried out Hide.
In this step, according to the file type in contents attribute, filter out and be not belonging to pre-set The music local file of music file type;
Or, according to the unfolding mode in contents attribute, filter out the music being not belonging to pre-set The music local file of modes to open a file;
Or, according to the content provider in contents attribute, filter out the sound being not belonging to pre-set The music local file of music file content provider.
Certainly also have other judgment mode, do not limit at this.
The file of the unmusical type that will filter out is hidden, specifically, by showing that music is originally The file at file place, ground, selects the file of the unmusical type filtered out, carries out file hiding Operation.
Further, follow-up can also operate by cancelling file hiding, weight according to user's request Newly show file.
205, the file of music type is shown.
The music local file defecator mentioned in the present embodiment can be various intelligent terminal.
Embodiment three
The structural representation of a kind of music local file defecator that Fig. 3 provides for the embodiment of the present invention Figure.As it is shown on figure 3, this device includes:
First processing module, for obtaining the contents attribute of music local file;
Second processing module, for according to the contents attribute obtained, with the filter type pre-set, Filter out the file that contents attribute is unmusical type;
3rd processing module, the file of the unmusical type for will filter out is hidden.
Additionally, described device also includes:
Arranging module, be used for pre-setting filter type, described filter type is based in file Hold attribute to filter, particularly as follows:
The music file type pre-set, filters based on file type in contents attribute;Or Person,
The music file unfolding mode pre-set, filters based on unfolding mode in contents attribute; Or,
The music file contents supplier pre-set, is carried out based on content provider in contents attribute Filter.
Described second processing module, specifically for:
Judge whether the file type in the contents attribute obtained belongs to the music file class pre-set Type, filters out the music local file of music file type being not belonging to pre-set as unmusical The file of type;Or,
Judge whether the unfolding mode in the contents attribute obtained belongs to the music file pre-set and beat Evolution formula, filters out the music local file of music file unfolding mode being not belonging to pre-set and makees File for unmusical type;Or,
Judge whether the content provider in the contents attribute obtained belongs to the music pre-set File content supplier, filters out the music of music file contents supplier being not belonging to pre-set Local file is as the file of unmusical type.
Described 3rd processing module, is additionally operable to: cancel the hidden of the file of unmusical type that filters out Hide.
Embodiment four
Fig. 4 (a), to the application examples schematic diagram that 4 (c) is Fig. 2, carries out music on mobile terminals The application examples that local file filters is as follows:
As shown in Fig. 4 (a), by clicking or double-click or force touch, music can be entered local File, selects file filter function;
As shown in Fig. 4 (b), filter out unmusical type file, and the unmusical class that will filter out The file of type is hidden;
As shown in Fig. 4 (c), by file filter, only show the file of music type.
A kind of music local file filter method of embodiment of the present invention offer and device, by obtaining The contents attribute of music local file, and according to the contents attribute obtained and the filtration side pre-set Formula, filters out the file that contents attribute is unmusical type, and the unmusical type that will filter out File is hidden, thus only to user's music file in music folder, improves user's body Test.
Each embodiment in this specification all uses the mode gone forward one by one to describe, between each embodiment Identical similar part sees mutually, and what each embodiment stressed is to implement with other The difference of example.For system embodiment, owing to it is substantially similar to method in fact Executing example, so describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as: Personal computer, server computer, handheld device or portable set, laptop device, many Processor system, system based on microprocessor, set top box, programmable consumer-elcetronics devices, Network PC, minicomputer, mainframe computer, include the distributed of any of the above system or equipment Computing environment etc..
It is last it is noted that the description of the above various embodiments to the present invention is with the mesh described Be supplied to those skilled in the art.It is not intended to exhaustive or is not intended to limit the present invention It is formed on single disclosed embodiment.As it has been described above, the various replacements of the present invention and change are for upper Will be apparent from for stating technology one of ordinary skill in the art.Therefore, although the most specifically beg for Discuss the embodiment of some alternatives, but other embodiment will be apparent from, or this Skilled person relatively easily draws.It is contemplated that be included in this present invention discussed All replacements, amendment and change, and fall in the spirit and scope of above-mentioned application other Embodiment.

Claims (10)

1. a music local file filter method, it is characterised in that including:
Obtain the contents attribute of music local file;
According to the contents attribute obtained, with the filter type pre-set, filtering out contents attribute is non-sound The file of happy type;
The file of the unmusical type that will filter out is hidden.
Music local file filter method the most according to claim 1, it is characterised in that described side Method also includes:
Pre-setting filter type, described filter type is that contents attribute based on file filters.
Music local file filter method the most according to claim 2, it is characterised in that described base Contents attribute in file filters, including:
Filter based on file type in contents attribute;Or,
Filter based on unfolding mode in contents attribute;Or,
Filter based on content provider in contents attribute.
Music local file filter method the most according to claim 3, it is characterised in that described side Method also includes:
Judge whether the file type in the contents attribute obtained belongs to the music file type pre-set; Or,
Judge whether the unfolding mode in the contents attribute obtained belongs to the music file side of opening pre-set Formula;Or,
Judge whether the content provider in the contents attribute obtained belongs to the music file pre-set Content provider.
Music local file filter method the most according to claim 4, it is characterised in that described mistake Leach the file that contents attribute is unmusical type, including:
Filter out the music local file of music file type being not belonging to pre-set as unmusical type File;Or,
Filter out the music local file of music file unfolding mode being not belonging to pre-set as unmusical The file of type;Or,
Filter out the music local file of music file contents supplier being not belonging to pre-set as non-sound The file of happy type.
Music local file filter method the most according to claim 5, it is characterised in that described general The file of the unmusical type filtered out also includes after being hidden:
Hiding of the file of the unmusical type that cancellation filters out.
7. a music local file defecator, it is characterised in that including:
First processing module, for obtaining the contents attribute of music local file;
Second processing module, for according to the contents attribute obtained, with the filter type pre-set, mistake Leach the file that contents attribute is unmusical type;
3rd processing module, the file of the unmusical type for will filter out is hidden.
Music local file defecator the most according to claim 7, it is characterised in that described dress Put and also include:
Arranging module, be used for pre-setting filter type, described filter type is that content based on file belongs to Property filters, particularly as follows:
The music file type pre-set, filters based on file type in contents attribute;Or,
The music file unfolding mode pre-set, filters based on unfolding mode in contents attribute;Or Person,
The music file contents supplier pre-set, filters based on content provider in contents attribute.
Music local file defecator the most according to claim 8, it is characterised in that described Two processing modules, specifically for:
Judge whether the file type in the contents attribute obtained belongs to the music file type pre-set, Filter out the literary composition being not belonging to the music local file of music file type that pre-sets as unmusical type Part;Or,
Judge whether the unfolding mode in the contents attribute obtained belongs to the music file side of opening pre-set Formula, filters out the music local file of music file unfolding mode being not belonging to pre-set as unmusical The file of type;Or,
Judge whether the content provider in the contents attribute obtained belongs to the music file pre-set Content provider, filters out the music local file of music file contents supplier being not belonging to pre-set File as unmusical type.
Music local file defecator the most according to claim 9, it is characterised in that described 3rd processing module, is additionally operable to:
Hiding of the file of the unmusical type that cancellation filters out.
CN201610268418.XA 2016-04-27 2016-04-27 Local music file filtering method and apparatus Pending CN105956055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610268418.XA CN105956055A (en) 2016-04-27 2016-04-27 Local music file filtering method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610268418.XA CN105956055A (en) 2016-04-27 2016-04-27 Local music file filtering method and apparatus

Publications (1)

Publication Number Publication Date
CN105956055A true CN105956055A (en) 2016-09-21

Family

ID=56916653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610268418.XA Pending CN105956055A (en) 2016-04-27 2016-04-27 Local music file filtering method and apparatus

Country Status (1)

Country Link
CN (1) CN105956055A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163238A (en) * 2011-05-09 2011-08-24 奇智软件(北京)有限公司 Method and system for file management based on type
US20140032575A1 (en) * 2012-07-30 2014-01-30 Box, Inc. System and method for advanced search and filtering mechanisms for enterprise administrators in a cloud-based environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163238A (en) * 2011-05-09 2011-08-24 奇智软件(北京)有限公司 Method and system for file management based on type
US20140032575A1 (en) * 2012-07-30 2014-01-30 Box, Inc. System and method for advanced search and filtering mechanisms for enterprise administrators in a cloud-based environment

Similar Documents

Publication Publication Date Title
CN102999551B (en) The automatization of data entity divides scope
CN105930429A (en) Music recommendation method and apparatus
US20090319467A1 (en) Simplifying the creation of user-defined custom elements for use in a graphical modeling application
CN108292231A (en) It generates and applies from data
WO2016082598A1 (en) Method, apparatus, and device for rapidly searching for application program
CN107085574A (en) A kind of page data processing method and server
WO2014070037A1 (en) Automated report generation method
CN104067210A (en) Menu configuration and system of smart device
CN109408181B (en) Equipment skill display method and device
CN104281656B (en) The method and apparatus of label information are added in the application
CN104572125B (en) Method for drafting, storage method, drawing apparatus and the storage device of entity relationship diagram
KR20170080411A (en) Data managing and providing method and system for the same
CN104267951A (en) Method and device for achieving user-defined graphical user interface
CN108664386A (en) A kind of automated testing method and platform
Roy Chowdhury et al. Complementary assistance mechanisms for end user mashup composition
CN105868226A (en) Application software intelligent classification method, terminal and server
CN105335466A (en) Audio data retrieval method and apparatus
CN104484093B (en) The arrangement display methods and device of graphical interfaces
CN107404508A (en) Access method, client and the electronic equipment of customer terminal webpage
CN105912688A (en) Music album information recommendation method and apparatus
US10282393B2 (en) Content-type-aware web pages
CN110333859B (en) Page creation method, page creation device, electronic device and computer readable storage medium
CN105956055A (en) Local music file filtering method and apparatus
CN103838873B (en) The method and system that a kind of application matching owner's information is searched for automatically
CN105893555A (en) Display method and device of browser interface and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160921

WD01 Invention patent application deemed withdrawn after publication