Embedded or use web page for Axis camera crashes client.
I am trying to use Xibo to make a matrix of all of the security cameras in our building. I would like to use the embedded element or if it doesn't work, then the webpage element. When I try to do this the client crashes.
I am using Server 2012r2 for my server and a Win 7 desktop as the client. I have tried this with both 1.4.2 and 1.6.0 with the same result. The client is running IE8 and I have made sure that the Axis client is installed and it can view a html file that has the script embedded in it with no passwords or prompts. IE11 has some addidtional complication of the camera needing to be run in compatibility mode.
Here is the script that I am trying to use:
<SCRIPT LANGUAGE=
// Set the BaseURL to the URL of your camera
var BaseURL = "http://
// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = "480";
var DisplayHeight = "360";
var textstring = escape("Test")
// This is the path to the image generating file inside the camera itself
var File = "axis-cgi/
// No changes required below this point
var output = "";
if ((navigator.appName == "Microsoft Internet Explorer") &&
(navigator.
{
// If Internet Explorer under Windows then use ActiveX
output = '<OBJECT ID="Player" width='
output += DisplayWidth;
output += ' height=';
output += DisplayHeight;
output += ' CLASSID=
output += 'CODEBASE="';
output += BaseURL;
output += 'activex/
output += '<PARAM NAME="MediaURL" VALUE="';
output += BaseURL;
output += File + '">';
output += '<param name="MediaType" value="
output += '<param name="ShowStatu
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<param name="StretchToFit" value="1">';
// Remove the // for the ptz settings below to use the code for click-in-image.
// output += '<param name="PTZContro
// output += BaseURL;
// output += '/axis-
// output += '<param name="UIMode" value="
output += '<BR><B>Axis Media Control</B><BR>';
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 += '<BR></OBJECT>';
} else {
// If not IE for Windows use the browser itself to display
theDate = new Date();
output = '<IMG SRC="';
output += BaseURL;
output += File;
output += '&dummy=' + theDate.
output += '" HEIGHT="';
output += DisplayHeight;
output += '" WIDTH="';
output += DisplayWidth;
output += '" ALT="Camera Image">';
}
document.
document.
// Remove the // below to use the code for Motion Detection.
// document.
// document.
// document.
</SCRIPT>
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Xibo Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: