Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Problems rendering an image + jpeg images not working

From: jason:cunliffe:verizon at: 30-Aug-2002 8:30

> I believe the objective is to "stream" a series of images to the browser > from a server (original source a web cam). > > The multipart/x-mixed-replace is a way to deliver to the browser multiple > versions of the "same" image so that the browser should replace the image > when it receives the next part in the multipart stream. > > IE apparently does not support this, for IE a activex object in the HTML > page must be used. Theoretically "other" browsers might support it directly. > My experience with Netscape so far shows promis because it does correctly > finish with the final image, but does not show the earlier images. Netscape > appears to be waiting until the connection is closed.
Well I may go down in flames for this, but what the hell.. How about using Flash as a cross platform player? FlashMX can dynamically load JPEG images now directly at runtime. For Webcam, polling still makes sense, but if you really want 'push' open an XMLSocket in Flash to talk with the server. Although called XMLSocket, it does not have to be actual XML streams. It just means the connection stays open until closed. Oldes' wonderful %make-swf.r can also be used a potent server-side tool in this scheme. It can generate SWFs from images, as well as all sort so tricks to embed Actionscript, buttons, PNGs, localConnection object, dynamic timestamps, metadata, whatever.. LocalConnection is incredible. Makes it trivial to have real-time event passing between people using flash movies, as long as they are on the same server. That means you can be sure people are looking at the same thing at the same time.. browsing or updating image sequences etc. Once you opt for an ActiveX inclusive solution you may as well really enjoy a modern Flash format for all its virtues. ./Jason