Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of music store method and device of mobile unit, and user also can not listened to the music in the situation that there is no external unit.
For solving the problems of the technologies described above, the invention provides a kind of music store method of mobile unit, comprising:
The frequency that detects user's playing music on mobile unit, described music file is stored on the external unit that is coupled to described mobile unit;
If the broadcasting time of described music file within the default time period reaches preset times, this music file is copied to the local storage of described mobile unit from described external unit.
Alternatively, if the residual memory space of described local storage is not enough, delete the music file of preserving the earliest on described local storage, to store the music file of new interpolation.
Alternatively, described method also comprises: when user plays described music file on described mobile unit, the phonetic order being sent by user triggers, and the music file of current broadcasting is copied to the local storage of described mobile unit.
Alternatively, after described phonetic order triggers, the music file of current broadcasting is copied to described local storage before, described method also comprises:
To user, present and confirm prompting;
Receive after user's confirmation instruction, the music file of described current broadcasting is copied to described local storage.
Alternatively, described method also comprises: according to user's manual operation instruction, described music file is copied to the local storage of described mobile unit.
The present invention also provides a kind of music save set of mobile unit, comprising:
Frequency detection module, the frequency of detection user playing music on mobile unit, described music file is stored on the external unit that is coupled to described mobile unit;
Automatically preserve module, if the broadcasting time of described music file within the default time period reaches preset times, this music file is copied to the local storage of described mobile unit from described external unit.
Alternatively, described device also comprises: storage space management module, if the residual memory space of described local storage is not enough, delete the music file of preserving the earliest on described local storage, to store the music file of new interpolation.
Alternatively, described device also comprises: module preserved in voice, and when user plays described music file on described mobile unit, the phonetic order being sent by user triggers, and the music file of current broadcasting is copied to the local storage of described mobile unit.
Alternatively, described device also comprises: module is confirmed in prompting, by described phonetic order, is triggered, and to user, presents and confirms prompting, after the confirmation instruction that receives user, control described voice preservation module the music file of described current broadcasting is copied to described local storage.
Alternatively, described device also comprises: manually preserve module, according to user's manual operation instruction, described music file is copied to the local storage of described mobile unit.
Compared with prior art, the present invention has the following advantages:
In the music store method of the mobile unit of the embodiment of the present invention and device, the frequency of user being play to a certain music file detects, when the broadcasting time within the default time period reaches preset times, this music file is copied to the local storage of mobile unit from external unit, thereby when externally equipment is removed, user still can listen to the music.In addition, user can also by phonetic order or manual operation instruction by the music file unloading on external unit to the local storage of mobile unit.
Embodiment
Below in conjunction with specific embodiments and the drawings, the invention will be further described, but should not limit the scope of the invention with this.
With reference to figure 1, the music store method of the mobile unit of the present embodiment comprises:
Step S11, the frequency of detection user playing music on mobile unit, described music file is stored on the external unit that is coupled to described mobile unit;
Step S12, if the broadcasting time of described music file within the default time period reaches preset times, copies to this music file the local storage of described mobile unit from described external unit.
Wherein, external unit can be to be coupled in the various kinds of equipment with memory function on mobile unit, such as USB flash disk, mobile phone, SD card etc. by the mode such as wired, wireless.The local storage of mobile unit can be to be integrated in the storeies such as hard disk in mobile unit, flash memory, or the part storage space in above-mentioned storer.
Further, when user plays the music file being stored on external unit on mobile unit, broadcasting time to each music file is added up, if within the default time period, (in other words the broadcasting time of a certain music file reaches, be more than or equal to) preset times, this music file is copied to the local storage of mobile unit from external unit.
Except according to playing the automatic unloading of frequency, can also carry out unloading according to user's phonetic order.For example, when user plays a certain music file on external unit on mobile unit, if user has sent phonetic order, by this phonetic order, triggered, this music file of current broadcasting is copied on the local storage of mobile unit.Wherein, phonetic order can be explicit or implicit expression, and explicit phonetic order refers to and comprised the clear and definite phonetic order that copies indication, for example, " preserve this music ", " adding my favorite to " etc.; The phonetic order of implicit expression refers to that user has represented the preference of current music file but do not provided the clear and definite indication that copies in this phonetic order, for example " I like this first song ", " this first song is pretty good " etc.
Before copying based on phonetic order, can also first to user, present and confirm prompting, for example eject prompting frame and " whether be saved in my favorite "; After the confirmation instruction that receives user, for example user clicks " confirmation " button, the music file of current broadcasting is copied and dumped to local storage from external unit, if user has clicked " cancellation " button, current music file is not copied.Before copying, present and confirm that the scheme of prompting is particularly suitable for the phonetic order of implicit expression, user, only express preference and clearly do not send while copying indication, before copying, first inquire user.
On the other hand, user can also send manual operation instruction, and a certain music file is copied to the local storage of mobile unit from external unit.For example user carries out manual operation on graphical interfaces, externally on the music file list in mobile communication of equipment, passes through to click " collection " button, corresponding music file is copied on the local storage of mobile unit.
Normally limited for storing the storage space of music file on local storage, for example only can store 20 songs or amount to the music of 200MB size.If the residual memory space of local storage is not enough when duplicating music file, the music file of previously having preserved can be deleted automatically.Preferably, the music file of preserving the earliest can be deleted automatically on local storage, by the space of vacateing for storing the music file of new interpolation.In addition, user also can manually delete some music file of being out of conceit with and adds new music file to retain enough storage spaces.
In addition, unloading to the music file on local storage can have lock token, user can change the lock token of each music file, when the lock token of a certain music file is effective, this music file can't be deleted automatically, even its holding time be in all music files the earliest, that now automatically deletes will be holding time those music files the earliest and that lock token is invalid.
Fig. 2 shows the music save set 21 of the mobile unit 20 of the present embodiment, comprising: frequency detection module 211, automatically preserve module 212, voice and preserve module 213, prompting and confirm module 214, manually preserve module 215, storage space management module 216.In the present embodiment, music save set 21 is integrated in mobile unit 20, but it will be appreciated by those skilled in the art that music save set 21 also can be coupled to mobile unit 20 in outside, and music save set 21 is the equipment that is independent of mobile unit 20.
Wherein, frequency detection module 211 is play the frequency that is stored in the music file on external unit 23 on mobile unit 20 for detection of user, and this external unit 23 is coupled to mobile unit 20.When the broadcasting time at a certain music file in Preset Time section reaches preset times, automatically preserve module 212 this music file is copied to the interior integrated local storage 22 of mobile unit 20 from external unit 23.
User plays while being stored in the music file on external unit 23 on mobile unit 20, and the phonetic order that voice preservation module 213 is sent by user triggers, and the music file of current broadcasting is copied on the local storage 22 of mobile unit 20.Further, the phonetic order being sent by user triggers, prompting confirms that module 214 can present and confirm prompting to user, and after the confirmation instruction that receives user, control voice are preserved module 213 music file of current broadcasting is copied to local storage 22 from external unit 23.
In addition, user can also carry out manual operation by manual preservation module 215, manually preserves module 215 and according to user's manual operation instruction, one or more music files is copied on the local storage 22 of mobile unit 20.
Storage space management module 216 is for to managing for storing the storage space of music file on local storage 22, if remaining memory space inadequate is deleted the music file preserved the earliest on local storage 22 to store the music file of new interpolation.In addition, the music file of preserving on local storage 22 can have lock token, and when the lock token of a certain music file is effective, this music file can't be stored space management module 216 and automatically deletes.In other words, storage space management module 216 by automatically delete lock token invalid and holding time those music files the earliest.
The associated description that please refer to aforementioned music store method about more details of the course of work of music save set 21, repeats no more here.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible change and modification, so protection scope of the present invention should be as the criterion with the scope that the claims in the present invention were defined.