Flux vidéo caméra IP: Axis

asp_shamai Messages postés 28 Date d'inscription jeudi 23 juin 2005 Statut Membre Dernière intervention 25 novembre 2005 - 25 nov. 2005 à 10:50
jesusonline Messages postés 6814 Date d'inscription dimanche 15 décembre 2002 Statut Membre Dernière intervention 13 octobre 2010 - 25 nov. 2005 à 12:30
Bonjour à tous,
j'ai incorporé dans ma application une camera IP Axis et cela marche parfaitement.
Mais je voudrais effectuer un contrôle sur le flux vidéo pour savoir si l'adresse IP spécifiée renvoie oui ou non un flux vidéo avant de pouvoir l'afficher...
voici le code d'affichage de la camera

<SCRIPT LANGUAGE= "JavaScript">// Set the BaseURL to the url of your camera

var BaseURL = http://172.21.1.122/;
var DisplayWidth = "320";
var DisplayHeight = "240";


var File = "axis-cgi/mjpg/video.cgi?resolution=320x240";


var output = "";
if ((navigator.appName == "Microsoft Internet Explorer") &&
(navigator.platform != "MacPPC") && (navigator.platform != "Mac68k"))
{


// Si Internet Explorer sous Windows
output = '<OBJECT ID="Player" width='
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CLASSID="CLSID:745395C8-D0E1-4227-8586-624CA9A10A8D" ';
output += 'CODEBASE="';
output += BaseURL;
output += 'activex/AMC.cab#version=2,0,21,0">';
output += '';
output += '';
output += '';
output += '';
output += '';
output += '';
output += '
Axis Media Control
';
output + = 'The AXIS Media Control, which enables you ';
output += 'to view live image streams in Microsoft Internet';
output += ' Explorer, could not be registered on your computer.';
output += '
</OBJECT>';
} else {


// Autres navigateurs
theDate = new Date();
output = '';
}
document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen"
// document.Player.UIMode = "MDConfig";
// document.Player.MotionConfigURL = "/axis-cgi/operator/param.cgi?ImageSource=0"
// document.Player.MotionDataURL = "/axis-cgi/motion/motiondata.cgi";
</SCRIPT>

Merci pour votre attention

1 réponse

jesusonline Messages postés 6814 Date d'inscription dimanche 15 décembre 2002 Statut Membre Dernière intervention 13 octobre 2010 29
25 nov. 2005 à 12:30
Bonjour étant donné que c'est du javasscript je te conseil d'aller voir ici : www.javascriptfr.com :)


<HR>
Cyril - MVS - MCP ASP
0
Rejoignez-nous