Exemple #1
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            if (null == VideoIn)
            {
                return;
            }

            VideoIn.Stop();
            VideoIn.Dispose();
            VideoIn = null;
        }
Exemple #2
0
        public void InitDeviceList()
        {
            cbDeviceList.Items.Clear();
            cbDeviceList.DisplayMember = "Name";
            var devlist = CEasyVideoIn.GetVideoInDevices();

            cbDeviceList.Items.AddRange(devlist);

            if (cbDeviceList.Items.Count > 0)
            {
                cbDeviceList.SelectedIndex = 0;
            }
        }
Exemple #3
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (null != VideoIn)
            {
                VideoIn.Stop();
                VideoIn.Dispose();
                VideoIn = null;
            }

            var device = (DsDevice)cbDeviceList.SelectedItem;

            VideoIn = new CEasyVideoIn(device, VideoPanel.Handle, VideoPanel.ClientRectangle);
            VideoIn.Start();
        }