axis
By: bla | Date: Feb 25 2010 09:10 | Format: HTML 4.01 strict | Expires: never | Size: 62.53 KB | Hits: 2985
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Expires" content="Tue, 12 May 1962 1:00:00 GMT">
- <meta http-equiv="Pragma" content="no-cache">
- <meta http-equiv="Cache-Control" content="no-cache">
- <meta http-equiv="Content-type" CONTENT="text/html; charset=iso-8859-1">
- <meta http-equiv="Content-language" CONTENT="en">
- </noscript>
- <!-- GLOBAL JAVASCRIPTS -->
- <script language="JavaScript" type="text/javascript"><!--
- function launch(url) {
- var w = 480, h = 340;
- if (document.all) {
- /* the following is only available after onLoad */
- w = document.body.clientWidth;
- h = document.body.clientHeight;
- }
- else if (document.layers) {
- w = window.innerWidth;
- h = window.innerHeight;
- }
- var popW = 475, popH = 590;
- var leftPos = (w-popW)/2, topPos = (h-popH)/2;
- self.name = "opener";
- remote = open(url, 'helpWin', "resizable,scrollbars,status,width=" + popW + ",height="+popH+",left="+leftPos+",top="+topPos+"");
- //Fix for IE6 to solve problem with video stopping when opening help
- try {
- if ((typeof(useAMC) != "undefined")&&(useAMC == "yes") &&(navigator.appVersion.indexOf("MSIE 6") != -1) && (typeof(stopStartStream) == "function") && (typeof(imagepath) == "string"))
- stopStartStream(imagepath);
- } catch (e) {}
- }
- function openPopUp(thePage, theName, theWidth, theHeight)
- {
- theWidth = Number( theWidth ) + 10;
- theHeight = Number( theHeight ) + 20;
- var someFeatures = 'scrollbars=yes,toolbar=0,location=no,directories=0,status=0,menubar=0,resizable=1,width=' + theWidth + ',height=' + theHeight;
- var aPopUpWin = window.open(thePage, theName, someFeatures);
- if (navigator.appName == "Netscape") {
- aPopUpWin.focus();
- }
- }
- function showStatus(msg)
- {
- window.status = msg
- return true
- }
- // -->
- <!--
- function CSS ()
- {
- if ((navigator.appVersion.indexOf("Mac") != -1) && (navigator.appName.indexOf("Netscape") != -1)) {
- document.write('<link rel="stylesheet" href="/css/mac_ns.css" type="text/css">');
- } else if ((navigator.appVersion.indexOf("Mac") != -1) && (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)) {
- document.write('<link rel="stylesheet" href="/css/mac_ie.css" type="text/css">');
- } else if ((navigator.appVersion.indexOf("Win") != -1) && (navigator.appName.indexOf("Netscape") != -1)) {
- document.write('<link rel="stylesheet" href="/css/win_ns.css" type="text/css">');
- } else if ((navigator.appVersion.indexOf("Win") != -1) && (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)) {
- document.write('<link rel="stylesheet" href="/css/win_ie.css" type="text/css">');
- } else if (navigator.appName.indexOf("Netscape") != -1) {
- // Unix or other system
- document.write('<link rel="stylesheet" href="/css/win_ns.css" type="text/css">');
- } else {
- document.write('<link rel="stylesheet" href="/css/other.css" type="text/css">');
- }
- // Wrapper for old browsers which can't handle getElementById
- if(!document.getElementById) {
- document.getElementById = function(element)
- {
- return eval("document.all." + element);
- }
- }
- }
- // -->
- </script>
- <script language="JavaScript" type="text/javascript"><!--
- CSS ();
- // -->
- </script>
- <script language="JavaScript" type="text/javascript">
- <!--
- function SubmitForm()
- {
- document.WizardForm.submit();
- }
- // -->
- </script>
- <!-- END GLOBAL JAVASCRIPTS -->
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- if ((navigator.appName == "Microsoft Internet Explorer") &&
- (navigator.platform != "MacPPC") &&
- (navigator.platform != "Mac68k")) {
- var browser = "IE"
- } else {
- var browser = "Netscape"
- }
- function drawBoxHeader(title)
- {
- var args = drawBoxHeader.arguments;
- var fill = (args.length >= 2 ? args[1] : false);
- document.write('' +
- '<td' + (fill ? ' width="100%"' : '') + '>' +
- ' <table width="100%" height="46" cellpadding=0 cellspacing=0 border=0>' +
- ' <tr>' +
- ' <td colspan=2 width=5 background="/pics/gray_corner_lt_5x50px.gif"><img src="/pics/blank.gif" width=5 height=5 border=0 alt=""></td>' +
- ' <td valign="top" align="center" width="100%" background="/pics/gray_t_5x50px.gif" height="5" class="funcText" nowrap>' + title + '</td>' +
- ' <td colspan=2 width=5 background="/pics/gray_corner_rt_5x50px.gif"><img src="/pics/blank.gif" width=5 height=5 border=0 alt=""></td>' +
- ' </tr>' +
- ' <tr>' +
- ' <td width=1 class="lineBg"><img src="/pics/blank.gif" width=1 height=5 alt=""></td>' +
- ' <td width=4><img src="/pics/blank.gif" width=4 height=5 alt=""></td>' +
- ' <td valign="middle" align="center" width="100%">' +
- ' <table cellpadding=0 cellspacing=0 border=0>' +
- ' <tr>');
- }
- function drawBoxFooter()
- {
- document.write('' +
- ' </tr>' +
- ' </table>' +
- ' </td>' +
- ' <td width=4><img src="/pics/blank.gif" width=4 height=5 alt=""></td>' +
- ' <td width=1 class="lineBg"><img src="/pics/blank.gif" width=1 height=5 alt=""></td>' +
- ' </tr>' +
- ' <tr>' +
- ' <td colspan=2 width=5 height=5><img src="/pics/line_corner_lb_5x5px.gif" width=5 height=5 border=0 alt=""></td>' +
- ' <td width="100%" height=5 background="/pics/line_b_100x5px.gif"><img src="/pics/blank.gif" width=1 height=5 alt=""></td>' +
- ' <td colspan=2 width=5 height=5><img src="/pics/line_corner_rb_5x5px.gif" width=5 height=5 border=0 alt=""></td>' +
- ' </tr>' +
- ' </table>' +
- '</td>');
- }
- function drawBoxButton(pic, title)
- {
- var args = drawBoxButton.arguments;
- var url = (args.length >= 3 ? args[2] : null);
- var name = (args.length >= 4 ? args[3] : null);
- var pressed = (args.length >= 5 ? args[4] : null);
- var on_click = (args.length >= 6 ? args[5] : null);
- var width = (args.length >= 7 ? args[6] : 27);
- var height = (args.length >= 8 ? args[7] : 27);
- if (url) {
- if (name) {
- document.write('<td valign="middle" align="left">' +
- '<a href="' + url + '" id="' + name +'_link" target="Temp"' +
- (on_click ? ' onClick="' + on_click+ '"' : '') +
- ' onMouseDown="movepic('' + name + '', '' + pressed + '')"' +
- ' onMouseUp="movepic('' + name + '', '' + pic + '')"' +
- '>' +
- '<img name="' + name + '" src="' + pic + '" ' +
- 'width=' + width + ' height=' + height + ' border=0 ' +
- (title ? ' title="' + title + '" alt="' + title + '"' : '') +
- '>' +
- '</a>' +
- '</td>');
- } else {
- document.write('<td valign="middle" align="left">' +
- '<a href="' + url + '" target="_self"' +
- (on_click ? ' onClick="' + on_click+ '"' : '') +
- '>' +
- '<img src="' + pic + '" ' +
- 'width=' + width + ' height=' + height + ' border=0 ' +
- (title ? ' title="' + title + '" alt="' + title + '"' : '') +
- '>' +
- '</a>' +
- '</td>');
- }
- } else {
- document.write('<td valign="middle" align="left">' +
- '<img src="' + pic + '" ' +
- 'width=' + width + ' height=' + height + ' border=0' +
- (title ? ' title="' + title + '" alt="' + title + '"' : '') +
- '>' +
- '</td>');
- }
- }
- function drawBoxToggleButton(picActive, picActivePressed, titleActive, urlActive, nameActive, picInactive, picInactivePressed, titleInactive, urlInactive, nameInactive, initStatusActive)
- {
- document.write('<td valign="middle" align="left">' +
- '<a href="' + urlActive + '" target="Temp"' +
- ' onMouseDown="movepic('' + nameActive + '', '' + picActivePressed + ''); movepic('' + nameInactive + '', '' + picInactive + '')"' +
- '>' +
- '<img name="' + nameActive + '" src="' + (initStatusActive ? picActivePressed : picActive) + '" ' +
- 'width=27 height=27 border=0 ' +
- ' title="' + titleActive + '" alt="' + titleActive + '"' +
- '>' +
- '</a>' +
- '</td>');
- document.write('<td valign="middle" align="left">' +
- '<a href="' + urlInactive + '" target="Temp"' +
- ' onMouseDown="movepic('' + nameActive + '', '' + picActive + ''); movepic('' + nameInactive + '', '' + picInactivePressed + '')"' +
- '>' +
- '<img name="' + nameInactive + '" src="' + (!initStatusActive ? picInactivePressed : picInactive) + '" ' +
- 'width=27 height=27 border=0 ' +
- ' title="' + titleInactive + '" alt="' + titleInactive + '"' +
- '>' +
- '</a>' +
- '</td>');
- }
- function drawBoxSpacer()
- {
- document.write('<td width=5><img src="/pics/blank.gif" width=5 height=5 alt=""></td>');
- }
- function changeaudioclip(clipselect)
- {
- document.getElementById('audioclipbutton_link').href =
- '/axis-cgi/playclip.cgi?clip=' + clipselect.value;
- }
- function listVideoSources()
- {
- var formInt = document.listFormInt
- var formExt = document.listFormExt
- var presetForm = document.listFormPreset;
- var form = document.WizardForm
- var currentPath = '/axis-media/media.amp?videocodec=h264';
- var imageSource;
- if ((1 > 1) ||
- ext_sources > 0
- ) {
- document.write('<select name="videoList" onChange="selectView()" >');
- if ((1 == 1) &&
- ext_sources == 0
- ) {
- document.write('<option class="gray" value="no_change"> ----------------</option>');
- } else {
- for (i = 0; i < 1; i++) {
- var camera_nice_nbr = i + 1;
- imageSource = "/axis-media/media.amp?videocodec=h264";
- document.write('<option value="' + imageSource + '"');
- if (imageSource == currentPath ||
- '/jpg/image.jpg' == currentPath) {
- document.write(' selected');
- }
- document.write('>' + formInt['root_ImageSource_I' + i + '_Name'].value + '</option>');
- }
- }
- var viewAppletIE = "no";
- var viewAppletOther = "no";
- // Don't show external sources while using Java applet as Default Viewer. An unsigned applet doesn't have permission to access remote hosts.
- if (((browser == "IE") && (viewAppletIE == "no")) || ((browser != "IE") && (viewAppletOther == "no"))) {
- if (formExt.elements.length > 0) {
- for (i = 0; i < formExt.elements.length; i += 3) {
- var aTempString = formExt.elements[i].name
- var videoNr = aTempString.substring(20, aTempString.lastIndexOf('_'))
- var external = formExt['root_ExternalVideo_E' + videoNr + '_ImagePath'].value;
- document.write('<option value="' + external + '"');
- if (formExt['root_ExternalVideo_E' + videoNr + '_ImagePath'].value == currentPath)
- document.write(' selected');
- document.write('>' + formExt['root_ExternalVideo_E' + videoNr + '_Name'].value + '</option>');
- }
- }
- }
- document.write('</select>');
- document.write("<input type="button" value="Go" width="40" onClick="JavaScript:selectView()">");
- //} else {
- // document.write(formInt.root_ImageSource_I0_Name.value);
- }
- }
- function zoom(size)
- {
- var url = document.URL;
- if (url.indexOf("?") == -1) {
- url += "?size=" + size
- } else if (url.indexOf("size=") == -1) {
- url += "&size=" + size
- } else {
- var searchStr = "size=1"
- var replaceStr = "size=" + size
- var re = new RegExp(searchStr , "g")
- url = url.replace(re, replaceStr)
- }
- document.location = url;
- }
- var aNewImagePath;
- function reloadPage()
- {
- document.location = aNewImagePath;
- }
- function selectView()
- {
- var form = document.WizardForm;
- var source = form.videoList.options[form.videoList.selectedIndex].value;
- var params = source.split('&');
- var newCamera = null;
- var presetName = null;
- if ((params[1] != null) && ("no" == "no")) {
- if (source.lastIndexOf("camera=") != -1) {
- if (source.lastIndexOf("&") > source.lastIndexOf("camera="))
- newCamera = source.substring(source.lastIndexOf("camera=")+7, source.lastIndexOf("&"))
- else
- newCamera = source.substr(source.lastIndexOf("camera=")+7)
- }
- if (source.lastIndexOf("gotopresetname=") != -1) {
- if (source.lastIndexOf("&") > source.lastIndexOf("gotopresetname="))
- presetName = source.substring(source.lastIndexOf("gotopresetname=")+15, source.lastIndexOf("&")-1)
- else
- presetName = source.substr(source.lastIndexOf("gotopresetname=")+15)
- }
- source = params[0];
- if (source.indexOf("?") != -1)
- source = source.substring(0, source.indexOf("?"))
- } else if (source == "no_change") {
- return;
- }
- if (presetName != null) gotopresetname = presetName;
- changeView(source, newCamera, presetName);
- }
- function changeView(imagePath)
- {
- var args = changeView.arguments;
- var newCamera = (args.length >= 2 ? args[1] : null);
- var presetName = (args.length >= 3 ? args[2] : null);
- var newSize = (args.length >= 4 ? args[3] : null);
- var other = (args.length >= 5 ? args[4] : null);
- // Go to correct preset when coming from an external video source
- if ((presetName == null || presetName == "") && (imagePath.indexOf("gotopresetname=") != -1)) {
- presetName = imagePath.slice(imagePath.indexOf("gotopresetname=") + 15)
- if (presetName.indexOf("&") != -1)
- presetName = presetName.substring(0, presetName.indexOf("&"))
- }
- if ((newCamera == null || newCamera == "") && (imagePath.indexOf("camera=") != -1)) {
- newCamera = imagePath.slice(imagePath.indexOf("camera=") + 7)
- if (newCamera.indexOf("&") != -1)
- newCamera = newCamera.substring(0, newCamera.indexOf("&"))
- }
- var reload = false;
- // the whole Live View design is built on page reload >-(
- // must reload initial sequence mode view to toggle buttons etc
- reload = (other != null && other.search("seq=yes"));
- var delay = 0;
- reload |= (imagePath != '/axis-media/media.amp?videocodec=h264');
- if (reload) {
- var size = newSize;
- // avoid request being suspended due to page reload
- delay = 100;
- if (size == null) {
- size = 1;
- }
- if (size != null) {
- size = '&size=' + size;
- }
- aNewImagePath = '/view/view.shtml?id=22&imagePath=' + escape(imagePath) + size;
- if (other != null)
- aNewImagePath += other;
- setTimeout("reloadPage()", delay);
- }
- }
- var seqNext = null;
- function doSequence(size) {
- var formSeq = document.listFormSeq;
- var formExt = document.listFormExt;
- var presetForm = document.listFormPreset;
- var seqSources = new Array();
- var seqNumbers = new Array();
- var seqTimes = new Array();
- var cameraNbr;
- var presetName = null;
- var imagePath;
- var next;
- for (var i = 0; i < formSeq['root_Sequence_S0_NbrOfSources'].value; i++) {
- seqSources[i] = formSeq['root_Sequence_S0_Source_S' + i + '_Type'].value;
- seqNumbers[i] = formSeq['root_Sequence_S0_Source_S' + i + '_Number'].value;
- seqTimes[i] = formSeq['root_Sequence_S0_Source_S' + i + '_Time'].value;
- }
- if (seqNext != null) {
- next = seqNext;
- } else {
- next = 0;
- }
- imagePath = "";
- if (seqSources[next] == 'Ext') {
- imagePath = formExt['root_ExternalVideo_E' + seqNumbers[next] + '_ImagePath'].value;
- }
- else if (seqSources[next] == 'Quad') {
- cameraNbr = 'quad';
- } else {
- cameraNbr = parseInt(seqNumbers[next]) + 1;
- }
- if (imagePath == "") {
- imagePath = '/axis-media/media.amp?videocodec=h264&camera=' + cameraNbr;
- }
- var nextNext;
- if (formSeq['root_Sequence_S0_RandomEnabled'].value == "yes")
- nextNext = Math.floor(Math.random() * formSeq['root_Sequence_S0_NbrOfSources'].value);
- else
- nextNext = next + 1;
- if (nextNext >= formSeq['root_Sequence_S0_NbrOfSources'].value)
- nextNext = 0;
- seqNext = nextNext;
- changeView(imagePath, cameraNbr, presetName, size, '&seq=yes&next=' + nextNext + '&sequencetime=' + seqTimes[next]);
- t1 = setTimeout("doSequence(" + size + ")", 1000 * seqTimes[next]);
- }
- function snapshot(imagepath)
- {
- var no = document.WizardForm.amount.value++
- var picturepath;
- var protEnd = imagepath.indexOf("://");
- var camIndex = imagepath.indexOf("camera=");
- if (imagepath.charAt(0) == '/' && protEnd < 0) {
- if (camIndex >= 0) {
- var secondEt = imagepath.indexOf('&', camIndex);
- var camnbr = imagepath.substring(camIndex + 7, (secondEt >= 0 ? secondEt : imagepath.length));
- } else {
- var firstSlash = imagepath.indexOf('/', 1);
- var secondSlash = imagepath.indexOf('/', firstSlash);
- var camnbr = imagepath.substring(firstSlash, (secondSlash >= 0 ? secondSlash : imagepath.length));
- }
- picturepath = "/jpg/" + camnbr + "/image.jpg";
- } else {
- if (imagepath.indexOf("h264") >= 0 || imagepath.indexOf("mpeg4") >= 0) {
- var prot = document.location.protocol;
- var imageHost = imagepath.substring(protEnd + 3, imagepath.indexOf('/', protEnd+3));
- var secondEt = imagepath.indexOf('&', camIndex);
- var camnbr = imagepath.substring(camIndex + 7, (secondEt >= 0 ? secondEt : imagepath.length));
- picturepath = prot + "//" + imageHost + "/jpg/" + camnbr + "/image.jpg";
- } else {
- picturepath = imagepath.replace(/video/, "image").replace(/mjpg/g, "jpg");
- }
- }
- var page = 'snapshot.shtml?picturepath=' + picturepath
- var time = new Date()
- var timestamp = time.getTime()
- page += '×tamp=' + timestamp + '&width=' + 640
- openPopUp(page, 'Take_snapshot' + [no] + '', 640 + 45, 480 + 75 )
- }
- function movepic(img_name, img_src)
- {
- document[img_name].src = img_src;
- }
- function auto(Path)
- {
- parent.frames[1].location = Path
- }
- function AbsoluteOrRelative(form)
- {
- var url = document.URL;
- if (form.AbsOrRel.selectedIndex == 0)
- var relative = "no";
- else
- var relative = "yes_no_cross";
- if (url.indexOf("?") == -1) {
- url += "?relative=" + relative;
- } else if (url.indexOf("relative=") == -1) {
- url += "&relative=" + relative;
- } else {
- var searchStr = "relative=";
- var replaceStr = "relative=" + relative;
- var re = new RegExp(searchStr , "g");
- url = url.replace(re, replaceStr);
- }
- document.location = url;
- }
- var stillImagePath;
- var use_activex = 0;
- var use_java = 0;
- var use_spush = 0;
- var use_flash = 0;
- var use_still = 0;
- var use_quicktime = 0;
- function video(imagepath)
- {
- var resolution = 0
- var width = 0
- var height = 0
- if (imagepath.indexOf("resolution=") != -1) {
- var resStart = imagepath.indexOf("resolution=")
- var resStop = imagepath.indexOf("&", resStart)
- if (resStop == -1) resStop = imagepath.length
- resolution = imagepath.substring(resStart + 11, resStop);
- if (resolution.indexOf('x') != -1) {
- width = parseInt(resolution.substring(0, resolution.indexOf('x')));
- height = parseInt(resolution.slice((resolution.indexOf('x') + 1)));
- }
- }
- if (!(width > 0 && height > 0)) {
- if ((imagepath.indexOf("mpeg4") != -1) || (imagepath.indexOf("h264") != -1)) {
- width = parseInt("640");
- height = parseInt("480");
- resolution = width + 'x' + height;
- } else {
- width = parseInt("640");
- height = parseInt("480");
- resolution = width + 'x' + height;
- }
- }
- if ('1' != '1') {
- var strSize = '1';
- var sizeNum = 0;
- //floating number try to parse it
- if( strSize.indexOf('.') != -1 )
- {
- sizeNum = parseFloat( strSize );
- //might be the wrong decimal separation
- if( sizeNum == 0 || isNaN( sizeNum ) )
- {
- strSize = strSize.replace( ".", "," );
- sizeNum = parseFloat( strSize );
- }
- }
- else if( strSize.indexOf(',') != -1 )
- {
- sizeNum = parseFloat( strSize );
- //might be the wrong decimal separation
- if( sizeNum == 0 || isNaN( sizeNum ) )
- {
- strSize = strSize.replace( ",", "." );
- sizeNum = parseFloat( strSize );
- }
- }
- else
- {
- sizeNum = parseInt( strSize );
- }
- width = width * sizeNum;
- height = height * sizeNum;
- }
- var width_height = 'width="' + width + '" height="' + height + '"';
- var viewer = "still";
- if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
- viewer = "activex";
- } else {
- viewer = "spush";
- }
- if (viewer.indexOf("activex") != -1) {
- use_activex = 1;
- }
- if (viewer.indexOf("spush") != -1) {
- use_spush = 1;
- }
- if (viewer.indexOf("flash") != -1) {
- use_flash = 1;
- }
- if (viewer.indexOf("quicktime") != -1) {
- use_quicktime = 1;
- }
- if ((imagepath.indexOf("videocodec=mpeg4") != -1) || (imagepath.indexOf("videocodec=h264") != -1)) {
- if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
- use_quicktime = 0;
- use_activex = 1;
- } else {
- use_quicktime = 1;
- use_spush = 0;
- use_still = 0;
- }
- } else {
- if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
- use_quicktime = 0;
- use_activex = 1;
- } else {
- use_quicktime = 0;
- use_spush = 1;
- use_still = 0;
- }
- }
- if (viewer.indexOf("java") != -1) {
- if ((imagepath.indexOf("mpeg4") == -1) && (imagepath.indexOf("h264") == -1)) {
- use_java = 1;
- use_activex = 0;
- use_spush = 0;
- use_flash = 0;
- use_still = 0;
- use_quicktime = 0;
- }
- }
- if ((viewer.indexOf("still") != -1) || !(use_activex || use_spush || use_flash || use_java || use_quicktime)) {
- if ((imagepath.indexOf("mpeg4") == -1) && (imagepath.indexOf("h264") == -1)) {
- use_still = 1;
- use_quicktime = 0;
- use_spush = 0;
- use_activex = 0;
- } else {
- if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
- use_activex = 1;
- } else {
- use_quicktime = 1;
- }
- }
- }
- var agent = navigator.userAgent.toLowerCase();
- if (agent.indexOf("applewebkit/") != -1) {
- var pos = agent.indexOf("applewebkit/") + 12
- var webKitVersion = parseInt(agent.substring(pos, agent.indexOf(" ", pos)))
- if ((use_spush) && (webKitVersion < 416)) {
- use_java = 1;
- use_spush = 0;
- }
- }
- if (use_activex) {
- height = height + 54
- var notAuthorizedText = "The installation of the MPEG-4 Decoder has been disabled. Contact the Administrator of this AXIS M1031-W Network Camera.";
- var notAuthorizedH264Text = "The installation of the H.264 Decoder has been disabled. Contact the Administrator of this AXIS M1031-W Network Camera.";
- var authorizedText = "Click here to install or upgrade the MPEG-4 Decoder.";
- var authorizedH264Text = "Click here to install or upgrade the H.264 Decoder.";
- var installDecoderText1 = "<b>MPEG-4 Decoder</b>, which enables streaming video in Microsoft Internet Explorer, has not been installed or could not be registered on this computer.";
- var installDecoderH264Text1 = "<b>The H.264 Decoder</b>, which enables streaming video in Microsoft Internet Explorer, has not been installed or could not be registered on this computer.";
- var installDecoderText2 = "To <a href="javascript:launch('/incl/license.shtml')">install or upgrade</a> the MPEG-4 Decoder, you must have Administration rights on this computer and you must answer Yes <br>when asked if you wish to allow the installation. AXIS M1031-W Network Camera can also be configured to show still images.";
- var installDecoderH264Text2 = "To <a href="javascript:launch('/incl/license_h264.shtml')">install or upgrade</a> the H.264 Decoder, you must have Administration rights on this computer and you must answer Yes <br>when asked if you wish to allow the installation. AXIS M1031-W Network Camera can also be configured to show still images.";
- var notAuthorizedAacText = "The installation of the AAC Decoder has been disabled. Contact the Administrator of this AXIS M1031-W Network Camera.";
- var authorizedAacText = "Click here to install or upgrade the AAC Decoder.";
- var installAacDecoderText1 = "<b>AAC Decoder</b>, which enables streaming AAC audio in Microsoft Internet Explorer, has not been installed or could not be registered on this computer.";
- var installAacDecoderText2 = "To <a href="javascript:launch('/incl/aac_license.shtml')">install or upgrade</a> the AAC Decoder, you must have Administration rights on this computer and you must answer Yes <br>when asked if you wish to allow the installation.";
- var installText1 = "which enables streaming";
- var videoText = "video";
- var audioText = "audio";
- var installText2 = "in Microsoft Internet Explorer, has not been installed or could not be registered on this computer.";
- var installText3 = "To install or upgrade the";
- var installText4 = ", you must have Administration rights on this computer and you must answer Yes <br>when asked if you wish to allow the installation. AXIS M1031-W Network Camera can also be configured to show still images.";
- DrawAMC("AXIS M1031-W", "AXIS Media Control", height, width, imagepath, "DE625294-70E6-45ED-B895-CFFA13AEB044", "AMC.cab", "5,4,17,13", "yes", "", "", "1", "", "", "", "", "yes", "554", "no", installText1, videoText, installText2, installText3, installText4, "0", "", "");
- if (imagepath.indexOf("mpeg4") != -1) {
- InstallDecoder("AXIS M1031-W", "MPEG-4 Decoder", "c32fe9f1-a857-48b0-b7bf-065b5792f28d", "NotFound.cab", "2,1,3,0", "yes", notAuthorizedText, authorizedText, installDecoderText1, installDecoderText2);
- InstallFilter("AXIS M1031-W", "MPEG RTP Reader", "67B1A88A-B5D2-48B1-BF93-EB74D6FCB077", "2,3,9,6", "AMC.cab", installText1, videoText, installText2, installText3, installText4);
- InstallFilter("AXIS M1031-W", "Image Notify Component", "0173EEF5-1FDE-479C-9F24-34C3CB0B3243", "1,2,1,0", "AMC.cab", installText1, videoText, installText2, installText3, installText4);
- }
- if (imagepath.indexOf("h264") != -1) {
- InstallDecoder("AXIS M1031-W", "H.264 Decoder", "7340F0E4-AEDA-47C6-8971-9DB314030BD7", "NotFound.cab", "2,1,12,0", "yes", notAuthorizedH264Text, authorizedH264Text, installDecoderH264Text1, installDecoderH264Text2);
- InstallFilter("AXIS M1031-W", "MPEG RTP Reader", "67B1A88A-B5D2-48B1-BF93-EB74D6FCB077", "2,3,9,6", "AMC.cab", installText1, videoText, installText2, installText3, installText4);
- InstallFilter("AXIS M1031-W", "Image Notify Component", "0173EEF5-1FDE-479C-9F24-34C3CB0B3243", "1,2,1,0", "AMC.cab", installText1, videoText, installText2, installText3, installText4);
- }
- InstallDecoder("AXIS M1031-W", "AAC Decoder", "ba7a56eb-d1b9-443b-96e9-086532a378f1", "NotFound.cab", "2,0,7,0", "yes", notAuthorizedAacText, authorizedAacText, installAacDecoderText1, installAacDecoderText2);
- InstallFilter("AXIS M1031-W", "AudioComponent", "C111A91F-D4EC-4D22-8D27-C3BCB0389F43", "2,1,12,9", "AMC.cab", installText1, audioText, installText2, installText3, installText4);
- document.write("<br>");
- }
- if (use_spush) {
- document.write('<table cellspacing=0 cellpadding=0 border=0><tr><td colspan="3" align="center">');
- var output = '<img id="stream" SRC="' + imagepath + '" ' + width_height;
- var view_NoImageTxt = "If no image is displayed, there might be too many viewers, or the browser configuration may have to be changed. See help for detailed instructions on how to do this."
- output += ' border=0 ALT="' + view_NoImageTxt + '">';
- output += '<br>';
- document.write(output);
- if (document.getElementById("stream"))
- var fullImagePath = document.getElementById("stream").src
- else
- var fullImagePath = "";
- stillImagePath = "/jpg/1/image.jpg"
- if (imagepath.indexOf("/axis-cgi/mjpg/video.cgi") != -1) {
- var searchStr = "/axis-cgi/mjpg/video.cgi"
- var replaceStr = "/jpg/1/image.jpg"
- var re = new RegExp(searchStr , "g")
- stillImagePath = imagepath.replace(re, replaceStr)
- }
- document.write('</td></tr>');
- document.write('<tr><td colspan="3" align="center" style="white-space:nowrap">' );
- document.write('<div class="cornerVideoBox"><div class="content">');
- document.write('<table cellspacing=0 border=0 width="100%" id="videoItems" class="shownItems">');
- document.write('<tr height="32">');
- document.write("<td align="right" width="40"><a id="stopBtn" href="javascript:void(0)" onclick="stopStartStream('" + stillImagePath + "')"><img src="/pics/stop_blue_button_27x27px.gif" width="27" height="27" alt="Stop stream" title="Stop stream" border="0" onmouseover="javascript:btnShiftCls( this, true )" onmouseout="javascript:btnShiftCls( this, false )" /></a>");
- document.write("<a id="playBtn" style="display:none;" href="javascript:void(0)" onclick="stopStartStream('" + fullImagePath + "')"><img src="/pics/play_blue_button_27x27px.gif" width="27" height="27" alt="Start stream" title="Start stream" border="0" onmouseover="javascript:btnShiftCls( this, true )" onmouseout="javascript:btnShiftCls( this, false )" /></a></td>");
- document.write("<td> </td></tr></table>");
- document.write('</div><div class="footerLeft"><div class="footerRight"></div></div></div>');
- document.write('</td></tr></table>');
- }
- if (use_quicktime) {
- var DisplayWidth = width;
- var DisplayHeight = height + 16;
- var rtspPort = "554";
- if (imagepath.indexOf("://") == -1) {
- if (location.hostname.split(":").length > 1) {
- //IPv6
- var MediaURL = "rtsp://[" + location.hostname + "]:" + rtspPort + imagepath
- } else {
- //IPv4
- var MediaURL = "rtsp://" + location.hostname + ":" + rtspPort + imagepath
- }
- } else {
- var MediaURL = imagepath
- }
- var output = "";
- output = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width=' + DisplayWidth + ' height=' + DisplayHeight + ' CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
- output += '<param name="src" value="/view/AxisMoviePoster.mov">';
- output += '<param name="autoplay" value="true">';
- output += '<param name="controller" value="true">';
- output += '<param name="qtsrc" value="' + MediaURL + '">';
- output += '<embed src="/view/AxisMoviePoster.mov" width=' + DisplayWidth + ' height=' + DisplayHeight + ' qtsrc="' + MediaURL + '" autoplay="true" controller="true" target="myself" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></embed>';
- output += '</OBJECT>';
- document.write(output);
- }
- if (use_flash) {
- var view_NeedFlashPluginTxt = "You need a Shockwave Flash plugin, get it from:"
- document.write('<EMBED src="/axis-cgi/mjpg/video.swf?resolution=' + resolution +'&camera=1" ' +
- 'quality=high bgcolor=#000000 ' + width_height +
- ' TYPE="application/x-shockwave-flash" swLiveConnect=TRUE' +
- ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' +
- '</EMBED>' +
- '<NOEMBED>' + view_NeedFlashPluginTxt +
- '<a href="http://www.macromedia.com/shockwave/download/">Macromedia</a>.' +
- '</NOEMBED><br>');
- }
- if (use_java) {
- var playerWidth = width;
- var playerHeight = height + 105;
- if (playerWidth < 300)
- playerWidth = 300;
- if (imagepath.indexOf("http") != -1) {
- var addrEnd = imagepath.indexOf("/", 8);
- var addr = imagepath;
- } else {
- var addr = "";
- }
- document.write('<OBJECT name="AMA" codeBase="/java/ama" archive="ama.jar" code="ama.MediaApplet" codetype="application/x-java-applet;version=1.4" type="application/x-java-applet;version=1.4" width="' + playerWidth + '" height="' + playerHeight + '">');
- document.write('<PARAM NAME="name" VALUE="AMA">');
- document.write('<PARAM NAME="codebase" VALUE="/java/ama">');
- document.write('<PARAM NAME="archive" VALUE="ama.jar">');
- document.write('<PARAM NAME="code" VALUE="ama.MediaApplet">');
- document.write('<PARAM NAME="codetype" VALUE="application/x-java-applet;version=1.4">');
- document.write('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
- document.write('<PARAM NAME="mayscript" VALUE="false">');
- document.write('<PARAM NAME="ama_cgi-path" VALUE="axis-cgi">');
- document.write('<PARAM NAME="cache_archive" VALUE="ama.jar">');
- document.write('<PARAM NAME="cache_version" VALUE="1.1.0.3">');
- document.write('<PARAM NAME="ama_plugins" VALUE="">');
- var img_opts = "";
- if (imagepath.indexOf("?") > 0) {
- img_opts += imagepath.substring(imagepath.indexOf("?"));
- imagepath = imagepath.substring(0, imagepath.indexOf("?"));
- }
- if (img_opts.indexOf("camera=") == -1)
- img_opts += (img_opts.indexOf("?") >= 0 ? "&" : "?") + "camera=1";
- if (img_opts.indexOf("rotation=") == -1)
- img_opts += (img_opts.indexOf("?") >= 0 ? "&" : "?") + "rotation=0";
- document.write('<PARAM NAME="ama_url" VALUE="' + imagepath + img_opts + '">');
- document.write("Your browser does not support Java")
- document.write('</OBJECT><br>');
- }
- if (use_still) {
- var picturepath;
- var tmpAddress = imagepath.match(///(.+?)//g);
- if (tmpAddress == null)
- tmpAddress = imagepath.match(/(.+?)//g);
- if (imagepath.charAt(0) == '/' || tmpAddress == null)
- picturepath = "/jpg/1/image.jpg";
- else
- picturepath = document.location.protocol + "//" + tmpAddress + "/jpg/1/image.jpg";
- document.write('<img SRC="' + picturepath + '" border=0 ' + width_height +'><br>');
- }
- }
- function stopStartStream(path)
- {
- try {
- var orgPath = path;
- theDate = new Date();
- if (path.indexOf("?") != -1)
- path += "&"
- else
- path += "?"
- path += "timestamp=" + theDate.getTime()
- if (use_spush) {
- stopStartBtnShift( orgPath );
- document.getElementById("stream").src = path;
- } else if (use_activex) {
- document.Player.MediaURL = path;
- }
- }
- catch(e) {}
- }
- function stopStartBtnShift( orgPath )
- {
- if( orgPath == stillImagePath )
- {
- document.getElementById("stopBtn").style.display = 'none';
- document.getElementById("playBtn").style.display = 'inline';
- }
- else
- {
- document.getElementById("stopBtn").style.display = 'inline';
- document.getElementById("playBtn").style.display = 'none';
- }
- }
- function btnShiftCls( btnEl, over )
- {
- if( btnEl ){
- btnEl.className = ((over)?'hover':'');
- }
- }
- function goto_camera(cam)
- {
- cam += ''; // cam value needs to be a string, not an integer, for cam.length to work.
- cam = '';
- var imagePath;
- newVideoFormatCam(cam);
- }
- function getStreamProfileNbr()
- {
- return getProfileGrp(document.profileForm,"");
- }
- function getStreamProfileName()
- {
- return document.profileForm["root_StreamProfile_S" + getStreamProfileNbr() + "_Name"].value
- }
- // -->
- </SCRIPT><!-- $camnbr = quad --><!-- $external = no -->
- </head>
- <body class="bodyBg" topmargin="0" leftmargin="15" marginwidth="0" marginheight="0" onLoad="DrawTB('yes', '/axis-media/media.amp?videocodec=h264', '1', '0', 'no', '', getStreamProfileNbr());initSliders();" onResize="initSliders();">
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- var t1;
- var seqOn = "no";
- function sequence()
- {
- var size;
- if (seqOn == 'no') {
- seqOn = 'yes';
- size = 1;
- doSequence(size);
- } else {
- clearTimeout(t1);
- seqOn = 'no';
- link = document.URL;
- if (link.indexOf('seq=yes' != -1)) {
- var regexp = /seq=yes&/;
- link = link.replace(regexp, "");
- }
- document.location = link;
- }
- return;
- }
- // -->
- </SCRIPT><!-- $ptzpresets = "yes" -->
- <form name="profileForm"><input type="hidden" name="root_StreamProfile_MaxGroups" value="20" ><input type="hidden" name="root_StreamProfile_S0_Name" value="Quality" ><input type="hidden" name="root_StreamProfile_S0_Description" value="Best image quality and full frame rate." ><input type="hidden" name="root_StreamProfile_S0_Parameters" value="videocodec=h264&resolution=640x480&compression=20&fps=0&videokeyframeinterval=8&videobitrate=0" ><input type="hidden" name="root_StreamProfile_S0_Default_Name" value="Quality" ><input type="hidden" name="root_StreamProfile_S0_Default_Description" value="Best image quality and full frame rate." ><input type="hidden" name="root_StreamProfile_S0_Default_Parameters" value="videocodec=h264&resolution=640x480&compression=20&fps=0&videokeyframeinterval=8&videobitrate=0" ><input type="hidden" name="root_StreamProfile_S1_Name" value="Balanced" ><input type="hidden" name="root_StreamProfile_S1_Description" value="Medium image quality and frame rate." ><input type="hidden" name="root_StreamProfile_S1_Parameters" value="videocodec=h264&resolution=640x480&compression=30&fps=15&videokeyframeinterval=15&videobitrate=0" ><input type="hidden" name="root_StreamProfile_S1_Default_Name" value="Balanced" ><input type="hidden" name="root_StreamProfile_S1_Default_Description" value="Medium image quality and frame rate." ><input type="hidden" name="root_StreamProfile_S1_Default_Parameters" value="videocodec=h264&resolution=640x480&compression=30&fps=15&videokeyframeinterval=15&videobitrate=0" ><input type="hidden" name="root_StreamProfile_S2_Name" value="Bandwidth" ><input type="hidden" name="root_StreamProfile_S2_Description" value="Low bandwidth with medium image quality." ><input type="hidden" name="root_StreamProfile_S2_Parameters" value="videocodec=h264&resolution=640x480&compression=50&fps=15&videokeyframeinterval=30&videobitrate=250&videomaxbitrate=1000&videobitratepriority=framerate" ><input type="hidden" name="root_StreamProfile_S2_Default_Name" value="Bandwidth" ><input type="hidden" name="root_StreamProfile_S2_Default_Description" value="Low bandwidth with medium image quality." ><input type="hidden" name="root_StreamProfile_S2_Default_Parameters" value="videocodec=h264&resolution=640x480&compression=50&fps=15&videokeyframeinterval=30&videobitrate=250&videomaxbitrate=1000&videobitratepriority=framerate" ><input type="hidden" name="root_StreamProfile_S3_Name" value="Mobile" ><input type="hidden" name="root_StreamProfile_S3_Description" value="Mobile device settings." ><input type="hidden" name="root_StreamProfile_S3_Parameters" value="videocodec=h264&resolution=176x144&compression=50&fps=15&videokeyframeinterval=30&videobitrate=120&videomaxbitrate=128&videobitratepriority=quality&audio=0" ><input type="hidden" name="root_StreamProfile_S3_Default_Name" value="Mobile" ><input type="hidden" name="root_StreamProfile_S3_Default_Description" value="Mobile device settings." ><input type="hidden" name="root_StreamProfile_S3_Default_Parameters" value="videocodec=h264&resolution=176x144&compression=50&fps=15&videokeyframeinterval=30&videobitrate=120&videomaxbitrate=128&videobitratepriority=quality&audio=0" >
- </form>
- <form name="listFormInt"><input type="hidden" name="root_ImageSource_NbrOfSources" value="1" ><input type="hidden" name="root_ImageSource_I0_Name" value="Camera" ><input type="hidden" name="root_ImageSource_I0_Sensor_WhiteBalance" value="auto" ><input type="hidden" name="root_ImageSource_I0_Sensor_Exposure" value="auto" ><input type="hidden" name="root_ImageSource_I0_Sensor_MaxExposureTime" value="166667" ><input type="hidden" name="root_ImageSource_I0_Sensor_MinExposureTime" value="0" ><input type="hidden" name="root_ImageSource_I0_Sensor_MaxGain" value="100" ><input type="hidden" name="root_ImageSource_I0_Sensor_MinGain" value="0" ><input type="hidden" name="root_ImageSource_I0_Sensor_ExposureValue" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_ExposurePriority" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_ColorDesaturation" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_Brightness" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_Contrast" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_ColorLevel" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_Sharpness" value="50" ><input type="hidden" name="root_ImageSource_I0_Sensor_BacklightCompensation" value="yes" ><input type="hidden" name="root_ImageSource_I0_Sensor_DynamicPixelCorrection" value="yes" ><input type="hidden" name="root_ImageSource_I0_Sensor_ExposureWindow" value="auto" ><input type="hidden" name="root_ImageSource_I0_Sensor_CustomExposureWindow_Weight" value="100" >
- </form>
- <form name="listFormExt">
- </form>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- // Calculate the number of external sources that are supported by this browser
- var ext_sources = 0;
- ext_sources = document.listFormExt.elements.length/3;
- // -->
- </SCRIPT>
- <form name="listFormSeq">
- </form>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- // Calculate the number of sequence sources that are supported by this browser
- var seq_sources = 0;
- if (document.listFormSeq.length > 0 ) {
- if (browser == "IE") {
- seq_sources = document.listFormSeq['root_Sequence_S0_NbrOfSources'].value;
- } else {
- for (var i = 0; i < document.listFormSeq['root_Sequence_S0_NbrOfSources'].value; i++) {
- var type = document.listFormSeq['root_Sequence_S0_Source_S' + i + '_Type'].value;
- if (type != 'Ext') {
- seq_sources++;
- } else {
- var num = document.listFormSeq['root_Sequence_S0_Source_S' + i + '_Number'].value;
- var path = document.listFormExt['root_ExternalVideo_E' + num + '_ImagePath'].value;
- if ((path.indexOf("mpeg4") == -1) || (path.indexOf("h264") == -1)) {
- seq_sources++;
- }
- }
- }
- }
- }
- // -->
- </SCRIPT>
- <form name="lightsForm"><input type="hidden" name="root_LightControl_L0_Name" value="Light" ><input type="hidden" name="root_LightControl_L0_DriverType" value="pwm" ><input type="hidden" name="root_LightControl_L0_SourceType" value="whiteled" ><input type="hidden" name="root_LightControl_L0_Driver" value="pa18" ><input type="hidden" name="root_LightControl_L0_Button" value="actinact" ><input type="hidden" name="root_LightControl_L0_Activate" value="-100" ><input type="hidden" name="root_LightControl_L0_Inactivate" value="-0" ><input type="hidden" name="root_LightControl_L0_PulseTime" value="0" >
- </form>
- <form name="formlightlevel0"
- id="formlightlevel0"
- action="/axis-cgi/lightcontrol.cgi" target="Temp">
- <input type="hidden" name="light" value="1">
- <input type="hidden" name="level" value="0">
- </form>
- <form name="outputsForm"><input type="hidden" name="root_IOPort_I0_Configurable" value="no" ><input type="hidden" name="root_IOPort_I0_Direction" value="input" ><input type="hidden" name="root_IOPort_I0_Input_Name" value="PIR sensor" ><input type="hidden" name="root_IOPort_I0_Input_Trig" value="closed" >
- </form>
- <form name="audioclipsForm"><input type="hidden" name="root_MediaClip_MaxGroups" value="40" ><input type="hidden" name="root_MediaClip_M20_Name" value="Camera clicks" ><input type="hidden" name="root_MediaClip_M20_Location" value="/etc/audioclips/camera_clicks16k.au" ><input type="hidden" name="root_MediaClip_M20_Type" value="audio" ><input type="hidden" name="root_MediaClip_M21_Name" value="Pssst, Psst!" ><input type="hidden" name="root_MediaClip_M21_Location" value="/etc/audioclips/pssst_psst16k.au" ><input type="hidden" name="root_MediaClip_M21_Type" value="audio" ><input type="hidden" name="root_MediaClip_M22_Name" value="Froggy sound" ><input type="hidden" name="root_MediaClip_M22_Location" value="/etc/audioclips/frog16k.au" ><input type="hidden" name="root_MediaClip_M22_Type" value="audio" ><input type="hidden" name="root_MediaClip_M23_Name" value="Crazy monkey" ><input type="hidden" name="root_MediaClip_M23_Location" value="/etc/audioclips/monkey16k.au" ><input type="hidden" name="root_MediaClip_M23_Type" value="audio" ><input type="hidden" name="root_MediaClip_M24_Name" value="Crazy cow!" ><input type="hidden" name="root_MediaClip_M24_Location" value="/etc/audioclips/muu16k.au" ><input type="hidden" name="root_MediaClip_M24_Type" value="audio" ><input type="hidden" name="root_MediaClip_M25_Name" value="Baby is hungry" ><input type="hidden" name="root_MediaClip_M25_Location" value="/etc/audioclips/tindra_is_hungry_16k.au" ><input type="hidden" name="root_MediaClip_M25_Type" value="audio" >
- </form>
- <form name="WizardForm" method="POST">
- <input type="hidden" name="root_Layout_Trigger_T0_Enabled" value="no">
- <input type="hidden" name="root_Layout_Trigger_T1_Enabled" value="">
- <input type="hidden" name="root_Layout_Trigger_T2_Enabled" value="">
- <input type="hidden" name="root_Layout_Trigger_T3_Enabled" value="">
- <input type="hidden" name="root_Layout_Trigger_T4_Enabled" value="">
- <input type="hidden" name=amount value="0">
- <br>
- <table width=774 cellspacing=0 cellpadding=0 border=0>
- <tr>
- </tr>
- <tr>
- <td colspan=4 valign="middle" align="left" width="100%">
- <table border=0 cellspacing=0 cellpadding=0 width="100%">
- <tr>
- <td align="right">
- <table cellpadding=0 cellspacing=5 border=0>
- <tr>
- <td>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- document.write('<a href="')
- // Workaround for IE7 that doesn't handle location.host correctly with IPv6.
- var address = "";
- var axoper_new = "http";
- var axadmin_new = "http";
- var the_hostname = document.location.hostname
- if ((document.location.protocol == 'http:') && ((axoper_new == 'https') || (axoper_new == 'both') || (axadmin_new == 'https') || (axadmin_new == 'both'))) {
- var the_https_port = '443'
- address = 'https://'
- address += the_hostname
- if (the_https_port != '443') {
- address += ':' + the_https_port
- }
- }
- document.write(address)
- document.write("/operator/basic.shtml?id=22" class="linkInActive" target="_top" id="view_SetTxt1">Setup</a>")
- // -->
- </SCRIPT>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- </tr>
- <tr>
- </tr>
- <tr>
- </tr>
- <tr>
- <td colspan=8>
- <table width="100%" cellpadding=0 cellspacing=0 border=0>
- <tr>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- // Functions to include to handle selection of stream profiles
- var globProfileBase = "root_StreamProfile_S";
- function profileSelectUrlpars(listform,editform)
- {
- group = editform.streamprofile.options[editform.streamprofile.selectedIndex].value;
- if (group == "none") {
- return "";
- }
- name = globProfileBase + group + "_Parameters";
- return listform[name].value;
- }
- function profileParseOption(optionString,option)
- {
- var res = "";
- option += "=";
- var start = optionString.indexOf(option);
- if (start >= 0) {
- start += option.length;
- var end = optionString.indexOf("&", start);
- if (end >= 0)
- res = optionString.substring(start, end);
- else
- res = optionString.substring(start);
- }
- return res;
- }
- function profileCurrentMax(listform)
- {
- var grpMax = 0;
- for (i = 0; i < listform.elements.length; i++) {
- var par = listform.elements[i].name;
- pos1 = globProfileBase.length;
- pos2 = par.indexOf('_', globProfileBase.length);
- var grp = 1 * (par.substring(pos1, pos2));
- if (grp > grpMax) {
- grpMax = grp;
- }
- }
- return grpMax;
- }
- function profileOptionsWrite(listform,selopt)
- {
- var grpMax = profileCurrentMax(listform);
- for (grp = 0; grp <= grpMax; grp++) {
- elemName = globProfileBase + grp + "_Name";
- if (document.getElementsByName(elemName).length > 0) {
- name = listform[elemName].value;
- if (name == selopt) {
- document.write("<option value='" + grp + "' selected>" + name + "</option>");
- } else {
- document.write("<option value='" + grp + "'>" + name + "</option>");
- }
- }
- }
- }
- function profileSelectWrite(listform,selopt)
- {
- var grpMax = profileCurrentMax(listform);
- /* Write start */
- document.write("<select name='streamprofile' size='1'>");
- document.write("<option selected value='none'>-----------</option>");
- profileOptionsWrite(listform,selopt);
- /* Write end */
- document.write('</select>');
- }
- function getProfileGrp(listform,theProfile)
- {
- var grpMax = profileCurrentMax(listform);
- var grp = "Profile group not found"
- for (i=0; i<=grpMax; i++) {
- elemName = globProfileBase + i + "_Name";
- if (document.getElementsByName(elemName).length > 0) {
- name = listform[elemName].value;
- if (name == theProfile)
- var grp = i
- }
- }
- return grp;
- }
- function newVideoFormat()
- {
- newVideoFormatCam('1');
- }
- function newVideoFormatCam(cam)
- {
- var url = "";
- var options = "";
- var selvalue = getProfileGrp(document.profileForm,"");
- if (selvalue == "MJPEG") {
- url = '/mjpg/video.mjpg';
- } else if (selvalue == "MPEG4") {
- url = '/axis-media/media.amp?videocodec=mpeg4';
- } else if (selvalue == "H264") {
- url = '/axis-media/media.amp?videocodec=h264';
- } else {
- var val = document.profileForm["root_StreamProfile_S" + selvalue + "_Name"].value;
- if (val) {
- options = "&streamprofile=" + val;
- val = profileParseOption(document.profileForm["root_StreamProfile_S" + selvalue + "_Parameters"].value,"audio");
- if (val == "1") {
- options += "&audio=yes";
- } else if (val == "0") {
- options += "&audio=no";
- }
- }
- var enc = profileParseOption(document.profileForm["root_StreamProfile_S" + selvalue + "_Parameters"].value,"videocodec");
- if ((enc == "jpeg")) {
- url = '/mjpg/video.mjpg';
- } else if ((enc == "mpeg4")) {
- url = '/axis-media/media.amp?videocodec=mpeg4';
- } else if ((enc == "h264") || (enc == "")) {
- url = '/axis-media/media.amp?videocodec=h264';
- }
- }
- changeView(url, cam, '', '1', options);
- }// $root_Layout_ShowVideoFormatDropDown = yes
- var form;
- // Draw the light buttons
- form = document.lightsForm;
- var LightStateStr = "0";
- var LightState = LightStateStr.split(",");
- var lightlevel0Slider = null;
- function initSliders()
- {
- }
- function slider_onChange(name)
- {
- if (name.substr(0, 10) == 'lightlevel') {
- var submitform = document.getElementById('form'+name);
- if (submitform) {
- input = document.getElementById(name);
- submitform.level.value = input.value;
- submitform.submit();
- }
- }
- }
- function validateLightLevel0() {
- var value = parseInt(document.getElementById("lightlevel0").value, 10);
- return (value != NaN && value >= 0 && value <= 100);
- }
- {
- var k = 0;
- try {
- var LightName = form["root_LightControl_L" + k + "_Name"].value;
- var unit = form["root_LightControl_L" + k + "_PulseTime"].value;
- var buttontype = form["root_LightControl_L" + k + "_Button"].value;
- var activate = form["root_LightControl_L" + k + "_Activate"].value;
- var inactivate = form["root_LightControl_L" + k + "_Inactivate"].value;
- for (j = unit.length-1; j >= 0; j--) {
- if (unit.charAt(j) == "h") {
- var value = parseInt(unit) * 10;
- var displayValue = parseFloat(unit)/100;
- break;
- } else if (unit.charAt(j) == "s") {
- var value = parseInt(unit) * 1000;
- var displayValue = parseInt(unit);
- break;
- }
- }
- if (buttontype != "none") {
- drawBoxHeader(LightName);
- if (buttontype == "actinact") {
- drawBoxToggleButton('/pics/on_blue_button_27x27px.gif',
- '/pics/on_blue_pressed_button_27x27px.gif',
- "Activate " + [LightName],
- '/axis-cgi/io/lightcontrol.cgi?action=L' + [k + 1] + ':'+ activate,
- 'buttonOn0' + k,
- '/pics/off_blue_button_27x27px.gif',
- '/pics/off_blue_pressed_button_27x27px.gif',
- "Inactivate " + [LightName],
- '/axis-cgi/io/lightcontrol.cgi?action=L' + [k + 1] + ':'+ inactivate,
- 'buttonOff0' + k,
- LightState[k] != '0');
- } else if (buttontype == "pulse") {
- drawBoxButton('/pics/pulse_blue_button_27x27px.gif',
- "Pulse " + [LightName] + " for " + [displayValue] + " second(s)",
- '/axis-cgi/io/lightcontrol.cgi?action=L' + [k+1] + ':' + activate + ',' + 'w'+value + ','+inactivate,
- 'PulseOff0' + [k],
- '/pics/pulse_blue_button_pressed_27x27px.gif');
- } else if (buttontype == "slider") {
- var id = 'lightlevel'+k;
- document.write('<td nowrap valign="middle">' +
- '<img src="/pics/slider_left.gif" width="14" height="14" id="'+id+'-left">'+
- '<img src="/pics/slider_bg_151x14px.gif" width="151" height="14" id="'+id+'-bg">'+
- '<img src="/pics/slider_handle.gif" width="5" height="14" id="'+id+'-handle" style="display: none">'+
- '<img src="/pics/slider_right.gif" width="14" height="14" id="'+id+'-right">'+
- '</td>');
- document.write('<td><input type="hidden" id="'+id+'" name="'+id+'" size="4" value="'+Math.round(parseFloat(LightState[k]))+'"></td>');
- document.getElementById(id+'-handle').style.display = "inline";
- }
- drawBoxFooter();
- drawBoxSpacer();
- }
- }
- catch(e) {}
- }
- // Draw the AudioClip selector and Play button
- form = document.audioclipsForm;
- drawBoxHeader("Audio clip");
- document.write('<td nowrap valign="middle">');
- document.writeln('<select name="audioclip" onchange="javascript:changeaudioclip(this)">');
- document.writeln('<option value="">----------</option>');
- clipArray = new Array();
- var clipix = 0;
- for (var i = 0; i < form.elements.length; i++) {
- if ( form.elements[i].name.indexOf("_Name") > 0) {
- var index = form.elements[i].name.indexOf("_Name");
- var preParamName = form.elements[i].name.substring(0, index);
- var clipName = form.elements[i].value;
- var clipNr = (isNaN(preParamName.substr(preParamName.length-2,1)) ? preParamName.substr(preParamName.length-1, 1) : preParamName.substr(preParamName.length-2, 2));
- clipArray[clipix] = clipName + ':' + clipNr;
- clipix++;
- }
- }
- clipArray = clipArray.sort();
- for (var i = 0; i < clipArray.length; i++) {
- var clipName = clipArray[i];
- var j = clipName.lastIndexOf(":");
- var clipNr = clipName.substring(j+1);
- clipName = clipName.substring(0, j);
- document.write("<option value="" + clipNr + "">" + clipName + "</option>");
- }
- document.writeln('</select>');
- document.write('</td><td nowrap valign="middle">');
- drawBoxButton('/pics/play_blue_button_27x27px.gif',
- "Play Audio",
- '/axis-cgi/playclip.cgi?clip=',
- 'audioclipbutton',
- '/pics/play_blue_button_27x27px.gif',
- '');
- document.write('</td>');
- drawBoxFooter();
- drawBoxSpacer();
- // Draw the sequence buttons and the list of sources
- if ((1 > 1) ||
- (document.listFormExt.elements.length > 0)) {
- drawBoxHeader("Source", true);
- } else {
- drawBoxHeader(' ', true);
- }
- if ((("" != "yes") || ("" == "yes")) && (seq_sources > 1)) {
- drawBoxButton('/pics/button_sequence_27x27px.gif',
- "Click to view sequence mode",
- 'JavaScript:sequence()');
- drawBoxButton('/pics/button_one_gray_27x27px.gif',
- "Sequence mode - Stopped");
- } else {
- drawBoxButton('/pics/space.gif', null, null, null, null, null, 1);
- }
- document.write('<td valign="middle" align="left"> </td>');
- document.write('<td valign="middle" align="left">');
- listVideoSources()
- document.write('</td>');
- drawBoxFooter();
- // Draw the trigger buttons
- function addTriggerButtons(button_name, indx)
- {
- if (document.WizardForm["root_Layout_Trigger_T" + indx + "_Enabled"].value != "yes") {
- return;
- }
- drawBoxSpacer();
- drawBoxHeader(button_name);
- drawBoxButton('/pics/on_blue_button_27x27px.gif',
- button_name + " on",
- '/axis-cgi/io/virtualinput.cgi?action=' + [indx + 6] + ':/',
- 'buttonOn',
- '/pics/on_blue_pressed_button_27x27px.gif');
- drawBoxButton('/pics/off_blue_button_27x27px.gif',
- button_name + " off",
- '/axis-cgi/io/virtualinput.cgi?action=' + [indx + 6] + ':\',
- 'buttonOff',
- '/pics/off_blue_pressed_button_27x27px.gif');
- drawBoxFooter();
- }
- addTriggerButtons("Trigger", 0);
- // -->
- </SCRIPT>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- </tr>
- <tr>
- </tr>
- <tr>
- <td valign="top" align="center" colspan=6 width=773>
- <table border=0 cellpadding=0 cellspacing=0 width=776 height="100%">
- <tr height=197>
- <td valign="top" class="normalText" align="center" rowspan=2 colspan="2">
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- video('/axis-media/media.amp?videocodec=h264');
- // -->
- </SCRIPT>
- </form> <!-- wizardForm -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <!-- ################################################################ -->
- <!-- Defines the table width -->
- <tr>
- </tr>
- <!-- ################################################################ -->
- <tr>
- </tr>
- <tr>
- </tr>
- <tr>
- <td colspan=6 valign="middle" align="left">
- <table cellpadding=0 cellspacing=5 border=0>
- <tr>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago