Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gioxx
Created September 10, 2014 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gioxx/90cf045d06e28edda56a to your computer and use it in GitHub Desktop.
Save gioxx/90cf045d06e28edda56a to your computer and use it in GitHub Desktop.
Cattura le immagini in streaming da una webcam (CCTV / Axis / ecc.) e le inserisce all'interno di una pagina web con intervalli regolari (in questo caso ogni secondo).
<script language="JavaScript" type="text/javascript">
function reloadfront() {
setTimeout(1000);
var obj = document.getElementById(id);
obj.src = "http://CAM1.localhost.tld/axis-cgi/mjpg/video.cgi";
}
</script>
<img src="http://CAM1.localhost.tld/axis-cgi/mjpg/video.cgi" name="front" width="320" height="240" id="front" onload='reloadfront()'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment