Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Webcam in HTML-Site

Empfohlene Antworten

Veröffentlicht

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>

Hallo,

von welcher Seite hast Du das?

Hast du auch das auf deinen Server--->axis-cgi/mjpg/video.cgi

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.

Die video.cgi, auf was hast du die gestellt(chmod)??

Ich kann diese Datei gar nicht ändern!!

Unterstützt dein Server überhaupt *.cgi/*.pl?

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:

Poste doch mal die URL von deiner Seite wo die Cam sein soll!

Die liegt ja im Moment noch auf meinem Rechner. Damit ich das erstmal alles so testen kann.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.