• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: wow, Pandora rocks ... how to make make my iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wow, Pandora rocks ... how to make make my iPhone


  • Subject: Re: wow, Pandora rocks ... how to make make my iPhone
  • From: "Marco Papa" <email@hidden>
  • Date: Fri, 5 Dec 2008 16:04:57 -0800

Neil,

You are correct, Neil. The timeout is LONG. I am currently recommending users, when they see the 3G->EDGE transition, to just tap the STOP button (||) and then the restart button (>). Ugly, I know.

As far as CFNetwork vs. NSURLConnection yous are also correct, though my developers had problems with all the "ICY" sites that fail to respond with a standard HTTP response header. Right now the CFNetwork code works, and I am not touching it :-)

Is there an easy way to set shorter timeouts when using CFNetwork?

-- Marco

On Fri, Dec 5, 2008 at 3:57 PM, Neil Mix <email@hidden> wrote:
I know the examples use CFNetwork, but my experience is that NSURLConnection is a whole world easier to work with.  I think the situation you're describing is a half-open TCP connection, which means you won't get anything until your connection times out.  So it becomes a matter of timeout management -- aggressive enough to catch AWOL connections reasonably quickly, but not so aggressive that you cut off good connections (or worse yet knock your servers over when they stumble).

On Dec 5, 2008, at 5:36 PM, Marco Papa wrote:

Neil,

My problem is that when the phone switches from 3G to Edge, I do not seem to get a Close Connection. Or maybe I am not trapping the event properly? Should I be getting a kCFStreamEventEndEncountered when the 3G->EDGE transition happens?

Marco Papa
email@hidden



On Dec 5, 2008, at 3:27 PM, Neil Mix wrote:


On Dec 5, 2008, at 2:31 PM, Marco Papa wrote:

Neil, specifically how do I go about "resuming streaming" when the cell connection switches from 3G to EDGE or vice versa? Is there an event that I have to look for? Thanks.


When a connection dies, issue a new request with a byte range starting from where the previous request died off.  Transport doesn't really matter as long as your bitrate is low enough.  (AFAIK there's no way to distinguish 3G from EDGE.  I wish there were.)





--
Marco Papa, Ph.D.
Computer Science Department
University of Southern California
Henry Salvatori Computer Center
Los Angeles, California 90089-0781
Voice: +1-213-974-2137
Cell: +1-310-944-5468
E-mail: email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: wow, Pandora rocks ... how to make make my iPhone (From: "Marco Papa" <email@hidden>)
 >Re: wow, Pandora rocks ... how to make make my iPhone (From: Neil Mix <email@hidden>)
 >Re: wow, Pandora rocks ... how to make make my iPhone (From: Marco Papa <email@hidden>)
 >Re: wow, Pandora rocks ... how to make make my iPhone (From: Neil Mix <email@hidden>)

  • Prev by Date: Re: wow, Pandora rocks ... how to make make my iPhone
  • Next by Date: Re: low-pass filter on the iphone (William Stewart)
  • Previous by thread: Re: wow, Pandora rocks ... how to make make my iPhone
  • Next by thread: multichannel output AU support
  • Index(es):
    • Date
    • Thread