Starting and stoping live streams programmatically
I need to start and stop a live stream programmatically.
I've been told before to look into HTTPProviders for this, which appear to allow me to create an API to interact with as far as I can tell, and the authentication would work the same way that it does for the localhost:8500/streammanager interface (am I right here?).
My question is that if the HTTPProvider allows me to create a streammanager like API, then why can't I just use the streammanger API?
It looks like I just need to create a form post to the 'streamAction' page with the right data and that would work? assuming I get the authentication part working right.. does anyone have any tips on how to do this authentication too, if it is possible?
If you are stopping and starting MediaCaster streams, e.g. IP camera or mpeg-ts stream, then you can use StreamManager.
If you are talking about stopping and starting RTMP or RTP push encoder, a software or hardware encoder that is pushing a stream to Wowza, StreamManager or HTTPProvider won't work.
This one, IP camera.
Originally Posted by rrlanham
How can I use the streammanager? is it possible to make a http request to get these start/stop actions done?
Is it possible to execute actions on the streammanager via command line? http request (appears so)? or programmatically via Java class living in the same Java environment or something?
You can use HTTP requests and send those requests to the Stream Manager or use the MediaCaster API directly to stop/start streams.
Since we want to be able to scale (ie: introduce as many wowza servers as we want), I'm thinking http requests would be a better method. This does look possible, if I read the html source code for the stream manager, but is there not any documentation for this?
The MediaCaster API which StreamManager uses is very simple really: