When I’m print out client IP from resolvePlayAlias method the IP is null.
Any ideas how to get the correct IP from IHTTPStreamerSession? It works for RTPSession with method rtpSession.getIp().
public class TestModule extends ModuleBase implements IMediaStreamNameAliasProvider2 {
public String resolvePlayAlias(IApplicationInstance appInstance, String name, IHTTPStreamerSession httpSession) {
String ipAddressClient = httpSession.getIpAddress();
getLogger().info("Client IP: " + ipAddressClient);
return null;
}
(...)
}
Result:
INFO server comment - Client IP: null