Exemplo n.º 1
0
        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);
    }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        protected override bool OnAuthenticationRequired(IIPCameraClient client, RtspMethod method)
        {
            //if (method != RtspMethod.DESCRIBE)
            //    return false;

            Log.Write("Authentication required " + method);

            return base.OnAuthenticationRequired(client, method);
        }
Exemplo n.º 7
0
        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;
        }