Webcam

// Set the BaseURL to the URL of your camera
//Example: var BaseURL = „http://172.21.1.122/“;

var BaseURL = „http://gadmen.ddns.net/“;

// The two following lines need to be changed if an an AXIS 241S(A)/241Q(A)/240Q/243SA is used:

var Camera = „“; // If you use an AXIS 240Q/241S(A)/241Q(A)/243SA, comment away this line by inserting „//“
// var Camera = „n“; // Change n to the Video source used in the AXIS 240Q/ 241S(A)/241Q(A)/243SA and remove „//“

// Go to the camera used and remove the „//“ in front of the ImageResolution to be used.
// Note that only one can be enabled at a time.

// List of additional available resolutions is shown in the product’s configuration.

// AXIS 207/210/210A/211/211A/212 PTZ/216FD/221/225FD
// var ImageResolution = „320×240“;var DisplayWidth = „320“;var DisplayHeight = „240“;
var ImageResolution = „1920×1080“;var DisplayWidth = „100%“;var DisplayHeight = „100%“;

// AXIS 213 PTZ/214 PTZ/231D(+)/232D(+)/240Q/241S(A)/241Q(A)/243SA PAL
// var ImageResolution = „352×288“;var DisplayWidth = „352“;var DisplayHeight = „288“;
// var ImageResolution = „704×576“;var DisplayWidth = „704“;var DisplayHeight = „576“;

// AXIS 213 PTZ/214 PTZ/231D(+)/232D(+)/240Q/241S(A)/241Q(A)/243SA NTSC
// var ImageResolution = „352×240“;var DisplayWidth = „352“;var DisplayHeight = „240“;
// var ImageResolution = „704×480“;var DisplayWidth = „704“;var DisplayHeight = „480“;

// This is the path to the image generating file inside the camera itself
var File = „axis-cgi/mjpg/video.cgi?resolution=“+ImageResolution;
// No changes required below this point
if (Camera != „“) {File += „&camera=“ + Camera;}
var output = „“;
if ((navigator.appName == „Microsoft Internet Explorer“) &&
(navigator.platform != „MacPPC“) && (navigator.platform != „Mac68k“))
{
// If Internet Explorer under Windows then use ActiveX
output = “;
output += “;
output += “;
output += “;
output += “;
output += “;
output += “;
output += ‚
Axis Media Control
‚;
output += ‚The AXIS Media Control, which enables you ‚;
output += ‚to view live image streams in Microsoft Internet‘;
output += ‚ Explorer, could not be registered on your computer.‘;
output += ‚
‚;
} else {
// If not IE for Windows use the browser itself to display
theDate = new Date();
output = ‚Camera Image‚;
}
document.write(output);
document.Player.ToolbarConfiguration = „play,+snapshot,+fullscreen“;

Kommentar verfassen