Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-23-2010, 07:28 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 9
viezel is on a distinguished road
Default Multitasking background audio

Hi..

I want to implement The new background in my radio streaming app As explained in https://developer.apple.com/iphone/l...007072-CH5-SW4

I dont get how the backgroundmodes work in the Info.plist. Have any of you worked with tje new functionality and could show a simple example of how to enable this?

Cheers
Mads
viezel is offline   Reply With Quote
Old 06-26-2010, 07:09 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 9
viezel is on a distinguished road
Default

bump..

The documentation says:

Playing Background Audio
Applications that play audio can continue playing that audio while in the background. To indicate that your application plays background audio, include the UIBackgroundModes key to its Info.plist file. The value for this key is an array containing the audio string. When this key is present, the system’s audio frameworks automatically prevent your application from being suspended when it moves to the background. Your application continues to run in the background as long as it is playing audio. However, if this key is not present when the application moves to the background, or if your application stops playing audio while in the background, your application is suspended.



Could anyone help me explaining how to do this?
viezel is offline   Reply With Quote
Old 09-28-2010, 04:30 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: Spain
Posts: 52
macpower is on a distinguished road
Default

Hello, you found a solution?, I am currently doing a similar app and going to implement multi-tasking did not work, I think the reason is the framework that was used (avmediaplayer) for playing audio from a streaming url, I seen the possibility of using another framework for this purpose AvAudioPlayer which I think if it works properly with the audio service for multitasking but does not play streaming only plays local files. If you solved it please let me indicate how and if possible with an example.

Greetings
__________________
Apps:

Check my apps, I would like get your feedback! if you want test it send me a mp and I'll try send you a promo code!

Save now: Save money easily with your iPhone!

ItAlertsMe: Alarm to prevent the theft
macpower is offline   Reply With Quote
Old 09-28-2010, 07:46 AM   #4 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 864
nobre84 is on a distinguished road
Default

Just look up into your Info.plist and click the + button, search for the UIBackgroundModes and write "audio" on the right side of the key
nobre84 is offline   Reply With Quote
Old 09-28-2010, 07:51 AM   #5 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: Spain
Posts: 52
macpower is on a distinguished road
Default

Thanks, i tried that but i think that the problem is the framework that i use for play mp3 stream (avmediaplayer), i have to try with audiotoolbox..
__________________
Apps:

Check my apps, I would like get your feedback! if you want test it send me a mp and I'll try send you a promo code!

Save now: Save money easily with your iPhone!

ItAlertsMe: Alarm to prevent the theft
macpower is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, background, multitasking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 335
8 members and 327 guests
anothermine, Chickenrig, Domele, givensur, heshiming, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0