Code example for MediaPlayer

Methods: getDuration

0
		return mediaPlayer.isPlaying();
	} 
 
	@Override 
	public int getDuration() { 
		return mediaPlayer.getDuration();
	} 
 
	@Override 
	public int getCurrentPosition() { 
		return mediaPlayer.getCurrentPosition();
	} 
 
	@Override 
	public int getBufferPercentage() { 
		return 0; 
	} 
 
	@Override 
	public boolean canSeekForward() { 
		return true;