Music Player possible?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Music Player possible?
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!!
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?
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: Music Player possible?
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
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Music Player possible?
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Music Player possible?
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
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
~... together, we're smarter ...~
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: Music Player possible?
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

<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Music Player possible?
Thanks,
Let me work on this and give my feedback if it works on my end.
P
Let me work on this and give my feedback if it works on my end.
P