Code example for MediaPlayer

Methods: getDuration

0
	public long getCurrentPositionInMedia() { 
		return mediaPlayer.getCurrentPosition();
	} 
 
	public long getMediaDuration() { 
		return mediaPlayer.getDuration();
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java