Veröffentlicht 14. September 200124 j 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>
14. September 200124 j Hallo, von welcher Seite hast Du das? Hast du auch das auf deinen Server--->axis-cgi/mjpg/video.cgi
14. September 200124 j 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.
20. September 200123 j 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:
21. September 200123 j Die liegt ja im Moment noch auf meinem Rechner. Damit ich das erstmal alles so testen kann.
21. September 200123 j 1.Warum hast du das nicht gleich gesagt 2.Was für einen Server hast du 3.Wir machen das jetzt per E-Mail geheim@newmail.net
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.