Re: multipart/x-mixed-replace not working

MÃ¥rten Svantesson <[email protected]> Sun, 22 Jan 2006 17:20:43 +0100
Newsgroups gmane.comp.mozilla.devel.unix
Message-ID <[email protected]>
Philip <[email protected]> writes:

> I have a internet camera that returns a  multipart/x-mixed-replace
> stream. It sort of goes:
>
> $ wget -S http://192.168.1.150/video.cgi
> --17:20:29--  http://192.168.1.150/video.cgi
>            =3D> `video.cgi.3'
> Connecting to 192.168.1.150:80... connected.
> HTTP request sent, awaiting response...
>  1 HTTP/1.0 200 OK
>  2 Server: Camera Web Server/1.0
>  3 Auther: Steven Wu
>  4 MIME-version: 1.0
>  5 Cache-Control: no-cache
>  6 Content-Type:multipart/x-mixed-replace;boundary=3D--video boundary--
>
> $ head video.cgi.3
> --video boundary--
> Content-length: 57674
> Content-type: image/jpeg
>
>    : etc
>
>
> Reading about multipart/x-mixed-replace as a server push protocol
> (http://wp.netscape.com/assist/net_sites/pushpull.html), I get the
> idea that each new jpeg in the stream should replace the previous one
> being viewed. However, on my Mozilla 1.7, only the first jpeg image is
> rendered. Trying IE6, just for grins, it never even renders the first
> image.
>
> Is there a browser setting I am missing, or is the old Netscape
> document description invalid?

It seems like it kind of works. When opening this the image
http://www.fortnet.org/FortNet/HTML/Presentation/animation/nph-anim.cgi
it only flickers. But after I klick reload the animation is shown
correctly. This do seem like a bug.

When the animation is included in a page -
http://www.fortnet.org/FortNet/HTML/Presentation/animation/ - it is
shown correctly right away, unless the image is in the cache in which
you have to press reload.

--=20
                - M=E5rten
=20
mail: [email protected] *** ICQ: 4356928 *** mobile: +46 (0)707390385