java - wowza onAppStart method call -
i try build module wowza 3.6.2
. module needs instance of iapplicationidstance
, samples found in onappstart
method, not called when access wowza application.
i have following:
public class testmodule extends modulebase { public void onappstart(iapplicationinstance appinstance) { string fullname = appinstance.getapplication().getname() + "/" + appinstance.getname(); getlogger().info("onappstart: " + fullname); } public void onappstop(iapplicationinstance appinstance) { string fullname = appinstance.getapplication().getname() + "/" + appinstance.getname(); getlogger().info("onappstop: " + fullname); } .... }
application configuration:
<module> <name>testmodule</name> <description>mytestmodule</description> <class>mnesterenko.testmodule</class> </module>
also have applications/myapp
, conf/myapp/application.xml
.
i open http://wowza_ip:1935/myapp
in browser, onappstart
not called, missing?
the reason http link catched wowza httpproviders. wowza modules used when access "streaming" features of wowza (in general). if you'll rtmp connect specific app instance work. also, can work application "via http", require request specific http streaming url http://example.com/path/to/file.ext/playlist.m3u8
so wowza combines streaming server , web server inside it.
read more httpproviders if want catch such requests. https://www.wowza.com/docs/http-providers
Comments
Post a Comment