I’m trying to make some app that will play the stream from wowza.
That part is ok. But next i need to have some option in app, that will comunicate with wowza server. For example how to call a wowza server some method, how to call onConnect method … How to connect from wowza from a app and stay connected until i call a onDisconnect method???
If somebody have some info i will be very grateful… Thanks in advance…
VideoView.setVideoPath("some path")
does the trick for playing…
You call call a method in a Wowza module using a HTTPProvider (http://www.wowza.com/forums/content.php?30-httpproviders). This gives you a url in your Wowza module which your app will be able to call over HTTP.
So for example you have your Wowza module running under the default of:
You can add a HTTPProvider to your VHost.xml, such as:
This would let you call a url such as:
In the Java code for your module, you need implement HTTProvider2Base from which you create a onHTTPRequest method. The variables in the query string (so in this example: ?id=123456789) can be used in the method. You can also call methods in your module from here.
An example Java class that would use this call is as follows:
Some gotchas:
The app I built which did this was largely based on the conversation in this article: http://www.wowza.com/forums/content.php?182-HTTPProvider-that-returns-detail-server-info