3 ms·
What method(s) do you think Pandora is using to stay alive more than 10 minutes, intermittently fetching additional megabytes of music?
by gojomo 16y ago
What method(s) do you think Pandora is using to stay alive more than 10 minutes, intermittently fetching additional megabytes of music?
- sirn 16y agoPandora 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.
- gojomo 16y agoThat appears to fit the bill. From reading here... http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH5-SW14 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.)
- wallflower 16y agohttp://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html 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.