Define scripts used when stream is paused/aborted/resumed
Input
[ESP702]<pause/stop/resume>=<script> json=<no> pwd=<admin password>
-
json=no the output format can be in JSON or plain text
-
pwd=
the admin password if authentication is enabled -
action (pause/stop/resume) assign a script to the action
Output
- In json format
{
"cmd":"702",
"status":"ok",
"data":{
"pause":"/fs/mypause.gco",
"stop":"/fs/mystop.gco",
"resume":"/fs/mystop.gco"
}
}
cmd
Id of requested command, should be702
status
status of command, should beok
data
content of response, here the current scripts for each action