Zum Inhalt springen

Webcam in HTML-Site


Empfohlene Beiträge

Geschrieben

HI Leute!

Ich möchte gerne eine Webcam in eine HTML-Site einbinden.

Der Quellquode sieht so aus, und funktioniert auf der Originalseite, aber nicht bei mir!!!!!! WARUM NICHT???

<html>

<head>

<META HTTP-EQUIV="Expires" CONTENT="0">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">

<title>Blick aus dem LAG</title>

</head>

<body>

<center>

<h2>Blick aus dem LAG</h2>

<!-- Cut from here to the end of image display comment -->

<!-- Note: If you do not see a JavaScript below in the view source window you must -->

<!-- first save the html file from your browser, then open the saved -->

<!-- file in a text editor, for instance Notepad.-->

<SCRIPT LANGUAGE="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://10.74.192.205/";

// DisplayWidth specifies the displayed width of the image.

// You may have any number here, the effect will be horizontal

// strech or shrink of the image

var DisplayWidth = "320";

// DisplayHeight specifies the displayed width of the image.

// You may have any number here, the effect will be vertical

// strech or shrink of the image

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 Java Applet

output = "<APPLET ARCHIVE=AxisCamApplet.zip CODEBASE=\"";

output += BaseURL;

output += "java/\"";

output += " CODE=AxisCamApplet.class HEIGHT=";

output += DisplayHeight;

output += " WIDTH=";

output += DisplayWidth;

output += ">";

output += "<PARAM NAME=\"StreamLocation\" VALUE=\"";

output += BaseURL;

output += File;

output += "&showlength=1\">";

output += "</APPLET>";

document.onstop=stopit;

function stopit() {

document.applets[0].stop();

}

}

else

{

// If not IE for Windows use the browser itself to display

output = "<IMG 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>

<!-- End of image display part -->

</BODY></HTML>

Ich hoffe jemand hat eine Idee!!!!

CU soon

Kim

<FONT COLOR="#a62a2a" SIZE="1">[ 14. September 2001 12:50: Beitrag 1 mal editiert, zuletzt von KimH ]</font>

Geschrieben

Den Quellcode hab ich von den Demoseiten der Cam. Únd die Datei axis-cgi/mjpg/video.cgi liegt auf dem Webserver der Cam. Hab ich schon nachgesehen.

Geschrieben

Ja tut er!!

Wenn ich die Seite öffne sieht auch alles ganz gut aus, aber es erscheint kein Bild. Wenn ich dann mit der Maus über die Stelle fahre, wo eigentlich das Bild sein sollte, sagt mir der Browser: Applett gestartet. So langsam verstehe ich gar nichts mehr!! :confused:

Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde Dich hier an.

Jetzt anmelden

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...