How to use AXIS Joystick SDK to control the PTZ camera #1012
Replies: 3 comments
-
|
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
|
RTSP protocol can only be used for viewing the live feed. You should integrate the Axis Joystick SDK for catching the JoystickMove from hardware and then use it with VAPIX PTZ APIs: Sample code:this.urlBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.urlBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.urlBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.AllUrl;
this.urlBox.Location = new System.Drawing.Point(112, 41);
this.urlBox.Name = "urlBox";
this.urlBox.Size = new System.Drawing.Size(297, 20);
this.urlBox.TabIndex = 1;
this.urlBox.Text = "http://<ip-address>/axis-cgi/com/ptz.cgi";
this.toolTip.SetToolTip(this.urlBox, "The URL of the ptz.cgi on the camera that will receive the commands.");
private void Activate(AxisJoystick theJoystick)
{
theJoystick.PTZControlURL = urlBox.Text;
theJoystick.Username = userBox.Text;
theJoystick.Password = passBox.Text;
theJoystick.Activate();
}
Sample project:Check out the SampleApp example from the Axis Joystic SDK: Documentation:Read the documentation (C:\Program Files\Axis Communications\AXIS Joystick SDK X64\doc): |
Beta Was this translation helpful? Give feedback.
-
|
Feel free to re-open it OR share the solution/alternative/comment if already resolved👁️🗨️ |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
We're using 640x480 resolution for both thermal and optical cameras. The issue arises when trying to control PTZ movement with a joystick integrated via the SDK for a dual-stream camera.
While the camera works fine in a browser with joystick control, opening the stream in VLC via RTSP URL and attempting to move the camera with the joystick only moves the thermal camera, not the optical one.
We're using the following RTSP URLs:
Optical: rtsp://root:[email protected]:554/axis-media/media.amp?videocodec=h264&resolution=640x480
Thermal: rtsp://root:[email protected]:554/axis-media/media.amp?videocodec=h264&resolution=640x480&camera=2
The issue seems specific to controlling the optical camera through the SDK/joystick when streaming via RTSP URL.
Beta Was this translation helpful? Give feedback.
All reactions