Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of document order playback method and device, solve to file into
File when row additions and deletions in automatic identification file, to ensure that each file being locally stored can be by normal play.
A kind of document order playback method, comprising:
Obtain the storage information of current file;
Determine the file adjacent with the current file as adjacent file according to the storage information;
Play the adjacent file.
It is preferably, described to determine that the file adjacent with the current file is used as adjacent file according to the storage information,
Specifically:
File where determining the current file according to the storage information is pressed from both sides as current file;
The adjacent file adjacent with the current file is determined according to specified sequence.
Preferably, further includes:
If the current file folder in do not find the adjacent file, according to specified sequence it is described ought be above
The adjacent file is searched in the sub-folder of part folder.
Preferably, further includes:
If the current file folder in do not find the adjacent file, according to specified sequence it is described ought be above
The adjacent file is searched in the upper level folder of part folder.
A kind of document order playing device, comprising: storage data obtaining module, adjacent file determining module and adjacent file
Playing module;
The storage data obtaining module, for obtaining the storage information of current file;
The adjacent file determining module, for determining the file adjacent with the current file according to the storage information
As adjacent file;
The adjacent file playing module, for playing the adjacent file.
It preferably, include: that current file folder determining module and the adjacent file of the same level are true in the adjacent file determining module
Cover half block;
The current file presss from both sides determining module, for according to the file stored where information determines the current file
Folder is pressed from both sides as current file;
The adjacent file determining module of described the same level, for according to specified sequence determine it is adjacent with the current file described in
Adjacent file.
Preferably, in the adjacent file determining module further include: the adjacent file determining module of junior;
The adjacent file determining module of the junior, if for not finding the adjacent text in current file folder
Part then searches the adjacent file according to specified sequence in the sub-folder that the current file presss from both sides.
Preferably, in the adjacent file determining module further include: the adjacent file determining module of higher level;
The adjacent file determining module of the higher level, if for not finding the adjacent text in current file folder
Part then searches the adjacent file according to specified sequence in the upper level folder that the current file presss from both sides.
Compared with prior art, the invention has the following advantages that
In the present invention, player obtains the storage information of current file first, determines and works as according to storage information later
The adjacent adjoining file of preceding document finally plays determining adjoining file.By using above method, may be implemented to search one by one
All Files in file, after user carries out random media file additions and deletions, automatic sequence plays the file being locally stored, and keeps away
Exempt from the case where file newly increased in the prior art cannot obtain normal play generation, improves the use feeling of user.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.
Referring to Fig. 1, which is a kind of flow chart of document order playback method first embodiment provided by the invention.
In the present embodiment, comprising:
S101: the storage information of current file is obtained;
S102: determine the file adjacent with the current file as adjacent file according to the storage information;
S103: the adjacent file is played.
Since when playing out, user can carry out additions and deletions operation to the file in player.Therefore, in order to avoid out
Now increase newly file can not normal play the case where, when playing a file or after playing, player obtain first when
The specific storage information of preceding played file.Wherein, storage information in may include have current played file address information or
Address identification message etc..Such as store include in information address " d: music new c.mp3 ", or using such as file directory table
File head cluster information in FDT is recorded.
After obtaining current storage information, the adjoining file adjacent with current file is determined according to storage information.Wherein,
The adjoining file that current file is determined after being ranked up according to specified name order to file, can also be made by oneself with other
The mode of justice selects adjacent file, such as the media file that selection creation time is newer.In this way the case where deleting c.mp3
Under, c1.mp3 can be found by searching for adjacent file, the normal play to newly-increased file may be implemented.
After determining adjacent file, the player plays adjoining file is used.
In the present embodiment, player obtains the storage information of current file first, later according to storage information determine with
The adjacent adjoining file of current file finally plays determining adjoining file.By using above method, may be implemented to look into one by one
The All Files in file are looked for, after user carries out random media file additions and deletions, automatic sequence plays the file being locally stored,
The case where avoiding the file newly increased in the prior art that from cannot obtaining normal play generation, improves the use feeling of user.
Referring to fig. 2, which is a kind of flow chart of document order playback method second embodiment provided by the invention.
Step in the present embodiment in step S201 and S205 and a kind of document order playback method first embodiment of the present invention
Rapid S101 and S103 is identical, is no longer introduced herein.
In the present embodiment, described to determine the file adjacent with the current file as adjoining according to the storage information
File, specifically:
S202: the file where determining the current file according to the storage information is pressed from both sides as current file.
S203: the file in current file folder is ranked up according to specified sequence.
S204: the adjacent file adjacent with the current file is determined according to ranking results.
After getting current storage information, the file where determining current file according to storage information therein is made
For current file folder, as address be " d: music new c.mp3 ", then current file folder be " new ".
The file in current file folder is ranked up according still further to specified sequence, such as in new file, with file name
Positive sequence is carried out, then is put in order as a.mp3, b.mp3, c.mp3 and d.mp3.Due to being needed after playing current file
Subsequent file is played, therefore, it should select adjoining file of the adjacent file d.mp3 as current file c.mp3.
For the sequence of sequence, customized be configured can be carried out by user.It is such as carried out with file name positive or anti-
To sequence, with file creation time sequence etc..
In the present embodiment, it after obtaining the storage information of current file, is determined according to the storage information described current
File where file is pressed from both sides as current file, is ranked up later according to specified sequence to the file in current file folder,
The adjacent file adjacent with the current file, the adjoining file played with this are determined according to ranking results.Pass through
It using above method, may be implemented after user carries out random media file additions and deletions, the text being locally stored played with predetermined order
Part, the case where avoiding the file newly increased in the prior art that from cannot obtaining normal play generation, improves the use feeling of user.
Referring to Fig. 3, which is a kind of flow chart of document order playback method 3rd embodiment provided by the invention.
In the present embodiment in step S301-S304 and S307 and a kind of document order playback method first embodiment of the present invention
Step S201-S204 and S205 it is identical, be no longer introduced herein.
In the present embodiment, further includes:
S305: judge whether find the adjacent file in current file folder.
S306: if the adjacent file is not found in current file folder, according to specified sequence described
The adjacent file is searched in the sub-folder of current file folder.
In player played file backward, current file is the last one file after sorting in the same level file, then
To search less than the adjoining file after being arranged in current file to when searching after carrying out current file folder.
At this point it is possible to which whether detect in the same level file further includes lower folder.If there is lower folder, and
Playable file is stored in lower folder, then the adjacent text using the file in lower folder as current file
Part.
When inquiring lower folder, since multiple lower folders or junior's file may be found, then
Specified sequence can be used to search one by one, until finding adjacent file.
Such as: d: music new file in have a.mp3, b.mp3, c.mp3 and mm1 and mm2 junior file
Folder.The adjoining file of c.mp3 backward is required to look up when being now played to c.mp3.Since c.mp3 is the last one in the same level file
File is then searched in the same level file less than adjacent file.
At this point it is possible to lower folder mm1 and the mm2 file of new file be inquired, due to according to file name positive sequence
It is searched, therefore first looks for whether storing the file that can be played in mm1 file.If finding playable text
Part, then the adjoining file using this document as c.mp3 plays out.
If finding several files in the file of mm1, can also be arranged according to file name positive sequence, with
Adjoining file of the file as c.mp3 of arrangement up front.
In the present embodiment, judge whether find adjacent file in the same level file when determining adjacent file, if
The adjacent file, the then Ziwen pressed from both sides according to specified sequence in the current file are not found in current file folder
The adjacent file is searched in part folder.By using above method, the extensive lookups to adjacent file may be implemented, it is suitable to guarantee
The case where sequence plays the file being locally stored, and avoids the file newly increased in the prior art that from cannot obtaining normal play generation, mentions
The high use feeling of user.
Referring to fig. 4, which is a kind of flow chart of document order playback method fourth embodiment provided by the invention.
In the present embodiment in step S401-S404 and S407 and a kind of document order playback method first embodiment of the present invention
Step S201-S204 and S205 it is identical, be no longer introduced herein.
In the present embodiment, further includes:
S405: judge whether find the adjacent file in current file folder.
S406: if the adjacent file is not found in current file folder, according to specified sequence described
The adjacent file is searched in the upper level folder of current file folder.
In player played file forward, current file is first file after sorting in the same level file, then exists
It can be searched when searching current file folder less than file adjacent before being arranged in current file.
At this point it is possible to detect the upper level folder of the same level file.If there is upper level folder, and in upper file
Playable file is stored in folder, then the adjoining file using the file in upper level folder as current file.
When inquiring upper level folder, multiple upper level folders or upper file may be found, then it can be with
It is searched one by one using specified sequence (such as according to file name forward sequence), until finding adjacent file.
In the present embodiment, the downward lookup that can also will be introduced in a kind of document order playback method 3rd embodiment
Method and the upward lookup method of the present embodiment are used in combination.If searched to lower folder less than adjacent file, can again to
The upper level folder of current file folder searches adjacent file.
Or other files are found searching upper level folder, the junior pressed from both sides according still further to specified sequence to this document
File is searched, until finding adjacent file.
In the present embodiment, judge whether find adjacent file in the same level file when searching adjacent file, if
The adjacent file is not found in current file folder, then according to specified sequence in the upper level folder that current file presss from both sides
Search adjacent file.By using above method, the extensive lookups to adjacent file may be implemented, to guarantee played in order local
The file of storage, the case where avoiding the file newly increased in the prior art that from cannot obtaining normal play generation, improves user's
Use feeling.
Based on the method that a kind of above-mentioned document order plays, the present invention also provides the device that a kind of document order plays,
It is described in detail its component part combined with specific embodiments below.
Referring to Fig. 5, which is a kind of functional block diagram of document order playing device first embodiment provided by the invention.
In the present embodiment, comprising: storage data obtaining module 501, adjacent file determining module 502 and adjacent file are broadcast
Amplification module 503.
The storage data obtaining module 501, for obtaining the storage information of current file.
The adjacent file determining module 502, for adjacent with the current file according to storage information determination
File is as adjacent file.
The adjacent file playing module 503, for playing the adjacent file.
Since when playing out, user can carry out additions and deletions operation to the file in player.Therefore, in order to avoid out
Now increase newly file can not normal play the case where, when playing one file or after playing, storage data obtaining module 501 head
First obtain the specific storage information of current played file.It wherein, may include having current played file in storage information
Address information or address identification message etc..Such as store in information include address " d: music new c.mp3 ", or use
As the file head cluster information in file directory table FDT is recorded.
After obtaining current storage information, adjacent file determining module 502 is according to the determination of storage information and current file
Adjacent adjoining file.Wherein it is possible to determine the adjoining of current file after being ranked up according to specified name order to file
File can also select adjacent file, such as the media file that selection creation time is newer in a manner of customized.
After determining adjacent file, adjacent file playing module 503 plays the adjoining file.
In the present embodiment, storage data obtaining module obtains the storage information of current file first, abuts file later
Determining module determines the adjoining file adjacent with current file according to storage information, finally abuts file playing module and plays determination
Adjoining file.It by using apparatus above, may be implemented after user carries out random media file additions and deletions, automatic sequence plays
The file being locally stored, the case where avoiding the file newly increased in the prior art that from cannot obtaining normal play generation, improves use
The use feeling at family.
Referring to Fig. 6, which is a kind of functional block diagram of document order playing device second embodiment provided by the invention.
It in the present embodiment, include: current file folder determining module 601 and this in the adjacent file determining module 502
The adjacent file determining module 602 of grade.
The current file presss from both sides determining module 601, where determining the current file according to the storage information
File is pressed from both sides as current file.
The adjacent file determining module 602 of described the same level, for adjacent with the current file according to the determination of specified sequence
The adjacent file.
After storage data obtaining module 501 gets current storage information, current file presss from both sides 601 basis of determining module
Storage information therein determines that the file where current file is pressed from both sides as current file, as address for " d: music new
C.mp3 ", then current file folder is " new ".
The adjacent file determining module 602 of the same level is ranked up the file in current file folder according still further to specified sequence, such as
In new file, positive sequence is carried out with file name, then is put in order as a.mp3, b.mp3, c.mp3 and d.mp3.By
In needing to play subsequent file after playing current file, therefore, it should select adjacent file d.mp3 as current file
The adjoining file of c.mp3.
For the sequence of sequence, customized be configured can be carried out by user.It is such as carried out with file name positive or anti-
To sequence, with file creation time sequence etc..
In the present embodiment, after storage data obtaining module obtains the storage information of current file, current file folder is true
File where cover half root tuber determines the current file according to the storage information is pressed from both sides as current file, and the same level is adjacent later
File determining module is ranked up the file in current file folder according to specified sequence, is determined according to ranking results and is worked as with described
The adjacent adjacent file of preceding document, the adjoining file played with this.By using apparatus above, may be implemented with
After family carries out random media file additions and deletions, the file that is locally stored is played with predetermined order, avoids newly increasing in the prior art
File cannot obtain the generation of the case where normal play, improve the use feeling of user.
Referring to Fig. 7, which is a kind of functional block diagram of document order playing device 3rd embodiment provided by the invention.
In the present embodiment, in the adjacent file determining module 502 further include: the adjacent file determining module 701 of junior.
The adjacent file determining module 701 of the junior, if for not finding the neighbour in current file folder
File is connect, then searches the adjacent file in the sub-folder that the current file presss from both sides according to specified sequence.
In player played file backward, current file is the last one file after sorting in the same level file, then
To current file folder carry out after to search when can search less than the adjoining file after being arranged in current file.
At this point it is possible to which whether detect in the same level file further includes lower folder.If there is lower folder, and
Playable file is stored in lower folder, then the adjacent text using the file in lower folder as current file
Part.
When inquiring lower folder, since multiple lower folders or junior's file may be found, then
Specified sequence (such as file name positive sequence) can be used to search one by one, until finding adjacent file.
Such as: d: music new file in have a.mp3, b.mp3, c.mp3 and mm1 and mm2 junior file
Folder.The adjoining file of c.mp3 backward is required to look up when being now played to c.mp3.Since c.mp3 is the last one in the same level file
File is then searched in the same level file less than adjacent file.
At this point it is possible to lower folder mm1 and the mm2 file of new file be inquired, due to according to file name positive sequence
It is searched, therefore first looks for whether storing the file that can be played in mm1 file.If finding playable text
Part, then the adjoining file using this document as c.mp3 plays out.
If finding several files in the file of mm1, can also be arranged according to file name positive sequence, with
Adjoining file of the file as c.mp3 of arrangement up front.
In the present embodiment, judge whether find adjacent file in the same level file when determining adjacent file, if
The adjacent file is not found in current file folder, then the adjacent file determining module of junior exists according to specified sequence
The adjacent file is searched in the sub-folder of the current file folder.By using apparatus above, may be implemented to adjacent text
The extensive lookups of part avoid the file newly increased in the prior art that from cannot obtaining to guarantee file that played in order is locally stored
The case where normal play, occurs, and improves the use feeling of user.
Referring to Fig. 8, which is a kind of functional block diagram of document order playing device fourth embodiment provided by the invention.
In the present embodiment, in the adjacent file determining module 502 further include: the adjacent file determining module 801 of higher level.
The adjacent file determining module 801 of the higher level, if for not finding the neighbour in current file folder
File is connect, then searches the adjacent file in the upper level folder that the current file presss from both sides according to specified sequence.
In player played file forward, current file is first file after sorting in the same level file, then exists
When searching current file folder and searches less than file adjacent before being arranged in current file.
At this point, the adjacent file determining module 801 of higher level can detecte the upper level folder of the same level file.If there is upper
Grade file, and playable file is stored in upper level folder, then using the file in upper level folder as currently
The adjoining file of file.
When inquiring upper level folder, multiple upper level folders or upper file may be found, then it can be with
It is searched one by one using specified sequence (such as according to file name forward sequence), until finding adjacent file.
In the present embodiment, when searching adjacent file the adjacent file determining module of higher level judge the same level file whether
Adjacent file is found, if the adjacent file is not found in current file folder, according to specified sequence current
Adjacent file is searched in the upper level folder of file.By using apparatus above, may be implemented to look into the extension of adjacent file
It looks for, to guarantee file that played in order is locally stored, avoids the file newly increased in the prior art that from cannot obtaining normal play
It happens, improves the use feeling of user.
The above described is only a preferred embodiment of the present invention, being not intended to limit the present invention in any form.Though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention.It is any to be familiar with those skilled in the art
Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention
Technical solution makes many possible changes and modifications or equivalent example modified to equivalent change.Therefore, it is all without departing from
The content of technical solution of the present invention, according to the technical essence of the invention any simple modification made to the above embodiment, equivalent
Variation and modification, all of which are still within the scope of protection of the technical scheme of the invention.