Hi there!
I have implements IAuthenticateRTSP with method authenticateRTSP return false. But rtsp client do not close.
public class RTSPAuth implements IAuthenticateRTSP {
@Override
public boolean authenticateRTSP(RTPSession rtspSession, RTSPRequestMessage req, RTSPResponseMessages resp) {
return false;
}
}
public class MyRTSPModule extends ModuleBase {
public void onRTPSessionCreate(RTPSession rtpSession) {
rtpSession.setAuthenticatePublishHandler(new RTSPAuth());
}
}