0

I am creating a Radio application , in that I want to keep my radio running even though the application goes to the background.

i.e. streaming must be continued , right now it gets stopped.

Please help me out from this situation

thanks

V.V
  • 3,082
  • 7
  • 49
  • 83

2 Answers2

2

Add a "Required background modes" entry to your application .plist. This is an array, add an item of "App plays audio".

if you look at the plist source, it'll be:

<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
</array>
MarkPowell
  • 16,482
  • 7
  • 61
  • 77
  • Thanks for reply, but this is not working. I am using ios 4.1 , and in simulator the same does not worked. I copied the code in to my .plist file. Do I making any mistake please suggest !! – V.V Mar 29 '11 at 14:21
  • I believe there are methods to get it working in the simulator, but I've had no need to look into them. – MarkPowell Mar 29 '11 at 14:28
1

This might be worth looking into:

iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream

Community
  • 1
  • 1
Wex
  • 4,434
  • 3
  • 33
  • 47