hi folks,
i have a mediacontroller with mediaplayer,
i have some questions:
1. the mediacontroller can't update the progressive bar automatilly
2. when i enter in the program,it will play my music but the
mediacontroller can't into "play mode" simultaneously("stop mode" is
default)
(that means i need click play button that in the play mode)
3. if i want to implement prev/next function,how can i write for this
function,i just know must to setup the
mediacontroller.setPrevNextListeners
(View.OnClickListener next, View.OnClickListener prev),but don't know
how to use it.
can somebody give me some advise?
thanks!
my code of mediacontroller is bellow:
===============================================
/* MediaPlayerControl */
private MediaController.MediaPlayerControl player_interface=new
MediaController.MediaPlayerControl()
{
public int getBufferPercentage() {
return buffer_percent;
}
public int getCurrentPosition() {
return mMediaPlayer1.getCurrentPosition();
}
public int getDuration() {
return mMediaPlayer1.getDuration();
}
public boolean isPlaying() {
return PlayState;
}
public void pause() {
if(mMediaPlayer1!=null)
{
mMediaPlayer1.pause();
}
PlayState=false;
}
public void seekTo(int pos) {
if(mMediaPlayer1!=null)
{
mMediaPlayer1.seekTo(pos);
}
}
public void start() {
if(mMediaPlayer1!=null)
{
mMediaPlayer1.start();
}
PlayState=true;
}
}; /* end of MediaPlayerControl */
==============================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---