Exemplo n.º 1
0
        // Start receiving video frames
        public void Start()
        {
            videoSource.Start();

            if (thread == null)
            {
                // create events
                stopEvent = new ManualResetEvent(false);
                execEvent = new ManualResetEvent(false);

                // create and start new thread
                thread              = new Thread(new ThreadStart(WorkerThread));
                thread.Name         = this.controlCommand;
                thread.IsBackground = true;
                thread.Start();

                JPEGSource.SetAllowUnsafeHeaderParsing20();
            }
        }
Exemplo n.º 2
0
 // Constructor
 public FujikoCamera()
 {
     videoSource = new MJPEGSource();
     JPEGSource.SetAllowUnsafeHeaderParsing20();
     streamType = StreamType.MJpeg;
 }
Exemplo n.º 3
0
 // Constructor
 public DLinkCamera()
 {
     videoSource = new JPEGSource();
     JPEGSource.SetAllowUnsafeHeaderParsing20();
     streamType = StreamType.Jpeg;
 }