internal void ConnectCamera()
        {
            NotifyCameraStateChanged(IPCameraState.Connected);
            // start stream
            var playStreamName = Guid.NewGuid().ToString();
            _mediaStream = streamService.CreateStream(playStreamName);
            _videoReceiver = new MediaGatewayVideoReceiver(_mediaStream);

            Connector.Connect(_camera.VideoSender, _forwarder);
            Connector.Connect(_forwarder, _videoReceiver);

            // notify to client the stream name
            OnPlayRemoteStream(playStreamName);
        }
Exemple #2
0
        internal void ConnectCamera()
        {
            NotifyCameraStateChanged(IPCameraState.Connected);
            // start stream
            var playStreamName = Guid.NewGuid().ToString();

            _mediaStream   = streamService.CreateStream(playStreamName);
            _videoReceiver = new MediaGatewayVideoReceiver(_mediaStream);

            Connector.Connect(_camera.VideoSender, _forwarder);
            Connector.Connect(_forwarder, _videoReceiver);

            // notify to client the stream name
            OnPlayRemoteStream(playStreamName);
        }