Live Video from Axis Encoder
var BaseURL = "http://172.20.0.20/";
var Camera = "";
var ImageResolution = "704x480";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 += 'CODEBASE="';
output += BaseURL;
output += 'activex/AMC.cab">';
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 = 'output += DisplayHeight;
output += '" WIDTH="';
output += DisplayWidth;
output += '" ALT="Camera Image">';
}
document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen";