protected override bool OnAuthenticationRequired(IIPCameraClient client, RtspMethod method) { //if (method != RtspMethod.DESCRIBE) // return false; Log.Write("Authentication required " + method); return(base.OnAuthenticationRequired(client, method)); }
protected override void OnClientDisconnected(IIPCameraClient client) { _connector.Disconnect(_camera.AudioChannel, _client.AudioChannel); _connector.Disconnect(_camera.VideoChannel, _client.VideoChannel); _connector.Dispose(); var handler = ClientCountChange; if (handler != null) { handler(null, new EventArgs()); } base.OnClientDisconnected(client); }
protected override void OnClientConnected(IIPCameraClient client) { _client = client; _connector.Connect(Model.AudioSender, _client.AudioChannel); _connector.Connect(Model.VideoSender, _client.VideoChannel); var handler = ClientCountChange; if (handler != null) handler(null, new EventArgs()); base.OnClientConnected(_client); Log.Write("Client Connected: " + _client.TransportInfo.RemoteEndPoint + " Local: " + _client.TransportInfo.LocalEndPoint); }
protected override void OnClientConnected(IIPCameraClient client) { _client = client; _connector.Connect(Model.AudioSender, _client.AudioChannel); _connector.Connect(Model.VideoSender, _client.VideoChannel); var handler = ClientCountChange; if (handler != null) { handler(null, new EventArgs()); } base.OnClientConnected(_client); Log.Write("Client Connected: " + _client.TransportInfo.RemoteEndPoint + " Local: " + _client.TransportInfo.LocalEndPoint); }
protected override bool OnAuthenticationRequested(BaseAuthenticationInfo info, IIPCameraClient client) { Log.Write("Authentication requested."); if (info.AuthName != "admin") { return(false); } var success = CheckPassword(info, "admin"); return(success); }
protected override bool OnAuthenticationRequired(IIPCameraClient client, RtspMethod method) { //if (method != RtspMethod.DESCRIBE) // return false; Log.Write("Authentication required " + method); return base.OnAuthenticationRequired(client, method); }
protected override bool OnAuthenticationRequested(BaseAuthenticationInfo info, IIPCameraClient client) { Log.Write("Authentication requested."); if (info.AuthName != "admin") return false; var success = CheckPassword(info, "admin"); return success; }