News for hackers. Stuff that matters.
Re:The Several Million Dollar Bug by pedrocr on Monday June 09, 2014 @11:50AM (#7868969)
Right, what I meant was that you can't have the camera serve a nice /index.html with the embedded image and other niceties like modern IP cameras do, because you reply with an image to every request.
Re:The Several Million Dollar Bug by jacquesm on Monday June 09, 2014 @12:02PM (#7869022)
Well, you can actually. All you need to do is switch modes after the first request, which you handle like every other. Which is in fact what it did... The idea here is that once you've received one request for an image all subsequent requests on that socket will be images as well.
Re:The Several Million Dollar Bug by pedrocr on Monday June 09, 2014 @01:32PM (#7869418)
Ok, then you are relying on multiple requests on a single socket, which was what I had suggested before. Does that work reliably though if the user reloads the page while it's streaming? Wouldn't the browser reuse the same connection to request the HTML page again and get an image instead?