|
Refreshing Web Cam Images (for snapshot webcams).
To get the latest shot captured by the WebCam, users connecting
to your page will have to Reload it, unless you add some extra HTML, Javascript
code or Java applets which will autoreload the picture after a user-definable
period (this does not apply to streaming a video feeds).
META tag command: The oldest method of
refreshing a WebCam image on a Web page is made via a set of HTML commands or tegs
than can make a web page to auto reload
after a specified number of seconds. The syntax for this tag is as
follows:
<HEAD> ... <META
HTTP-EQUIV=REFRESH CONTENT="#_of_seconds"> ... ...
</HEAD>
Where #_of_seconds is the number of seconds it will take the
browser to Reload the current page. The most significant disadvantage of this method is that the
whole page is reloaded, so a heavy graphics site will be a pain to reload on
slow connections and will result on high bandwith usage. Alternatively, you can use this method if
you fit the image into a FRAMESET tag,
that is, compose a web page with FRAMES, so a small frame is used to store
another HTML page with the image and this refreshing META tag.
JavaScript Code:
You insert a small JavaScript code into your HTML page
and refresh just the image. Note that the visitor to your WebCam page will have to
enable JavaScript in order to see the image changing (nowadays, 95% of the
audience does have JavaScript enabled). This method is probably the hardest to set
up if you are new to HTML and programming. See our Page
Templates to find example code.
Java Applets: Small programs embedded inside a Web page, executed
in real time by the web server, which will load the Web Cam images freeing the browser form that
job. There are tons of Java Applets built by the users itself or by
third party companies. You can put them
anywhere in your WebCam page and they'll refresh the image for you, without
refreshing the whole page. You add HTML applet code on your page and configure its parameters.
Read about Webcam Software >
|