有个直播播控项目需要用到wowza,所以写了个wowza的插件,由于系统测试和上线隔得时间比较久,测试的时候一起正常,插件用的也很好,到今天正式环境部署却HTTPProvider 不生效,
<HTTPProvider>
<BaseClass>com.cnlive.wowza.plugins.RestartApplication</BaseClass>
<RequestFilters>cnlive/restart*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.cnlive.wowza.plugins.HTTProviderInfoXML</BaseClass>
<RequestFilters>cnlive/info*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.cnlive.wowza.plugins.HTTProviderSwitch</BaseClass>
<RequestFilters>cnlive/switchStream*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.cnlive.wowza.plugins.HTTProviderStreams</BaseClass>
<RequestFilters>cnlive/streams*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
经过一下午折腾才发现,wowza对 用户自己定义的HTTPProvider 需要 放在wowza本身HTTPProvider 的前面。
即:
<HTTPProviders>
<自定义HTTPProvider>
<wowza本身HTTPProvider>
<HTTPProviders>
虽然是小问题,也记录一下,每天进步一点点。