Code example for MediaPlayer

Methods: releasestop

0
			mp.start();
	} 
 
	public void stop() { 
		if (mp != null)
			mp.stop();
		release(); 
	} 
 
	public void setComplete() { 
		this.isComplete = true;
		stop(); 
	} 
 
	public void release() { 
		if (mp != null) {
			mp.release();
			mp = null;
		} 
	} 
}