Re: multipart/x-mixed-replace not working

Philip <[email protected]> Sun, 22 Jan 2006 21:07:28 GMT
Newsgroups gmane.comp.mozilla.devel.unix
Organization SBC http://yahoo.sbc.com
Message-ID <[email protected]>
M=E5rten Svantesson wrote:
> Philip <[email protected]> writes:
>=20
>=20
>>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?
>=20
>=20
> 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.
>=20
> 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.

I had not thought to put it in a page. However, it makes sense now that=20
the cache was interfering.My camera does produce the right effect with=20
the image in a page.