Re:Movable Ink Launches Service To Stream Live Content In Em...
by pfraze on Thursday November 10, 2011 @04:55PM
(#3222073)
Crafty! How do you get the image to overwrite? I would think that you could only append to the image data that's already been transmitted.
Re:Movable Ink Launches Service To Stream Live Content In Em...
by mnutt on Thursday November 10, 2011 @05:44PM
(#3222234)
Our current method uses the content-type multipart/x-mixed-replace. (Remember http://www.wired.com/wired/archive/5.03/ff_push.html? Good times...) When the request starts you specify a boundary string; then every time the browser sees that boundary string it knows to replace the existing image.
When a user opens the email, it points to an image on our servers. At that point, we load the dynamic web page, take a screenshot, crop it, and render it in your browser. But at that point instead of closing the connection, we leave it open. Every second, we repeat the process, replacing the old image with the new one.