Ejemplo n.º 1
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);
        }