|
|||
|
Hi,
ich möchte gerne im Veyton auf einer Seite ein Webcam-Bild/Video laufen lassen. Der Code dazu ist dieser: Code:
<h2>Motion JPEG of 320x240 image</h2>
<script type="text/javascript"><!--
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";
// Since this file is located inside the unit itself, no base url is specified here
var BaseURL = "http://ip-adresse:5432/";
// DisplayWidth & DisplayHeight specifies the displayed width & Height of the image.
// You may change these numbers, the effect will be a strech or a shrink of the image
var DisplayWidth = "320";
var DisplayHeight = "240";
// This is the filepath to the video generating file inside the camera itself
var File = "axis-cgi/mjpg/video.cgi?resolution=320x240";
// No changes required below this point
var output = "";
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
{
// If Internet Explorer for Windows then use ActiveX
output = "<span class="mceItemObject" ID=\"CamImage\" WIDTH="
output += DisplayWidth;
output += " HEIGHT=";
output += DisplayHeight;
output += " CLASSID=CLSID:917623D1-D8E5-11D2-BE8B-00104B06BDE3 ";
output += "CODEBASE=\"";
output += BaseURL;
output += "activex/AxisCamControl.cab#Version=1,0,2,15\">";
output += "<span NAME=\"URL\" value=\"";
output += BaseURL;
output += File;
output += "\" class="mceItemParam"></span> <BR><B>Axis ActiveX Camera Control</B><BR>";
output += "The AXIS ActiveX Camera Control, which enables you ";
output += "to view live image streams in Microsoft Internet";
output += " Explorer, could not be registered on your computer.";
output += "<BR></span>";
}
else
{
// If not IE for Windows use the browser itself to display
output = "<IMG SRC="\" mce_SRC="\""";
output += BaseURL;
output += File;
output += "&dummy=garb\" HEIGHT=\"";
// The above dummy cgi-parameter helps some versions of NS
output += DisplayHeight;
output += "\" WIDTH=\"";
output += DisplayWidth;
output += "\" ALT=\"Moving Image Stream\">";
}
document.write(output);
// --></script>
<img src="axis-cgi/mjpg/video.cgi?resolution=320x240&dummy=garb" border="0" alt="Moving Image Stream" width="320" height="240" />
Ich habe bisher nur versucht, das im Content-Manager als html auf eine Seite einzufügen. Das Bild wird nicht angezeigt, nur der Alttext. Wie möchte der Veyton das gerne haben, damit es ggf. funktioniert? Danke, Grüße ako |
|
|||
|
Hallo amilo,
das hatte ich mir gedacht und habs probiert, aber vmtl. habe ich dabei etwas falsch gemacht. Reicht es den gesamten Code in {literal} zu setzen oder wie?! Ich hatte das vor <script> und nach dem </script> eingefügt?! Gruß ako Edit: Jetzt hatte ich mal nur die { } in {literal}{/literal} gepackt. So wie ich das auch bei CSS machte. Klappt auch nicht... Geändert von ako (18.08.2010 um 16:07 Uhr) |
|
|||
|
Amilo, hast Du für mich noch eine genauere Erklärung, wie und wo diese literals
hinkommen sollen? Ich bekomme die Cam nach wie vor nicht aktiviert. Danke Edit: Problem gelöst. Problem lag zwischen meinen Ohren. Habe den absoluten Pfad zum Image am Ende des Scripts falsch gestrickt. Diese Literals musste ich nicht benutzen. Das komplette Script im Content-Manager nach Klick auf "html" einfügen und gut ist. Geändert von ako (12.09.2010 um 21:55 Uhr) |
![]() |
| Lesezeichen |
| Stichworte |
| bild, einfügen, webcam |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Content Element Bild einfügen | extra | Fragen zur Software | 3 | 26.04.2010 16:46 |
| bild hinter text einfügen oder text auf bild ? | wiewaswo? | Admininterface | 2 | 03.04.2009 19:07 |
| Content Manager - Bild einfügen | ETESTS | Admininterface | 1 | 09.02.2008 20:11 |