Page 1 of 1

ptz control settings onvif cam

Posted: Thu Sep 08, 2016 2:05 pm
by craigst
trying to get panning up down left and right no sure about settings for control , cam workers fine connects and recorded but no ptz control Control Device and Control Address fields are empty
im running 1.29 zone minder on unraid server cam as lil easy web page for mobile to control it

Code: Select all

<html>
<head>
<title>Video Mobile</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<script type="text/javascript" src="js/language.js"></script>
<script language="javascript">
<!--
var img = new Image();
var imgObj;

function preload()
{
	img.src='/tmpfs/auto.jpg?'+new Date;
}

function changesrc()
{
	img1.src=img.src;
	preload();
	setTimeout(changesrc,3500);
}

function update()
{
	imgObj = document.getElementById('img1');
	
	imgObj.src = img.src;
	img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
}

function takeError()
{
	img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
}

function startonload()
{
	img.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
	img.onerror=takeError;
	img.onload=update;
}

function load()
{
	if (navigator.appName.indexOf("Microsoft IE Mobile") != -1)
	{
		preload();
		changesrc();
		return;
	}
	startonload();
}

function ptzUpSubmit()
{
	form1.action="cgi-bin/hi3510/ytup.cgi";
	form1.submit();
}

function ptzDownSubmit()
{
	form1.action="cgi-bin/hi3510/ytdown.cgi";
	form1.submit();
}

function ptzLeftSubmit()
{
	form1.action="cgi-bin/hi3510/ytleft.cgi";
	form1.submit();
}

function ptzRightSubmit()
{
	form1.action="cgi-bin/hi3510/ytright.cgi";
	form1.submit();
}

//-->
</script>
</head>
<body onLoad="load()">
<form name="form1" method="get" target="test">
</form>
<p><input type="button" value="&#8593;" name="B3" onClick="ptzUpSubmit()"> 
<input type="button" value="&#8595;" name="B2" onClick="ptzDownSubmit()"> 
<input type="button" value="&#8592;" name="B1" onClick="ptzLeftSubmit()"> 
<input type="button" value="&#8594;" name="B0" onClick="ptzRightSubmit()"> 
<button type="button" name="B4" onClick="location.reload()"><script type="text/javascript">document.write(str_refresh);</script></button>
</p>
<p><img id="img1" border="0" src="tmpfs/auto.jpg"></p>
<iframe name="test" style="none" width="0" height="0"></iframe>
</body>
</html>
and works in ispy to connect and control

any help pleaseeeee