NetSnap Example

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.

 


To insert the above image using the Front Page Web page editor

  1. Click on the "Insert Image" button
  2. Pick "Other location"
  3. Select "From location"
  4. Type in the location as: "http://123.456.78.9/push?delay=5?scale=50" if you use a static IP number,
    or "http://lookup.netsnap.com/000035/push?delay=5?scale=50" if you use a dynamic IP number.
  5. Right click on the image box shown in the FrontPage editor after you completed the above steps.
  6. Select "Image Properties" from the pop up menu
  7. Click on the "Appearance Tab"
  8. Check "Specify Size" and fill in the width and height fields (for a scale value of 50, and a base image size of 320x240 the value should be 160 x 120).
  9. Note: that while in the FrontPage editor the image will remain blank.

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