REST API – PTZ camera functionality

Wowza’s Rest API has functionality for IP cameras that contain PTZ camera functionality. You can invoke these requests on a stream file stream that originates from a camera that supports the functionality.

The following end points are available:

Pan/Tilt:

Endpoint:
/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/panTilt

Verb: PUT

Example: 

curl -X PUT --header 'Accept:application/json; charset=utf-8'  --header 'Content-type:application/json' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/panTilt?PanTiltRight

There are several options you can pass into this end point as a parameter as follows:
?PanTiltUpRight ?PanTiltRight ?PanTiltDownRight ?PanTiltDown ?PanTiltDownLeft ?PanTiltLeft ?PanTiltUpLeft ?PanTiltHome

Zoom:

Endpoint:
/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/zoom

Verb: PUT

Example: 

curl -X PUT --header 'Accept:application/json; charset=utf-8'  --header 'Content-type:application/json' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/zoom?ZoomOut


There are several options you can pass into this end point as a parameter as follows:
?ZoomIn ?ZoomOut

Capture Image:

Endpoint:
/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/captureImage

Verb: PUT

Example: 
curl -X PUT --header 'Accept:application/json; charset=utf-8'  --header 'Content-type:application/json' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/captureImage

Comments are closed.