Self-updating Java Applet Stream
This example demonstrates the Java Applet based method to obain self-updating image streams. This allows images from NetSnap to update themselves automatically. In this example we set the refresh rate to 1 frame every 5 seconds. The Java Applet is intended for use with Internet Explorer, but it will also work with NetScape Navigator. The Navigator push-feed method, however, is a better choice if NetScape Navigator is the browser (see Push-Feed example).
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.
As the Java Applet needs to be loaded from a web page served by NetSnap (for security reasons) you should create a link on your regular web pages to link to a page on your NetSnap server. NetSnap includes the file push.htm in its data directory to serve as an example. In this example we created a page called exampl.htm and saved it in the data directory of the NetSnap server (it can be found with Windows Explorer by pointing to "Program Files\PeleSoft\NetSnap\Data").
Here is the link on our regular web server linking to the exampl.htm file on our NetSnap server.
The above link is written as:
<a href="http://lookup.netsnap.com/000035/exampl.htm">Here is the link on our regular web server linking to the <strong>exampl.htm</strong> file on our NetSnap server.</a>
Return to Examples Selection Page