Wowza Community

Rest API stop recording not working

I can start streamrecorder with Rest API without problems. I received {“success”:false,“message”:“Unknown action: stopRecording”,“data”:null}, when I’m trying to stop streamrecorder.

I’m using curl with

curl -X GET --header 'Accept:application/json; charset=utf-8' http://myserver:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/publishlive/instances/_definst_/streamrecorders/4funtv/actions/stopRecording

Hello

In running a quick test (against 4.3), I created a recorder and then subsequently stopped it with a very similar command but used the PUT verb in lieu of the GET as follows:

curl -X PUT --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/streamrecorders/myStream/actions/stopRecording

The output was:

{"success":true,"message":"Recording (myStream) stopped","data":null}

Thanks,

Matt

as always wowza docs forgot to mention the details i have never seen such awful docs anywhere else