I’m building a stream manager interface and can start/stop streams which is awesome. For some events we have multiple sessions and use stream targets for this. Is it possible to start/stop stream targets with the rest API? I can’t find documentation for starting/stopping targets, just transcoder and streams, thanks.
Cory from tech support provided the documentation for me.
Thanks!
Hello Alvin,
Thanks for reaching out!
I’m glad to see that Cory from our technical support team was able to provide you with the necessary documentation for controlling stream targets using the REST API.
Happy streaming!
Regards,
Vihari
Hey, great question!!!
The Wowza Streaming Engine REST API and similar kind of API’s currently has endpoint for starting as well as stopping applications, transcoders, and streams, but not for starting and stopping individual targets.
A transcoder or application is used to set up and manages stream targets. When the source stream goes live, they automatically turn on.
If you need to wantedly turn stream targets on or off for events or multi-session setups, there are a few ways to do this:
-
API workaround: You can change or turn off a target’s configuration using the REST API… and then restarting the stream or transcoder to make the changes take effect.
-
Automation layer: In your app, make small management layer that switches targets by changing their configuration files or API parameters and then updates the parent transcoder.
-
Feature request: It might be a good idea to suggest a dedicated endpoint for managing stream targets directly. A lot of users are asking for this kind of flexibility.