by Brian Klug on 6/21/2010 6:14:00 PM
Posted in smartphones , iOS 4 , Pandora Radio , Multitasking
Though the RC has been out for some time, and other builds before it, most of the multitasking features have gone relatively untested as they require applications to explicitly use APIs for background functionality. We were excited to play around with background audio today when Pandora released its iOS 4.0 tested, background-audio packing update. As far as we're aware, Pandora Radio is the first and only application in the app store right now supporting background audio playback.
 

The natural first test was to determine what impact background audio playback has on the battery life of our iPhone 3GSes. To do so, we loaded up our test page which cycles through a loop of article pages and galleries - simulating typical web browsing use - and left pandora playing in the background. Anand was testing over 3G, while I tested WiFi.

After about an hour of testing, I noticed that audio had begun skipping on my iPhone. To be completely honest, at first I thought this was part of the song I was listening to. Then I suspected some sort of buffering issue, but audio stuttering continued to get worse. Finally I decided to interrupt the test and try switching applications, when I noticed the phone had become unresponsive, rejecting all input. Mashing buttons did nothing, including the lock button. It looks like the following, and sounds like a techno song:
 

While I was sending the video to Anand, his iPhone 3GS running the exact same test but over 3G developed the same audio loop issue, forcing him to reboot. My iPhone eventually fixed itself after about 5 minutes of skipping, resuming audio playback and becoming responsive again. It's still playing right now, but Safari has begun crashing periodically while Pandora is playing in the background. Luckily, the audio has not started skipping again.
 
 
It’s difficult to tell at this point whether the issue lies with Pandora or iOS 4.0. Considering normal iPod playback works in the background just fine and possibly uses the same API, it’s entirely possible this a Pandora problem - especially considering it released just today, and this is a new feature. The other possibility is that the combination of our Safari page load test and Pandora in the background is using too much RAM, though iOS 4.0 is supposed to close background applications as the device gets low on RAM.
 
It also plausible that there's a problem with the scheduler in iOS 4.0. The combination of CPU load from our script, audio playback, and the fact that my iPhone eventually resumed being responsive leads us in that direction.
 
Either way, background Pandora streaming has become something of a poster child for demonstrating to end users that multitasking works - its execution needs to be flawless before the launch of iPhone 4.
It just works! by Pirks on Monday, June 21, 2010
Isn't it? ;-)
Pirks
heh by sprockkets on Monday, June 21, 2010
Perhaps a jailbroken iphone user can let us know how well it is supposed to work LOL
sprockkets
RE: heh by ishbuggy on Monday, June 21, 2010
Yeah. I do it all the time on my jailbroken ipod 2g. Works like a charm. I have had it going for easily over 4 hours straight while playing games and browsing and it never stuttered or anything. Apple should look harder at some of the jailbroken software code I think.
ishbuggy
RE: heh by CZroe on Wednesday, June 23, 2010
As a paid user of Music Controls, which adds backgrounding and locksceen control/art integration as well as miniplayer and a host of other touches (Next/Previous Track AVRCP being among my favorites), I can honestly say: Very well. I'm going to miss NT/PT on my motorcycle A2DP kit until there is an update or new program.
CZroe
Quote: "...after about an hour of testing..."
Quote: "...continued to get worse..."
Quote: "...but Safari has begun crashing periodically while Pandora is playing..."

'nuff said.
Inspector2211
Millions of Americans are crying in despair... Come on Anandtech! There is a number of way better phones than iOverpaid.
geekfool
Go troll elsewhere.
Exelius
Well said.
slyck
iOverpaid...now that's clever! Bet you spell their competitor Micro$oft!

I wanna be a technohipster just like you.
IndyJaws
<a href="http://www.passguide.com/650-251.html" >650-251</a> Cisco Lifecycle Services for Advanced Unified Communications
<a href="http://www.passguide.com/642-181.html" >642-181</a> Cisco Unified Presence Design and Implementation
Passguide
Latest from AnandTech