Wowza Community

Disable and enable live application

Dear Team ,

i want to disable live application and stop accepting streaming using rest api.

There is no completely stop application command , allowed operation shutdown, start, restart. When you shutdown the application with the rest api, your stream publisher will disconnect however it will connect in 10 seconds again. By the way the workaraound is ,

shutdown the application with

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/actions/shutdown'

Then curl again to delete the stream publisher user to block stream again ( assume the publisher name test1 )

curl -X DELETE --header 'Accept: application/json' 'http://localhost:8087/v2/servers/_defaultServer_/publishers/test1'

If you want to add this user again then send request like

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "password": "test1", \ 
   "name": "test1", \ 
   "serverName": "_defaultServer_", \ 
   "description": "create the user again", \ 
   "saveFieldList": [ \ 
     "3" \ 
   ], \ 
   "version": "3" \ 
 }' 'http://localhost:8087/v2/servers/_defaultServer_/publishers'

Also if you want to block the watcher , you can consider changing the application watcher count :wink: