User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
In the Mac OS X 10.4.3 patch, the Safari/WebKit update "Improves
compatibility of Safari with many webcams."
Thanks to this we're finally able to make use of our Axis cameras
Server-Push mjpeg stream. This isn't to be confused with the Quicktime
Codec for 'Motion-JPEG'. The web server uses multipart/x-mixed-replace
boundaries and sends image frames to the client in a stream.
I've been developing a company-themed Dashboard widget to make use of
this and have everything working except for the fact that it crashes
after a few minutes. The reason is that I cannot find any way to force
the widget to close the socket connection to the stream. Think of the
image as an unlimited-size download. When I load the image in Safari I
can stop the image loading by hitting the stop button, or using
JavaScript to stop loading of the page.
Unfortunately I haven't been able to find a way to tell a specific
element to stop loading. I've tried quite a few things:
1. 'stopping' the page with Javascript
2. Dynamically replace the image stream with a static image
3. My last attempt is using createElement and removeChild in hopes that
the image request stream would be interrupted when I call removeChild.
Nothing seems to be working...
Does anyone have other suggestions on how to interrupt the stream? I am
avoiding the use of a JavaScript client-pull scenario since the
framerate gets thrashed by the repeated request overhead... It would be
ideal to make an initial request upon opening the widget/Dashboard, and
closing the socket when hiding Dashboard.
Any insight would be greatly appreciated...
.jer
--
Jeremiah Sypult
Systems Administration
847.785.2153 direct
847.473.4545 main
www.studionorth.com
S T U D I O N O R T H
Insightful Design » Intelligent Technology » Inspired Multimedia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden