Discussion Forums  >  App Store Approvals, Thank You's

Replies: 4    Views: 121

Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
06/15/12 08:59 AM (13 years ago)

Radio integration accepted

Hi guys, A little while ago several of us were trying to work out how to allow audio straming in the background. I worked out how to do it and submitted an update to the app store. Yesterday it was approved. Basically I'm streaming live radio from the app using the devices QT player. There are a few people here to have already done this, what I've done is modified the code slightly to allow for the radio to continue streaming when the phone locks, sleeps or navigation throughout the app. No idea what happens when you receive a call though!! It can be found here; http://itunes.apple.com/us/app/freestyle-scooters/id499371179?mt=8 Instructions have been posted, i'll add the link soon. Alex
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/15/12 11:20 AM (13 years ago)
nice. thanks
 
lsills81
Apple Fan
Profile
Posts: 469
Reg: Mar 19, 2012
location unknow...
14,090
like
06/15/12 10:39 PM (13 years ago)
YES! Please post instructions. Thx
 
ihatecode
I hate code!
Profile
Posts: 19
Reg: Jan 16, 2012
unknown
2,240
like
06/29/12 01:17 AM (13 years ago)
Please post instructions
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
06/29/12 02:32 AM (13 years ago)
This is what I did: - Add array and string to Custom IOS Target Properties. - Add the following code in the audio.m file //Adds ability for audio to play even in screen lock NSError *setCategoryErr = nil; NSError *activationErr = nil; [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &setCategoryErr]; [[AVAudioSession sharedInstance] setActive: YES error: &activationErr]; - Remove following code from the delegate.m file //setup audio session for background sounds. Allow iPod to continue if it's already playing. [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryAmbient error: nil]; [[AVAudioSession sharedInstance] setActive: YES error: nil] These were the exact steps that allows for audio to be played in the background from streaming using customURL screen. All the best.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.