API Command Launch Process

API Command Launch Process

admin Staff asked 9 years ago
We have another question about EMS API. We are using API command launch-process to start avconv: "data":{ "arguments":"-f rtsp -i rtsp://admin:admin@192.168.42.141:81 -codec copy -f flv rtmp://192.168.42.129:1935/live/4240044 … 63b0256cec", "groupName":"process_group_MRYsBMWg", "configId":1, "fullBinaryPath":"/usr/bin/evo-avconv", "keepAlive":false, "operationType":8 }, "status":"SUCCESS", "description":"Process enqueued for start" Frequently we need to perform check whether new stream has been added. If we perform such check we frequently get following error: getStreamInfo localStreamName=42400449-c333-4ba7-b9cd-8563b0256cec { "data":null, "status":"FAIL", "description":"Stream 42400449-c333-4ba7-b9cd-8563b0256cec not found" }, As we understand, the launch-process command is asynchronous. That’s why we may get such error, don’t we? So the question is can we run it in synchronous manner? And if not, how we handle successful launch-process execution event?



Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.