yash0924 / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

RokonMusic.play doesn't work properly #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
call RokonMusic.play("xxx.mp3", true);

What is the expected output?
play loop music 

What do you see instead?
after background music play one time, it stops, and no longer play again

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
android 1.5, on SamSung i5700

Original issue reported on code.google.com by rayjun...@gmail.com on 10 Aug 2010 at 7:28

GoogleCodeExporter commented 9 years ago
I'm not sure how to submit fixes, but this is easily fixed by going to 
RokonMusic.java, finding the mediaPlayer.reset() line around 63, and then 
adding this on the next line:
mediaPlayer.setLooping(loop);

Basically, the play() function calls setLooping before calling reset() which 
wipes out the setting. 

Original comment by malphig...@gmail.com on 11 Aug 2010 at 9:04

GoogleCodeExporter commented 9 years ago
Thanks, sorted

Original comment by rtaylor205@gmail.com on 16 Aug 2010 at 1:48