Terminado

Home Page Para Cameras

Publicado el 22 Mayo, 2015 en Programación y Tecnología

Sobre este proyecto

Abierto

The old way of publishing a camera
In the past, many webmasters have used a simpler solution and they want to continue using it: instead of embedding a full-blown Camera Viewer in an iframe, they want to embed a snapshot image in a web page, then use a script to automatically refresh the image snapshot every few seconds. This does not support camera playback feature. However, if the goal is to just let other users see the real-time scene, then this is a very elegant solution.
CameraFTP supports this feature. To do so, please make sure your camera is uploading image snapshots and not video clips. You still need to publish the camera first, then use the following static url to get the latest image from the ip camera / webcam:
http://cameraftpapi.drivehq.com/api/Camera/GetCameraThumbnail.ashx?parentID=XXX&shareID=YYY
Where xxx and yyy should be the same as in your camera’s publish url.
Please see the screenshot below:


To make the image automatically refresh, you need to write a script. A simple example is provided below:
<!-- Please publish your camera on CameraFTP.com website first, then replace "parentID=113503610&shareID=1227092" with the value in your camera's Publish URL -->
<html>
<head>
<title>An Example of Embedding CameraFTP IP Camera / Webcam Image in Your Own Webpage / WebSite</title>
<script language="JavaScript"><!--
function autoRefresh() {
if (!document.images)
return;
document.images['publishedCamera'].src = 'http://cameraftpapi.drivehq.com/api/Camera/GetCameraThumbnail.ashx?parentID=113503610&shareID=12270928&t=' + Math.random();
setTimeout('autoRefresh()', 30000); // auto refreshes every 30 secs
}
//--></script>
</head>
<body onLoad="setTimeout('autoRefresh()', 30000)">
<img src="http://cameraftpapi.drivehq.com/api/Camera/GetCameraThumbnail.ashx?parentID=113503610&shareID=12270928&t=" name="publishedCamera">
</body>
</html>
For best performance, CameraFTP may cache images for up to 1 minute. So it is normal if the image does not update within 1 minute.
If you must refresh the image at a higher frequency, it is recommended using our regular Publish URL.

Categoría Programación y Tecnología
Subcategoría Diseño Web
¿Es un proyecto o una posición? Un proyecto
Actualmente tengo Tengo las especificaciones
Disponibilidad requerida Según se necesite
Experiencia en este tipo de proyectos Sí (He administrado este tipo de proyectos anteriormente)
Integraciones de API Otros (Otras APIs)
Necesidad específica Otro
Otro Diseño Web Preciso de uma página (única página) que contenha os links de cameras em FTP (basta colar o link e usar um modelo). É simples. Depois teremos mais uma home page completa.

Plazo de Entrega: 01 Junio, 2015

Habilidades necesarias