Charlie,
Thank you very much for your detailed reply!
Overall goal is to make an universal application for redirect all types of streaming (rtmp, rtmpt, rtsp, and all of http).
Yes, we are redirecting all URLs that enter this application to a different location and we are redirecting 100% of requests to this application.
This is achieved with something like this:
public class NewBalanceRedirector extends ModuleBase {
...
public void onConnect(IClient client, RequestFunction function, AMFDataList params) {
...
String queryString = (client.getQueryStr() == null || client.getQueryStr().isEmpty()) ? "" : "?" + client.getQueryStr();
client.redirectConnection(newUri.toString() + queryString);
}
public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
...
String queryString = (httpSession.getQueryStr() == null || httpSession.getQueryStr().isEmpty()) ? "" : "?" + httpSession.getQueryStr();
httpSession.redirectSession(newUri.toString() + queryString);
}
public void onRTPSessionCreate(RTPSession rtpSession) {
...
String queryString = (rtpSession.getQueryStr() == null || rtpSession.getQueryStr().isEmpty()) ? "" : "?" + rtpSession.getQueryStr();
rtpSession.redirectSession(newUri.toString() + queryString);
}
...
}
It works fine under Wowza2 for all modern players and mobile devices!
And then Wowza3 and nDVR has came. Excellent, we were very pleased with this functionality. But we did not expect such “greedy” behavior from the “?dvr”-querystring handler. As do we think, such behavior should not happen if the nDVR is turned off in the application. Because it may have unpredictable consequences in the future.
Your suggestion to use the HTTP provider is reasonable and we already use such providers. But this API (over HTTP) may be unacceptable for the connected TV and some mobile devices. And specifically in this case it is not convenient because it does not cover the RTMP and RTSP streaming. We would like to have one-stop solution like Wowza Media Server :rolleyes:
Thanks again for your wonderful product and excellent support!