Hi, im trying to use the ModuleStreamControl, inside an httpprovider, to create or destroy streams
All the examples i have found are using activescript clients, so i am a bit confused about params to use in .addNewStream function, cant either find an API for this module (just source code)
We can suppose, that there is no one stream created yet. And i create then on demand way through an http request.
Let that i have parsed the http petition an get the parameters kind_of_stream=dvr, streanname=live5
In my Httpprovider code i aldo got this
ModuleStreamControl controlador =new ModuleStreamControl();
controlador.addNewStream(IClient client, RequestFunction function, AMFDataList params); ANS is HERE where i sont know how to pass kind_of stream and streammame as parameters to this method.
Last edited by javicho; 04-25-2012 at 09:47 AM.
Reason: Best problem explanation
Hai everybody i tried to install the application,am getting error like this
INFO server comment - ServerListenerStreamPublisher Started.
INFO server comment -ServerListenerStreamPublisher: Failed to get Application can not run.
INFO server comment - Wowza Media Server is started!
And also my application is not runing
Is there any other way to control streams besides RTMP? I need exactly this functionality but I'm trying to drive the scheduling from a Rails app. My research so far has shown me that Ruby support for the RTMP protocol is relatively immature.
It could be done with a HTTPProvider. Take a look at this example, which shows how to read querystring and get a reference to an application instance. From there you can do just about anything you do in a module.