Re: wow, Pandora rocks ... how to make make my iPhone
Re: wow, Pandora rocks ... how to make make my iPhone
- Subject: Re: wow, Pandora rocks ... how to make make my iPhone
- From: Neil Mix <email@hidden>
- Date: Fri, 5 Dec 2008 17:57:23 -0600
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? 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.)
|
_______________________________________________
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