private void frmMain_Load(object sender, EventArgs e) { loading = true; LoadVideoDevices(cbVideoDevices); ics.SelectVideoDevice(1); ics.StartPreview(cbVideoPreviewSizes.SelectedIndex); loading = false; }
private void Window_Loaded(object sender, RoutedEventArgs e) { txtIP.Text = icServer.GetLocalIp()[0].ToString(); LoadVideoDevices(); icServer.InitializeAudioSystem(iConfServer.NET.iConfServerDotNet.audioType.DirectSound, -1, -1, 16000, 10); //select the first available video device cbDevices.SelectedIndex = 0; icServer.StartPreview(0); }