Re:Handy Light: Tethering App Camouflaged as Flashlight
by gojomo on Tuesday July 20, 2010 @11:24PM
(#1534247)
What method(s) do you think Pandora is using to stay alive more than 10 minutes, intermittently fetching additional megabytes of music?
[ Parent
| on HN ]
Re:Handy Light: Tethering App Camouflaged as Flashlight
by sirn on Tuesday July 20, 2010 @11:48PM
(#1534284)
Pandora is using Background Audio API, isn't it? If so, the app is able to stay alive as long as it still play music. Background Task API, on the other hand, has 10 minutes time limit.
Re:Handy Light: Tethering App Camouflaged as Flashlight
by gojomo on Wednesday July 21, 2010 @12:08AM
(#1534319)
That appears to fit the bill. From reading here...
http://developer.apple.com/iphone/library/documentation/iPho...
...it sounds like a background audio app could do arbitrary other things while remaining unsuspended, and receiving audio callbacks, as long as it also keeps playing audio. (I'm sure Apple would frown on such behavior, and ultimately thwart it, but it seems like the framework gives enough discretion to the app to do other things.)
Re:Handy Light: Tethering App Camouflaged as Flashlight
by wallflower on Tuesday July 20, 2010 @11:55PM
(#1534297)
http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-agai...
My guess is Pandora has some fairly sophisticated server-side streaming that responds to ACK/FIN-type feedback from the iPhone client.