Developer documentation
PTZ commands
3 min
these api changes will be introduced in 3 2 0 mediaptz php api calls all requests are get requests sent to /media/mediaptz php required parameters for all commands id=\<device id> the numeric id of the camera command=\<command name> the command to execute ptz commands and parameters command description additional parameters example url move moves the camera combines pan, tilt, and zoom pan=\<l|r> (left/right) tilt=\<u|d> (up/down) zoom=\<t|w> (tele/in | wide/out) panspeed=<0 0 1 0> tiltspeed=<0 0 1 0> duration=\<ms> /media/mediaptz php?id=1\&command=move\&pan=r\&tilt=u\&panspeed=0 8 stop stops any current camera movement (none) /media/mediaptz php?id=1\&command=stop query retrieves presets and feature capabilities (none) /media /mediaptz php?id=1\&command=query capabilities retrieves detailed onvif capabilities as json (none) /media/mediaptz php?id=1\&command =capabilities save saves the current position to a new preset preset=\<id> name=\<string> /media/mediaptz php?id=1\&command=save\&preset=1\&name=front+door rename renames an existing preset preset=\<id> name=\<string> /media/mediaptz php?id=1\&command= rename\&preset=1\&name=main+gate go moves the camera to a specified preset preset=\<id> /media/mediaptz php ?id=1\&command=go\&preset=1 clear deletes a specified preset preset=\<id> /media/mediaptz php?id =1\&command=clear\&preset=1 sethome sets the camera's current position as home (none) /media/mediaptz php?id=1\&command=sethome gotohome moves the camera to its saved home position (none) /media/media ptz php?id=1\&command=gotohome