cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
59
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: John Faltys on 18-12-2009 02:42:52 AM
With the MXP
http://xxx.xxx.xxx.xxx/formputxml?xmldoc=<Command><CameraPosition><Camera>1</Camera><Pan>200</Pan><Tilt>200</Tilt></CameraPosition></Command>
works perfectly

on the C20 I try
http://xxx.xxx.xxx.xxx/formputxml?xmldoc=<Command><PositionSet><CameraId>1</CameraId><Pan>200</Pan><Tilt>200</Tilt></PositionSet></Command>
does not work. The error I get is No action detected in document

Although the same command through telnet/ssh
xcommand cameraposition camera:1 pan:200 tilt:200
works perfectly.

Can anyone tell me what I am doing wrong?

Thanks

Subject: RE: C20 Question
Replied by: David Bruun-Lie on 18-12-2009 09:38:34 AM
Hi John,

you are nearly there. To execute the command you actually have to "confirm" that you want to execute it. In addition you need to check the xml tree - you had omtitted the "Camera" level outside the "PositionSet".

Try this:
http://xxx.xxx.xxx.xxx/formputxml?xmldoc=<Command><Camera><PositionSet command="True"><CameraId>1</CameraId><Pan>200</Pan><Tilt>200</Tilt></PositionSet></Camera></Command>

Happy Holidays,
David
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links