What is the correct curl syntax to use for PTZ commands. I am currently using http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/incomingstreams/myStream/sourcecontrol/actions/panTilt?PanTiltRight
Below are some examples that will get you started.
Use Curl to GET stream file information
curl --digest -u "username:password" -X GET "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/Sony1/adv"
You then need to query the parameters for your camera before you can control it.
This would be for a live stream called “axis”
curl --digest -u "username:password" -X GET http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/axis/sourcecontrol
This would be a live stream called “Sony1”
curl --digest -u "username:password" -X GET http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/Sony1/sourcecontrol
Move a camera for the live stream “Sony2”.
curl --digest -u "username:password" -X PUT http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/test/instances/_definst_/incomingstreams/sony2/sourcecontrol/actions/panTilt?PanTiltUp
We have an article on how to make API documentation available.
https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api
We also have a large number of articles on the Wowza Streaming Engine REST API.
https://www.wowza.com/docs/wowza-streaming-engine-rest-api