Self-updating NetScape push-Feed image
This example demonstrates the push-feed feature of NetSnap which allows images to update themselves automatically. In this example we set the refresh rate to 1 frame every 5 seconds.
We have limited the NetSnap server on our office cam to deliver no more than 15 frames. So after the 15 frames are shown you will need to press refresh to have another 15 frames delivered. We limit the number of frames so that those who view over older style proxy servers don't end up with a connection which never finishes, and to preserve band width.
Note: This example only works with Netscape Communicator supporting the NetScape push-feed method. For a java based application see example 3.
The HTML code to accomplish the above is:
If you have a static IP number:
<IMG SRC="http://123.456.78.9/push?delay=5?scale=50" width="160" height="120">
If you have a dynamic IP number:
<IMG SRC="http://lookup.netsnap.com/000035/push?delay=5?scale=50" width="160" height="120">
NOTE:
We use the delay=5 parameter to set the update time between frames at 5 seconds.
We use the scale=50 to scale the image down to 50% of it's base size (ie: the raw size delivered by the camera - which should be set to 320 x 240). This yields an image size of 160 x 120, as is indicated by the width and height parameters in the above examples.
Note:
In the above examples replace the IP number (123.456.78.9) or the NetSnap
ID number (000035/netsnap.jpg) with the values required for YOUR NetSnap location.
You can click the Info button on your NetSnap menu bar to obtain the values for your copy
of NetSnap.
Return to Examples Selection Page