Code example for MediaPlayer

Methods: getDuration

0
	public long getCurrentPositionInMedia() { 
		return mediaPlayer.getCurrentPosition();
	} 
 
	public long getMediaDuration() { 
		return mediaPlayer.getDuration();
	} 
 
}