A kind of search player method of the video disc based on Android platform and systemTechnical field
The present invention relates to the storage file search and broadcasting field of video disc, be specifically related to a kind of search player method of the video disc based on Android platform and system, be particularly useful for car entertainment infosystem.
Background technology
Along with the raising of people's living standard, communications are more and more flourishing, and automobile has become people's requisite vehicles of going on a journey.People are to safe except meeting, the convenient trip of the requirement of automobile, also more and more higher to the requirement of car entertainment aspect.At present, the operating platform of vehicle-mounted information and entertainment system generally adopts the form of structure or object to deposit for the table data in video disc, as the winCE operating platform of car entertainment infosystem adopts the form of structure or object, deposits the table data in video disc.Operation in user level can only be selected play list according to display list, while wanting to play a certain first song in video disc as user, can only find the song of wanting broadcasting by browse displays list, and select to play, when song number in display list is more, sometimes user need to spend the longer time to go browse displays list, therefore the operation on client layer exists inconvenience greatly, user experience is not high.If when user wants to play certain song in driving procedure, need to disperse more notice and time in display list, to find the song of wanting broadcasting, make driver can not concentrate one's energy to drive, easily there is traffic hazard, brought serious potential safety hazard.
In addition, the operating platform of vehicle-mounted information and entertainment system generally adopts the form of structure or object to deposit for the table data in video disc, and development difficulty is large, especially, in the situation that video disc exists multistage file structure, has further strengthened development difficulty.Existing vehicle-mounted information and entertainment system is to the song playing sequence of video disc for to carry out played in order according to display list, and playing sequence is single, and user experience is not high.
Summary of the invention
The object of the invention is to overcome shortcomings and deficiencies of the prior art, a kind of search of the video disc based on Android platform player method is provided, can realize keyword search to the file in video disc, and play.
Object of the present invention is achieved through the following technical solutions: a kind of search of the video disc based on Android platform player method, it is characterized in that, and comprise the following steps:
Set up in advance a database, and in database, set up a database table;
Decoded mpeg module video disc list information is stored in database table;
By the video disc list information of keyword search mode search database table, and Search Results is carried out to output display;
According to keyword search result, select played file;
Obtain the simple ID of played file, and play file corresponding with obtained simple ID in video disc.
Further, described, before being stored to the step in database table, decoded mpeg module video disc list information also comprises the step that mpeg module obtains video disc list information and decodes.
Further, described mpeg module obtain video disc list information and the step of decoding before also comprise the step that sends list request information to mpeg module.
Further, described video disc search player method also comprises in dynamic load mode and obtains the data in database table, the step that the row-column list of going forward side by side shows.
Further, described video disc list information comprises simple ID, father ID, medium type, file name and the song type of each file.
Further, described video disc list information also comprises file identification.
Further, the step of the described video disc list information by keyword search mode search database table is specially by corresponding file name in the video disc list information of keyword search mode search database table.
Further, the described simple ID that obtains played file, and the step of playing file corresponding with obtained simple ID in video disc is specially the simple ID that obtains selection played file, and its simple ID is sent to mpeg module, mpeg module obtains the content of corresponding document in video disc and is forwarded to output module according to received simple ID and plays.
Further, described video disc search player method also comprises the step that playing sequence is set.
Further, described file comprises song and file.
Another object of the present invention is to provide a kind of search of the video disc based on Android platform Play System, it is characterized in that, comprising:
Mpeg module, obtain the video disc list information in the first memory module of video disc, and decode, decoded video disc list information is sent to microprocessor, according to received simple ID, obtain in the first memory module corresponding file content, and transfer to output unit and play;
The first memory module, the file content of storage video disc list information and video disc;
Microprocessor, receives the decoded video disc list information of mpeg module, and is stored in database table; According to the video disc list information in keyword search information search database table, and Search Results is transferred to output module; Obtain the simple ID that selects played file, and transfer to mpeg module;
The second memory module, sets up and has a database in advance, and sets up and have one for storing the database table of video disc list information in database;
Load module, the keyword search information that user is inputted, selection played file communication are to microprocessor;
Output module, carries out output display by keyword search result, will receive the file content of mpeg module, and plays.
Further, described output module comprises voice-output unit and touch display screen, and described load module and output module share same touch display screen.
The present invention comprises following advantage and beneficial effect compared to existing technology:
(1) by setting up in advance a database, and in database, set up a database table, and decoded mpeg module video disc list information is stored in database table, can be by the video disc list information of keyword search mode search database table, and Search Results is carried out to output display, user can select played file according to keyword search result, obtain the simple ID of played file, and play file corresponding with obtained simple ID in video disc, file in video disc is realized to keyword search, and play, with in prior art, by browse displays list, select compared with the method for played file, selection played file method of the present invention is simpler, fast, improve user experience, greatly reduce the potential safety hazard that user selects played file to exist when driving simultaneously.
(2) in dynamic load mode, obtain the data in database table, the row-column list of going forward side by side demonstration, list display speed is fast, reduces user's stand-by period, and user experience is good.
(3) user can arrange corresponding playing sequence according to personal like, and dirigibility is high, and user experience is good.
Accompanying drawing explanation
Fig. 1 is the search of the video disc based on Android platform Play System in embodiment;
Fig. 2 is the process flow diagram of the search of the video disc based on Android platform player method in embodiment.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Embodiment
As shown in Figure 1, a kind of search of the video disc based on Android platform Play System, comprise: microprocessor and the output module being connected with microprocessor respectively, load module, the second memory module and video disc, described output module comprises voice-output unit and touch display screen, and described load module and output module share same touch display screen.The first memory module that described video disc comprises mpeg module and is connected with mpeg module, described mpeg module is connected with microprocessor.
Described mpeg module is used for the video disc list information of the first memory module of obtaining video disc, and decode, decoded video disc list information is sent to microprocessor, according to received simple ID, obtain in the first memory module corresponding file content, and transfer to output unit and play.
Described the first memory module is for storing the file content of video disc list information and video disc.
Described microprocessor is used for receiving the decoded video disc list information of mpeg module, and is stored in database table; According to the video disc list information in keyword search information search database table, and Search Results is transferred to output module; Obtain the simple ID that selects played file, and transfer to mpeg module.
Described the second memory module has been set up a database in advance, and sets up and have one for storing the database table of video disc list information in database.
Described load module is used for the keyword search information of user's input, selects played file communication to microprocessor.
Described output module, for keyword search result is carried out to output display, will receive the file content of mpeg module, and plays.
As shown in Figure 2, a kind of video disc search broadcasting method based on above-mentioned video disc search Play System, its implementation procedure is as follows:
S1 is at the second memory module building database in advance of said system, and in database, sets up corresponding database table.Be specially and in the corresponding space of memory module, set up the buffer memory of a database file using db as suffix as data, the database that android carries as adopted helps class " SqliteOpenHelper " to create the database of a media.db by name, then according to relevant attribute, set up corresponding database table, the foundation of database table adopts the list mode of setting up of Android platform standard.Described database table comprises following attribute: the simple ID(-id that video disc list information is corresponding), father ID(parentid), medium type (types), file name (filename), song type (clips) and file identification (isfile), described file attribute file identification is for judging that corresponding file is song or file, if file can launch.Described file comprises song and file.Described song type (clips) comprises audio file, picture file and video file.The song type of described medium type for comprising under log file folder.
S2 microprocessor detects after video disc works on power and sends list request information to mpeg module.
S3MPEG module is obtained the list information of video disc from the first memory module of video disc, and will after obtain list information decoding, be sent to microprocessor.
S4 microprocessor is stored to decoded video disc list information in the database table of setting up in advance.
S5 microprocessor adopts dynamic load mode to load and shows the data in database table.Wherein, in during display list, only song title and Folder Name are shown.
S6 is when user wants to play a certain first song, and user obtains corresponding song title by keyword search mode.Be specially user and pass through load module, as touch display screen, the character of input keyword search or phrase are to microprocessor, microprocessor is according to qualified All Files in the character of user input or phrase searching database table and show with tabular form, and user selects concrete play list according to shown list.As, user inputs " sea " word by touch display screen and searches for, microprocessor All Files folder and song that title comprises " sea " word in search database table, and file and the song of searched comprising " sea " word are shown with tabular form.
S7 microprocessor is sent to mpeg module by the simple ID of selected play list.Because each song or file have a unique simple ID and its upper level ID, therefore just can obtain corresponding simple ID and father ID as long as obtain file name (file name is song title or Folder Name), just be not subject to the impact of level, reduce the complexity realizing.
S8MPEG module is obtained the content of corresponding song in video disc and is forwarded to playing module according to received simple ID and plays.In addition, user can arrange corresponding playing sequence by touch display screen according to personal like, and dirigibility is high, and user experience is good.
Above-described embodiment is preferably embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.