Redimensionner la taille du flux
Bonjour à tous,
J'ai obtenu un code html qui contient du javascript qui me permet de visualiser le flux video d'une caméra ip et je souhaiterais redimensionner la taille du flux afin de pourvoir par exemple mettre cote à cote deux flux vidéo. J'ai essayer de créer un tableau en html en y insérant le script mais étant novice en la matière, l'image reprend à chaque fois taille d'origine.
Si vous pouviez me donner un petit coup de main ce serait très aimable.
Merci par avance.
Voici le code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html">
<script type="text/javascript" src="http://YOURIP:YOURPORT/common.js"></script><!-- Load common JavaScript -->
<script type="text/javascript" src="http://YOURIP:YOURPORT/cgi-bin/pubinfo.cgi"></script><!-- load the public info -->
<script type="text/javascript" src="http://YOURIP:YOURPORT/plugindef.js"></script><!-- Load the plugin define -->
<script type="text/javascript">
<!--
function SnapshotWin()
{
MM_openBrWindow('http://YOURIP:YOURPORT/snapshot.html','JPEGsnapshot','width=' + (Width + ss_width_offset) + ',height=' + (Height + ss_height_offset));
}
function onloadEvent()
{
setTitle(HostName);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" background="" onLoad="onloadEvent()">
<script type="text/javascript">
<!--
// The ActiveX plug-in
document.write("<object id=\"" + PLUGIN_ID + "\" width=" + (Width + X_OFFSET_CTRL) + " height=" + (Height + Y_OFFSET_CTRL));
document.write(" standby=\"Loading plug-in...\" classid=CLSID:" + CLASS_ID);
document.write(" codebase=\"http://YOURIP:YOURPORT/" + PLUGIN_NAME + "#version=" + PLUGIN_VER + "\">");
document.write("<param name=\"Url\" VALUE=\"rtsp://" + YOUR IP + "." + YOUR IP + "." + YOUR IP +"." + YOUR IP + ":" + RTSPPort + "/" + RTSPAccessName +"\">");
document.write("This is a plug-in (ActiveX). If you see this text, your browser is not support or disable ActiveX.");
document.write("<\/object>");
//-->
</script>
</body>
</html> |