Code example for MediaPlayer

Methods: getDuration

0
	public int getCurrentPosition() { 
		return mediaPlayer.getCurrentPosition();
	} 
 
	public int getDuration() { 
		return mediaPlayer.getDuration();
	} 
 
	public boolean isPlaying() { 
		return mediaPlayer.isPlaying();
	} 
 
	public void pause() { 
		mediaPlayer.pause();
	} 
 
	public void seekTo(int pos) {
		mediaPlayer.seekTo(pos);
	} 
 
	public void setMp3(File cacheDir, byte[] data) {