Android : Music App keeps falling asleep

on Wednesday, October 29, 2014


I have absolutely no experience what-so-ever writing code or programming. I am using iBuildApp to create an app for our radio station. I want people to be able to download the app, and have a way to "Listen Live" I'm having a problem through, when their phone goes idle, the music turns off. The following is the code I'm using:



<!-- BEGINS: AUTO-GENERATED MUSES RADIO PLAYER CODE -->
<script type="text/javascript" src="http://hosted.musesradioplayer.com/mrp.js"></script>
<script type="text/javascript">
MRP.insert({
'url':'http://s21.myradiostream.com:4100/;',
'codec':'mp3',
'volume':65,
'autoplay':false,
'buffering':5,
'title':'1620 AM',
'bgcolor':'#FFFFFF',
'skin':'mcclean',
'width':180,
'height':60
});
</script>
<!-- ENDS: AUTO-GENERATED MUSES RADIO PLAYER CODE -->


Is there some kind of code I can add in the middle of all that jumble to keep the music playing even when an iPhone or Android goes idle?? If anyone could help I would greatly appreciate it!!


0 comments:

Post a Comment