Page 1 of 1

Music Player possible?

Posted: Fri Feb 07, 2014 10:52 am
by poliks
Hi All,

Having fun with Livecode so far. Next project is a Music Player.

Overview is simple. Standardise music across different offices by pushing out a player app that only contains approved music.

Here is my concern.

I have read somewhere on the forum that Livecode does not support background playing of audio. Is that still the case? Which means my music only plays if the iPad is stuck on the app. If it sleeps then audio is stops as well? Need more insight from the Gurus here.

Thank You!!

Re: Music Player possible?

Posted: Fri Feb 07, 2014 1:25 pm
by endernafi
Hi Poliks,

You may want to check this:
http://mergext.com/home/mergbgtask/


Best,

~ Ender

Re: Music Player possible?

Posted: Fri Feb 07, 2014 1:47 pm
by Jellicle
You need to hack the plist to prevent the app quitting when it is suspended. I've provided instruction for that somewhere on here, I think. In my phone right now so I'm reluctant to type them all out again...but a search might turn it up.

Gerry

Re: Music Player possible?

Posted: Fri Feb 07, 2014 1:49 pm
by Jellicle

Re: Music Player possible?

Posted: Fri Feb 07, 2014 2:16 pm
by endernafi
Gerry,

It's not the same thing.
Your method is excellent to revive the app to its previous state,
but the app won't continue many tasks like playing music if it's in background.

Just tested it via both mobilePlaySoundOnChannel and creating a mobilePlayer.
The sound stops when the app enters background and continues from where it left off when opened again.

Best,

~ Ender

Re: Music Player possible?

Posted: Fri Feb 07, 2014 9:12 pm
by Jellicle
Yeah sorry, it was almost midnight and I wasn't thinking straight :). You also need to add this to the plist:

<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>

Gerry

Re: Music Player possible?

Posted: Thu Feb 13, 2014 8:22 am
by poliks
Thanks,

Let me work on this and give my feedback if it works on my end.

P