示例#1
0
 public managedVideoTransmitter(VideoCaptureDevice _cameraSource, IPAddress _IP, int _port)
 {
     cameraSource = _cameraSource;
     IP = _IP;
     port = _port;
     VSS = new videoSocketSender(cameraSource);
     VSS.connectionLost += VSS_connectionLost;
     VSS.actualFPSRecalculated += VSS_acualFPSRecalculated;
 }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();
            FilterInfoCollection videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
            if (videoDevices.Count > 0)
            {
                MessageBox.Show("found video device, connecting");
            }
            else
            {
                MessageBox.Show("Not enough local cameras found to satisfy request local cameras found");
                return;
            }
            VideoCaptureDevice tempSource = new VideoCaptureDevice(videoDevices[0].MonikerString); //just use the first camera found
            VSSTest = new videoSocketSender(tempSource);
            VSSTest.connectionLost += VSSTest_connectionLost;
            

        }