Ejemplo n.º 1
0
 public CapDevice()
 {
     if (DeviceMonikes.Count() <= 0)
     {
         throw new NotSupportedException("You should connect DirectDraw source first");
     }
     deviceMoniker = DeviceMonikes[0].MonikerString;
     Start();
 }
Ejemplo n.º 2
0
        public CapDevice()
        {
            if (DeviceMonikes.Count() <= 0)
            {
                throw new NotSupportedException("You should connect DirectDraw source first");
            }

            //Set Second Camera Here.
            //On Deployment. meke this 0 as 1 will activate the secondary camera.
            try
            {
                deviceMoniker = DeviceMonikes[1].MonikerString;
            }
            catch (Exception)
            {
                deviceMoniker = DeviceMonikes[0].MonikerString;
            }
            Start();
        }