Added delegate method for finish playing

Changed the repeat times and repeat playing