Embodiment
Media playing method that the embodiment of the invention provides and terminal, having solved existing play-back technology user can not the personalized problem of setting single playing media file, has satisfied the demand of user individual, has strengthened user experience.Below in conjunction with accompanying drawing embodiment is specified.
Fig. 1 is the schematic flow sheet of the embodiment of the invention one media playing method, and this method comprises:
101, start the setting play mode;
Be appreciated that the setting play mode here can be a play mode that in existing media player, increases.
102, judge whether media file to be play has the broadcast label, if having, then plays said media file according to said broadcast label.
After starting this pattern, judge whether this media file has the broadcast label, if carried out playing the setting of label before, then according to before be provided with and play; If do not carry out setting before, then still play whole file, but under this pattern, can carry out the setting of time through menu.Concrete explains in the embodiment of back.
The method that present embodiment provides has realized the broadcast personal settings of user to the single medium file, has satisfied the demand of user individual, has strengthened user experience.
Fig. 2 is the schematic flow sheet of the embodiment of the invention two media playing methods, and this method specifically comprises the steps:
201, set the broadcast label;
Need to prove that the broadcast label here can comprise the broadcast zero-time, or the end of playing time, or play zero-time and end of playing time.The user can be provided with playing label as required, and concrete being provided with can increase corresponding option in media player, and this setting both can be provided with before media play, also can in playback of media files, suspend the back and be provided with.Wherein, the way of realization of broadcast label and bank bit are equipped with multiple, for example; For general audio file; Can in multimedia database, increase by two row, be respectively and play zero-time and end of playing time, and can be set to 0 by default value; If reading this time value is 0, then represent this is not provided with; For files in stream media, can be with file name information, play zero-time and end of playing time and can pack and save as a bookmark, be saved in the storer at terminal with the form of ordinary file, read these data when playing by the time again.
202, start the setting play mode;
Of embodiment one, the setting play mode here can be a pattern that increases in the media player.
203, judge whether media file to be play has the broadcast label, if having, then execution in step 205, otherwise execution in step 204;
204, play entire media file;
This step is identical with the implementation method of prior art, does not give unnecessary details at this.
205, judge whether the broadcast label is one, if be one, execution in step 206, otherwise, execution in step 207;
To each media file, the user can set a plurality of broadcast labels, and each plays the media file fragments that label is set respectively needs broadcast.Concrete set-up mode is identical with the set-up mode of single broadcast label, through repeatedly being provided with and can accomplishing.Also can revise or cover for single broadcast label, and remind the user to confirm.
206, extract broadcast zero-time and end of playing time in this broadcast label, according to the time playing media file of two settings;
Have only one to play label if judge media file to be play; Then according to playing zero-time and end of playing time playing media file; If the time is set to 0, think that then this is not provided with, an employing is not set to 0 time point as the foundation of playing beginning or finishing.The fragment that concrete application scenarios can need be play separately the conduct of the 40th second of a first song and 120 seconds these sections for: user then can be set to 40 seconds and 120 seconds respectively with playing zero-time and end of playing time; Certain interrupts the user when watching files in stream media, can be arranged on the interrupted time with playing zero-time, and next time, player can directly begin to play this files in stream media from this point of interruption when playing.
207, according to the sequence number of playing label, play said media file according to said broadcast label successively.
For same media file, a plurality of broadcast labels also can be set, confirm different fragments respectively; At this moment; Need set the order of a plurality of broadcast labels, can be automatically according to the time sequencing setting, or by hobby or the use habit setting of user according to oneself.At this moment, only need successively each be play the definite fragment of label and play according to the order of playing label.
The method that present embodiment provides has realized the broadcast personal settings of user to the single medium file, can do repeatedly to be provided with to same media file simultaneously, has satisfied the demand of user individual, has strengthened user experience.
For using said method, the embodiment of the invention also provides a kind of terminal, and is as shown in Figure 3, and this terminal comprises: start module 301, be used for starting the setting play mode; Judge module 302 is used to judge whether media file to be play has the broadcast label, if having, notice is set playing module 303; Set playing module 303, be used to receive the notice of said judge module, play said media file according to said broadcast label.
Optional, as shown in Figure 4, this setting playing module 303 can also comprise, first playing module 3031 is used for extracting the broadcast zero-time of said broadcast label, and the broadcast zero-time from said broadcast label begins to play said media file.
Optional, as shown in Figure 4, this setting playing module 303 can also comprise, second playing module 3032, is play said media file to said end of playing and is finished during the time at the end of playing time that is used for extracting said broadcast label.
Optional; As shown in Figure 4; This setting playing module 303 can also comprise, the 3rd playing module 3033, the broadcast zero-time and the end of playing time that are used for extracting said broadcast label; Broadcast zero-time from said broadcast label begins to play said media file, and extremely said end of playing finished during the time.
Optional, as shown in Figure 4, this setting playing module 303 can also comprise, and order execution module 3034 is used for the setting order according to said broadcast label, and notice setting playing module is play successively.
Optional, as shown in Figure 4, this terminal can also comprise, module 304 is set, and is used to said media file and sets the broadcast label.
Need to prove, play label and can comprise the broadcast zero-time, or the end of playing time, or play zero-time and end of playing time.The user can be provided with playing label as required, and concrete being provided with can increase corresponding option in media player, and this setting both can be provided with before media play, also can in playback of media files, suspend the back and be provided with.Above-mentioned first playing module 3031, second playing module 3032 and the 3rd playing module 3033 can individualism or combination exist.And the situation of order execution module 3034 when being used to handle a media file and being provided with a plurality of broadcast label simultaneously.
The broadcast personal settings of user to the single medium file have been realized at the terminal that present embodiment provides, and can do repeatedly to be provided with to same media file simultaneously, have satisfied the demand of user individual, have strengthened user experience.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program is when carrying out; Comprise step like method, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
More than be explanation, in concrete implementation process, can carry out suitable improvement, to adapt to the concrete needs of concrete condition method of the present invention to the specific embodiment of the invention.Therefore be appreciated that embodiment according to the present invention just plays an exemplary role, not in order to restriction protection scope of the present invention.