1.What steps I will reproduce the problem?
I tried to detect the playpause button in android default media controller, I can able detect the seek bar changes (get the seeking video position) using
vv.setOnPreparedListener(new OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
// TODO Auto-generated method stub
mp.start();
mp.setOnSeekCompleteListener(new OnSeekCompleteListener() {
@Override
public void onSeekComplete(MediaPlayer mp) {
// TODO Auto-generated method stub
long cuntPost=mp.getCurrentPosition();
}
});
}
});
2. I also tried to implement the Mediacontroller.MediaPlayerControll interface this is also not work, how can I listen the playpause button in media controller which listener I can use?