datarhei / core

datarhei Core is management for FFmpeg processes without development effort. Whether your streaming has one viewer or a million, we have the tools to help you develop, deploy and manage any video project at any stage. We've solved the challenging problems so you can focus on your application, not your infrastructure.
https://docs.datarhei.com/core
Apache License 2.0
180 stars 41 forks source link

Ability to control individual Publications through the API? #19

Closed domenicdistefano closed 4 months ago

domenicdistefano commented 5 months ago

Is it possible to stop / start individual Publications? Reading the API docs I only can see a way to stop / start RTMP but what if I have multiple cameras going going to YouTube for instance and I only want to stop / start one of them?

ioppermann commented 4 months ago

The UI creates processes that have a name with a certain pattern. The pattern is restreamer-ui:egress:[name of the publication]:[UUIDv4].

Via the API you can list all processes. There you should see processes with matching name if you have added some publication services. Then you can simply send a start or stop command to that process.

domenicdistefano commented 4 months ago

Thank you! I will give it a try.