Skip to content

Instantly share code, notes, and snippets.

@billy-bacon
Created April 11, 2013 16:00
Show Gist options
  • Save billy-bacon/5364652 to your computer and use it in GitHub Desktop.
Save billy-bacon/5364652 to your computer and use it in GitHub Desktop.
@Override
public void setMediaPlayer(final MediaPlayerControl player) {
Log.d(TAG, "setMediaPlayer called with " + player);
super.setMediaPlayer(new MediaPlayerControl() {
@Override
public void start() {
player.start();
}
@Override
public void pause() {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public int getDuration() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public int getCurrentPosition() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void seekTo(int pos) {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean isPlaying() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public int getBufferPercentage() {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean canPause() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean canSeekBackward() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public boolean canSeekForward() {
return false; //To change body of implemented methods use File | Settings | File Templates.
}
}); //To change body of overridden methods use File | Settings | File Templates.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment