NSURLConnection and multipart/x-mixed streams
NSURLConnection and multipart/x-mixed streams
- Subject: NSURLConnection and multipart/x-mixed streams
- From: Milo Bird <email@hidden>
- Date: Fri, 3 Aug 2007 21:20:54 +0100
Hello,
I'm trying to use NSURLConnection to access an MJPEG stream.
All that I've seen leads me to believe that my delegate should
receive a connection:didReceiveResponse: message at the start of each
new frame. Apple's documentation mentions this explicitly, and it's
also described in this post to the Webkitsdk-dev mailing list:
http://lists.apple.com/archives/Webkitsdk-dev/2005/Dec/msg00036.html
However, it's not working like that for me. I'm getting one
connection:didReceiveResponse: message, followed by an indefinite
series of connection:didReceiveData: messages. Like this:
connection:didRecieveResponse:
connection:didReceiveData:
connection:didReceiveData:
connection:didReceiveData:
connection:didReceiveData:
... and so on.
The connection definitely isn't finishing or failing, and I'm
continuing to receive data long after the first frame must have
finished transmitting, but I never get another
connection:didReceiveResponse: message. I've tried this with two
different network cameras now, and the result is the same.
Does anyone have any idea why this is happening?
Thanks,
Milo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden