Mixer Reset - API

Hello!

Its possible to RESET mixer inputs without OFF / ON by API?

I mean a command that remove all input streams from mixer at same time.

Thanks,
Rafael
 

Max

Administrator
Staff member
Good day.
Please clarify: do you want to remove all the streams from a mixer, but the mixer should remain working (for futher feeding it with new streams)?
In this case, if you are using REST API to add streams to the mixer, you know all the streams names. So, what's wrong with the following cycle
Code:
for stream in streams; do
     curl -H "Content-Type: application/json" -X POST http://wcs:8081/rest-api/mixer/remove -d '{"uri": "mixer://mixer1", "remoteStreamName": "${stream}"}'
done
 
Top