home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / PC / data1.cab / Program_Files / Applet / anfycam / anfycam.txt < prev    next >
Encoding:
Text File  |  1999-07-08  |  7.3 KB  |  197 lines

  1.  
  2.           Anfy Cam - Copyright (C) by Fabio Ciucci 1999
  3.  
  4.  
  5. INTRODUCTIONS.
  6.  
  7. This applet reloads an image from a given URL location every a specified
  8. number of seconds. In other words, it can display the frames generated
  9. by a webcam. Well, what is a webcam? For those who are not familiar
  10. with this technology, I will give you a brief description.
  11.  
  12. Webcam is a set of software and a camera, which broadcast any sequences
  13. to the web in realtime. Some of the most popular webcam software may be
  14. found here:
  15.  
  16. http://www.camcentral.com/links/software.shtml
  17. http://www.kolban.com/webcam32/
  18. http://www.users.fast.net/~lmo/easysnap/
  19.  
  20. These software with cameras automatically take pictures in jpeg format
  21. and ftp them to your desired site.
  22. Since, the software snaps pictures continuously, your cameras can be
  23. virtually "live". 
  24.  
  25. Usually, the timing of reloading the image file, which your webcam software
  26. ftp to your site, is determined by the <meta> tag.
  27.  
  28. For instance, <META HTTP-EQUIV="refresh CONTENT=10"> orders your browser
  29. to reload the page every 10 seconds. This is simple, but effective.
  30.  
  31. So, what AnfyCam does?
  32.  
  33. AnfyCam works as an enhanced <META> tag in above use. It can not only load
  34. images in selected timing, but apply cross-fade effect, handles zooming
  35. and even allows you to set an overlay transparent gif image over the Cam
  36. image.
  37.  
  38. Note: 
  39.  
  40. The anfycam applet must be loaded from the same machine where the 
  41. target image is loaded; otherwise it will not work due to Java(tm) security
  42. restrictions.
  43.  
  44. *****************************************************************
  45.  
  46. NECESSARY FILES
  47.  
  48. The following 3 ".class" files must be uploaded to the site: 
  49.  
  50. anfycam.class 
  51. Lware.class
  52. anfy.class
  53.  
  54. Plus, for speedy loading on recent browsers, you may want to upload:
  55.  
  56. anfycam.jar 
  57.  
  58. NOTE:
  59.  
  60. You must always upload .class files, even if you choose to use .jar file.
  61. Otherwise, visitors who use old browsers can't see the applet.
  62.  
  63. **********************************************************************
  64.  
  65. EXAMPLE.
  66.  
  67. Insert the <applet> tag in your html document as follows to add this applet
  68. to your page (Comments after the ";" symbol are code explanations and
  69. acceptable min/max values. They are not part of the applet language):
  70.  
  71.  
  72. <applet archive="anfycam.jar" code="anfycam.class" width="260" height="243">
  73. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  74. <param name="regcode" value="NO">          ; Registration code (if you have it)
  75. <param name="reglink" value="NO">          ; URL link(optional) when clicked
  76. <param name="regnewframe" value="YES">     ; Reglink opened in new frame?
  77. <param name="regframename" value="_blank"> ; Name of new frame for reglink
  78. <param name="res" value="1">               ; resolution (1-8)
  79. <param name="interval" value="25">         ; Delay between frames reload
  80. <param name="url" value="mycam.jpg">         ; WebCam image location
  81. <param name="statusmsg" value="Cam applet">  ; Statusbar message
  82. <param name="fadespeed" value="8">         ; speed of fade (1-255)
  83. <param name="progressivefade" value="YES"> ; Progresive fading ("YES" or "NO")
  84. <param name="overimg" value="NO">          ; Optional image over applet
  85. <param name="overimgX" value="0">          ; Over image X offset
  86. <param name="overimgY" value="0">          ; Over image Y offset
  87. <param name="memdelay" value="1000">       ; Memory deallocation delay
  88. <param name="priority" value="3">          ; Task priority (1..10)
  89. <param name="MinSYNC" value="10">          ; Min. milliseconds/frame for sync
  90. Sorry, your browser doesn't support Java ; Msg in no java browsers
  91. </applet>
  92.  
  93.  
  94. ****************************************************************
  95.  
  96. PARAMETER DESCRIPTIONS
  97.  
  98. The following instructions describe the meaning of the available 
  99. parameters for this applet:
  100.  
  101. [Specify the applet and its size]
  102.  
  103. <applet archive="anfycam.jar" code="anfycam.class" width=260 height=243>
  104.  
  105. Here, you specify the applet name and its width and height in pixels.
  106.  
  107. [Credit parameter]
  108.  
  109. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  110.  
  111. Attempting to change the credit parameter will disable the applet.
  112.  
  113. [Registration parameters]
  114.  
  115. <param name="regcode" value="NO">         ; Registration code 
  116.  
  117. To activate the reg parameters, read the shareware registration notes.
  118. In the "regcode" parameter, place the registration code you purchased 
  119. from us. If the code is correct and the applet is run from the registered
  120.  domain name, "link" parameters will be enabled and the applet will be
  121. linked to an associated URL when it mouse-clicked.
  122.  
  123. <param name="reglink" value="NO">          ; URL link(optional) when clicked
  124. <param name="regnewframe" value="YES">     ; Reglink opened in new frame?
  125.  
  126. If you set "regnewframe" to "YES", you can specify a specific frame location
  127. for the reglink:
  128.  
  129. "_blank"  : To load the link in a new blank unnamed browser window.
  130. "_self"   : To load the link into the same window the applet occupies.
  131. "_parent" : To load the link into the immediate FRAMESET parent.
  132. "_top"    : To load the link into the top body of the window.
  133.  
  134. <param name="regframename" value="_blank"> ; Name of new frame for reglink
  135.  
  136. You can also set a custom frame name, such as "myframe1".
  137.  
  138. [Resolution]
  139.  
  140. <param name="res" value="1">               ; resolution (1-8)
  141.  
  142. Resolution parameter decides how bigger the actual image is displayed.  
  143.  
  144. For example, the value 3 gives three times as big image size as the actual image
  145. has. So, it works as a zooming parameter. Do not set too high value, unless you
  146. love terrible picture! 
  147.  
  148. [WebCam image settings]
  149.  
  150. <param name="url" value="mycam.jpg">         ; WebCam image location
  151.  
  152. Here, you set the image url for WebCam. The path can be either absolute or
  153. relative.
  154.  
  155. NOTE:
  156.  
  157. You must place the anfycam.class at the directory where WebCam image reside.
  158.  
  159. <param name="interval" value="25">         ; Delay between frames reload
  160.  
  161. Next, set the timing between frames in mili seconds.
  162.  
  163. <param name="fadespeed" value="8">         ; speed of fade (1-255)
  164.  
  165. This parameter determines the image fade speed. The actual speed is given 
  166. by 256/(the number entered in this field). We recommend a value 8, which 
  167. gives 32 frames per second.
  168.  
  169. <param name="progressivefade" value="YES"> ; Progresive fading ("YES" or "NO")
  170.  
  171. You can optionally set progressive fade mode. This will fade the image pixels
  172. not at same time, but with some steps.
  173.  
  174. <param name="statusmsg" value="Cam applet">  ; Statusbar message
  175.  
  176. A status message is a message which appear at the bottom of a browser window,
  177. when you mouse-over the applet. Enter any message here.
  178.  
  179. Note: 
  180.  
  181. this message is followed by the interval countdown for next frame.
  182.  
  183. [Overlay image]
  184.  
  185. <param name="overimg" value="NO">           ; Optional image over applet
  186. <param name="overimgX" value="0">           ; Over image X offset
  187. <param name="overimgY" value="0">           ; Over image Y offset
  188.  
  189.  
  190. With the "overimg" parameter you can specify the name of an image that will
  191. be shown over the applet. The best options are transparent GIF images.
  192.  
  193. NOTE: Animated GIF images are supported, but will be displayed as animated
  194. only on latest browsers (Netscape 4 and Explorer 4 or newer).
  195. With "overimgX" and "overimgY" you can position the image over the applet area.
  196.  
  197.