상속: System.Windows.Forms.Form
예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                ics.InitializeAudioSystem(iConfServer.NET.iConfServerDotNet.audioType.DirectSound, -1, -1, 16000, 10);


                vd = new VideoDevice();
                vd.cbVideoDevices.DataSource = ics.GetVideoDevices();

                ics.SelectVideoDevice(0);

                //start previewing video using the default video size 
                ics.StartPreview(0);
            }
            catch (Exception ex)
            {
                MessageBox.Show(string.Format("Error initializing {0}", ex.Message));
            }
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                ics.InitializeAudioSystem(iConfServer.NET.iConfServerDotNet.audioType.DirectSound, -1, -1, 16000, 10);


                vd = new VideoDevice();
                vd.cbVideoDevices.DataSource = ics.GetVideoDevices();

                ics.SelectVideoDevice(0);

                //start previewing video using the default video size
                ics.StartPreview(0);
            }
            catch (Exception ex)
            {
                MessageBox.Show(string.Format("Error initializing {0}", ex.Message));
            }
        }