Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.